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: 

BADI ME_PROCESS_PO_CUST - POST method working for ME22N but not for ME21N

former_member210563
Participant
0 Kudos

Hi,

I have a custom implementation of the above BADI. I am triggering a web service in order to send PO data to a third party system.

This Call Method is placed in POST method of my implementation and it works fine when using transaction ME22N (change PO). However, when creating and saving a new PO using ME21N the web service method is not being called. I suppose that the POST method is called in the event of clicking SAVE in the PO, but that is not the case.

Does anyone know which method in the BADI implementation to use with creating PO?

1 ACCEPTED SOLUTION

ankurch
Active Contributor

Hi Peter,

Please check the same in method Post !

4 REPLIES 4

SimoneMilesi
Active Contributor
0 Kudos

Hi Peter,

POST method should be the correct one: did you try to put a break point and follow in debug?

ankurch
Active Contributor

Hi Peter,

Please check the same in method Post !

former_member210563
Participant
0 Kudos

Hi,

After debugging the issue is that the get_data interface method to get PO header does not transfer EBELN but all the other fields ?

I have also determined that ME21N does call the POST method for the BADI implementation.

Peter

0 Kudos

Yes, because in POST you do not have yet EBELN determined in the GET_DATA, but you have it as input parameter IM_EBELN

You can also investigate CLOSE method, triggered after the POST