Hi Experts,
I am trying to use BAPI_ALM_ORDER_MAINTAIN to create Partner data in a service order.
It is giving error, "Order type T001 is not an investment order" Please let me know where I am going wrong.
Please find the core code as below.
wa_method-refnumber = '000001'.
wa_method-objecttype = 'HEADER'.
wa_method-method = 'CHANGE'.
wa_method-objectkey = '000076700030'.
APPEND wa_method TO gi_method.
CLEAR : wa_method.
wa_method-refnumber = '000001'.
wa_method-objecttype = 'PARTNER'.
wa_method-method = 'CREATE'.
wa_method-objectkey = '000076700030'.
APPEND wa_method TO gi_method.
CLEAR : wa_method.
wa_method-refnumber = '000001'.
wa_method-method = 'SAVE '.
wa_method-objectkey = '000076700030'.
APPEND wa_method TO gi_method.
CLEAR : wa_method.
The tables gi_header, gi_header, gi_partner and gi_partner_up are filled with required values.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = gi_method
IT_HEADER = gi_header
IT_PARTNER = gi_partner
IT_PARTNER_UP = gi_partner_up
return = gi_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' is also used.
Thanks & regards,
Vishnu Priya