on 09-15-2008 7:49 PM
Hi,
Using BADI CHANGE_SAVEMULTIPLE2 within SaveMultiple2, I need to change the input component quantity of an order that is being saved. I have the order number and the quantity in the extension_in table. What I couldn't find is where to set this value. I don't know which APO table should I look in order to update this new value.
Thanks in advance for any suggest.
Hi friends,
the FM OM_ORDER_CHANGE requires the simsession id from where i can get this ID, is it any function module to create/get this SIMSESSION ID?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please use FM /SAPAPO/OM_ORDER_CHANGE to change order component quantity .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
when calling this function, I don't know the necessary fields that I have to fill in order to execute it properly.
I'm calling it using these parameters:
ls_gen_params and lv_simsession:
from /SAPAPO/RRP_SIMSESSION_GET.
ls_atp_info:
from CALL function '/SAPAPO/RRP_CONTROLPARAMS_GET'
EXPORTING iv_application = 'J'
lt_order_method:
I have only one record, where I fill the fields orderid with the id of the order that I want to modify and method with the value 'C'.
lt_inputs:
I have only one record, where I fill the fields orderid with the id of the order that I want to modify and quantity with the actual quantity that I want to change.
CALL FUNCTION '/SAPAPO/OM_ORDER_CHANGE'
EXPORTING
is_gen_params = ls_gen_params
iv_simsession = lv_simsession
is_atp_info = ls_atp_info
it_order_method = lt_order_method
IT_INPUTS = lt_inputs
IMPORTING
et_rc = lt_rc[]
EXCEPTIONS
lc_connect_failed = 1
lc_com_error = 2
lc_appl_error = 3
OTHERS = 4.
CASE sy-subrc.
WHEN 0.
WHEN OTHERS.
lv_error_occured = gc_true.
ENDCASE.
When executing this, it gave me an lc_appl_error. and et_rc has one record but with not much help.
Am I exporting the right parameters? How do I know which fields do I have to fill for updating just the order quantity?
Many thanks for your help.
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.