Application Development 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: 

BAPI_ALM_ORDER_MAINTAIN not saving changes in order header

Former Member
0 Kudos

Hello:

I am using the BAPI BAPI_ALM_ORDER_MAINTAIN to change the priority of a service order with the following input:

IT_METHODS

REFNUM OBJECTTYPE METHOD OBJECTKEY

000001 HEADER CHANGE 000000901864

000000 SAVE

IT_HEADER

ORDER_ID ..... PRIORITY

000000901864 3

IT_HEADER_UP

ORDER_ID ... PRIORITY

000000901864 X

And I get the following return table

T ID NUM MESSAGE

S IW 080 Order saved with number 901864

S IW 080 Order saved with number 901864

S IW0_BAPI12 110 BAPI control is ended

But the order header is not changed.

Any help would be appreciated.

Regards

1 ACCEPTED SOLUTION

ramki_maley
Active Contributor
0 Kudos

Gerardo,

If you have not done it already, perform a commit using BAPI_TRANSACTION_COMMIT.

Ramki Maley

3 REPLIES 3

ramki_maley
Active Contributor
0 Kudos

Gerardo,

If you have not done it already, perform a commit using BAPI_TRANSACTION_COMMIT.

Ramki Maley

0 Kudos

Thank you Ramki. I'm all set!

0 Kudos

I'm trying to modify orders with these BAPI, but i have the following return table:

T ID NUM MESSAGE

E I0 122 Sin autorización p. grupo de planificación MT 07

E IWO_BAPI2 113 Error al tratar los métodos Bapi

My parameters are:

IT_METHODS

REFNUM OBJECTTYPE METHOD OBJECTKEY

000001 HEADER CHANGE 600900004462

000000 SAVE

IT_HEADER

ORDER_ID ..... LOC_WK_CTR

600900004462 ELECNOR

IT_HEADER_UP

ORDER_ID ... LOC_WK_CTR

600900004462 X

If i try to change other parameter the result is the same.

Thanks

Sergio