Skip to Content
0
Former Member
Mar 05, 2009 at 09:53 AM

Object key in BAPI_ALM_ORDER_MAINTAIN

479 Views

Dear Experts,

The situation is that I have to change data in the componenten in an order ( IW32 ) and I try to get it done by using a bapi called BAPI_ALM_ORDER_MAINTAIN .

This is how I've done it so far

  • Fill Method Internal table

wa_meth-method = 'SAVE'.

APPEND wa_meth TO t_meth.

  • Fill components

wa_meth-refnumber = sy-tabix.

wa_meth-objecttype = 'COMPONENT'.

wa_meth-method = 'CHANGE'.

wa_meth-objectkey(12) = aufnr. " ES_HEADER-orderID (order no.)

wa_meth-objectkey+12(4) = wa_in-activity. " ET_COMPONENT-activity (operation no.)

wa_meth-objectkey+16(4) = wa_in-res_item. " ET_COMPONENT-ITEM (suboperation no.)

APPEND wa_meth TO t_meth.

Could anyone give me some explanation about BAPI_ALM_ORDER_MAINTAIN and its object key.