2019 Feb 12 7:38 PM
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?
2019 Feb 14 9:51 AM
2019 Feb 14 9:47 AM
Hi Peter,
POST method should be the correct one: did you try to put a break point and follow in debug?
2019 Feb 14 9:51 AM
2019 Feb 14 12:42 PM
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
2019 Feb 14 1:21 PM
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