Hello Gurus!!
Sorry for the long post, hope someone can help. If you need any more information to understand the issue just let me know. I'm new to ABAP APO and I have a custom program with an ALV output. This is showing a pegging report. Column Demand quantity is editable.
Let's say user wants to change first record quantity and instead of 11, He enters 50. Upon hitting the save button, the updated demand numbers the user entered, will overwrite the original demand numbers the planning run had suggested.
Image may be NSFW.
Clik here to view.
then when checking in /n/sapapo/rrp3, quantity in the first record should be the one user entered in example above (50).
Image may be NSFW.
Clik here to view.
how to save that quantity in the planning run?
I'm trying to use FM /SAPAPO/RRP_LC_ORDER_CHANGE to save it in liveCache but it is not working and it is not returning any messages.
is this update based on category and availability date? What parameters should be filled? or is there another way to update this quantity?
I'm using the following logic. (I added the new quantity in lt_inputs table and lt_operations table)
1 - I get the sim session with /SAPAPO/RRP_SIMSESSION_CREATE
2 - I get order data with /SAPAPO/OM_ORDER_GET_DATA based on order id
3 - using the following parameters for FM (Do I need to use /SAPAPO/RRP_EXPLODE before using the change function? )
CALL FUNCTION '/SAPAPO/RRP_LC_ORDER_CHANGE'
EXPORTING
is_order = ls_orders
iv_method = 'C'
is_ordkey = ls_orderkey
it_operations = lt_operations
it_activities = gt_activities
* it_outputs = lt_outputs
it_inputs = lt_inputs
iv_application = l_appl
iv_end_date = l_endti
iv_flush = 'X'
IMPORTING
et_changed_orders = lt_changed_orders
EXCEPTIONS
error_in_opr = 1
invalid_params = 2
OTHERS = 3.
4 - executing /SAPAPO/RRP_FLUSH_ORDERS
5 - executing /SAPAPO/RRP_COMMIT
Basically I need to know how to update demand quantity with custom program and see changes reflected in /n/sapapo/rrp3
Thanks in advance and regards!!!
Emanuel.