Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ALM_ORDER_MAINTAIN

Former Member
0 Likes
718

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
628

Call BAPI_TRANSACTION_COMMIT function module after the BAPI_ALM_ORDER_MAINTAIN. This saves data.

Regards,

Kiran

2 REPLIES 2
Read only

Former Member
0 Likes
629

Call BAPI_TRANSACTION_COMMIT function module after the BAPI_ALM_ORDER_MAINTAIN. This saves data.

Regards,

Kiran

Read only

Former Member
0 Likes
628

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