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
883

I am trying to use BAPI_ALM_ORDER_MAINTAIN to change the Profit Center on a pre-existing PM order. I understand this BAPI does what a BDC would do, on the IW32 transaction.

I went through the documentation in the BAPI, but that does not help me. Can anybody give me a simple example of how the parameters need to be passed in IT_METHODS and IT_HEADER to succesfully change the profit center on the PM order?

Your time and effort are sincerely appreciated!

Nagesh

I am trying to use BAPI_ALM_ORDER_MAINTAIN to change the Profit Center on a pre-existing PM order. I understand this BAPI does what a BDC would do, on the IW32 transaction.

I went through the documentation in the BAPI, but that does not help me. Can anybody give me a simple example of how the parameters need to be passed in IT_METHODS and IT_HEADER to succesfully change the profit center on the PM order?

Your time and effort are sincerely appreciated!

Nagesh

4 REPLIES 4
Read only

amit_khare
Active Contributor
0 Likes
706

Check this thread -

Regards,

Amit

Reward all helpful replies.

Read only

0 Likes
706

Amit,

I had a look at this thread before posting this query. I tried a few different combinations on this BAPI, right now I am passing values into my function module this way:

1. IT_METHODS

REFNUM OBJECTTYPE METHOD OBJECTKEY

000001 HEADER SAVE 001000273511

000001 HEADER CHANGE 001000273511

2. In my IT_HEADER

ORDERID ORDERTYPE PLANT PROFIT_CTR

1000273511 PM01 5019 A0045

I am getting this Error Message in IT_RETURN

E IWO_BAPI2 119 BAPI call-up must have a SAVE or DIALOG method

Thanks,

Nagesh

Read only

0 Likes
706

you have to maintain IT_METHODS table for one of these two value -

SAVE Save all data

DIALOG Call-up dialog.

Check Documentation for the two values.

Regards,

Amit

Read only

0 Likes
706

As you can see in my post above, I am passing the SAVE option in my IT_METHODS.

If you have used this BAPI before, can you give me an example on how the parameters need to be passed? That might help.

Thanks,

Nagesh