cancel
Showing results for 
Search instead for 
Did you mean: 

Change the input component quantity of an order

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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?

Former Member
0 Kudos

you can use :/SAPAPO/RRP_SIMSESSION_GET to get that details.

Former Member
0 Kudos

Please use FM /SAPAPO/OM_ORDER_CHANGE to change order component quantity .

Former Member
0 Kudos

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.

hkmaradana
Active Participant
0 Kudos

Hi,

I am also facing same problem, can you please let me if your problem is resolved.

Thanks in advance.

Cris