Skip to Content
Former Member
Feb 11, 2011 at 09:16 AM

User exit for ME21N (Not functional or customer exit)


Hi Guys,

I want to get a user exit for PO as my requirement is to call custom screen before the PO is getting saved.

I have the functional exits and badi's list which will not fulfill my requirement as because on my custom screen i have cancel button.

On clicking the control needs to come back to the me21n second screen with the data entered with out order getting created.

The screen number for the second screen in ME21N is 14.

if i call screen 14 it will work in a user exit where as in customer exit(functional exit) we have limitations with the exporting and importing as so the screen number will not be recognised.

I am able to do the same calling of cust screen in Sales order creation and is sucessfull, the same should happen with PO also.

Probably if the user exit triggers at the time of syntax check i can achive my requirement rather than at save as the call back to the screen will not harm and database commits will not take place.

I also tried with all most of the enahancement points but the call screen statement is not working at any point of time which worked with Sales order exits. So i tried with making the validation fail but still by that time the PO number is getting generated and so if i try to cancel the PO before save and trying to get PO in edit mode but the sequence number is getting missed by by 1.

Please help.



Edited by: amar srinivas on Feb 11, 2011 10:16 AM

Edited by: amar srinivas on Feb 14, 2011 4:56 PM