2008 Jan 30 6:28 AM
Hi,
I have faced lot of problems in creating the user exit. Please help me. Actually i created the user exit for the ME21n. While Purchase Order Creation, I put the Purchase Requition Mandatory. I works Fine. But PO creation is another two ways.
One is ME22n and ME23n. Path is Purchase Order ---> Create. PR mandatory for Create option only. Not for the OLD PO's and Display PO's. How write the code for Create button in ME22N and ME23N. Please help me.
bye
Mohan
2008 Jan 30 7:43 AM
Hi Mohan,
Do it like this...
IF SY-TCODE = 'ME21N'.
Then make Pur Req Mandatory.
ENDIF.
Thanks
2008 Jan 30 7:43 AM
Hi Mohan,
Do it like this...
IF SY-TCODE = 'ME21N'.
Then make Pur Req Mandatory.
ENDIF.
Thanks
2008 Jan 30 8:44 AM
Hi Mohan,
Try this one,
IF ( ( SY-TCODE = 'ME21N' ) or ( SY-TCODE = 'ME22N' )
or ( SY-TCODE = 'ME23N' ) ).
**WRITE UR CODE HERE**
ENDIF.
Regards,
ravi shankar reddy
Edited by: Ravi Shankar Reddy S on Jan 30, 2008 2:20 PM