‎2009 May 26 2:14 PM
Hi Experts,
I am trying to use BAPI_ALM_ORDER_MAINTAIN to create components in a service order.
It is giving message, "BAPI saved, but the components are not created. Please let me know where I am going wrong.
Please find the core code as below.
wa_method-refnumber = '000001'.
wa_method-objecttype = 'COMPONENT'.
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_comp, gi_comp_up and gi_header are filled with required values.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = gi_method
IT_HEADER = gi_header
IT_COMPONENT = gi_COMP1[]
IT_COMPONENT_UP = gi_COMP_UP[]
return = gi_return.
Thanks & regards,
Vishnu Priya
‎2009 May 26 2:16 PM
Call BAPI_TRANSACTION_COMMIT function module after the BAPI_ALM_ORDER_MAINTAIN. This saves data.
Regards,
Kiran
‎2009 May 26 2:16 PM
Call BAPI_TRANSACTION_COMMIT function module after the BAPI_ALM_ORDER_MAINTAIN. This saves data.
Regards,
Kiran
‎2009 Aug 17 7:07 AM
Hi,
i want to create workorder by using BAPI .I am using this bapi -
(BAPI_ALM_ORDER_MAINTAIN) i don't no exactly what are the fields we have to fill .but i filled the fields in IT_HEADER and click on execute button.then it is showing error msg in return
can u plz tell me how to create and what are the fields to fill in the fields
the erroe msg is-----BAPI CALL MUST HAVE A SAVE OR DIALOG METHOD
Regards,
Manohara Reddy