Skip to Content
Former Member
May 04, 2012 at 08:43 AM

run a BDC in Transaction ME21N as soon as the PO is created


Hi All, I have a requirement to run a BDC in Transaction ME21N as soon as the PO is created but Immediately. I mean whenever a PO is created that BDC should be executed. But the problem is where should i place my code. Options i have already Tried are:

1. User Exits: I placed a Break point in every user exit in the package ME found one user exit after pressing save but the problem is the PO is still being created and tables have not been updated with data relevant to that PO so it gives me an error 'PO does not exist'.

2. BADI: I found 7 BADI's in ME21N. Tried my code in ME_PURCHDOC_POSTED. Same Error. The PO does not exist.

3. Enhancement Points: I have been trying to create an enhancement implementation in includes: LMEGUICJI, LMEGUICJF, LMEGUICJK. The problem i am having when i create implementation it gives me a list of Standard implementations, if i create a new it goes nowhere but that implementation is created but not in the include just in the package. So i used standard available in that we can use only the one's starting with '/' but when i put a break point in it it says Enhancement is switched off. It does not execute that code.

Please tell me if there are any other options available to achieve this functionality.

Thanks & Regards,

Chandni Sharma.