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: 

User Exit for ME22N

Former Member
0 Kudos
133

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

1 ACCEPTED SOLUTION

former_member554978
Active Contributor
0 Kudos
55

Hi Mohan,

Do it like this...

IF SY-TCODE = 'ME21N'.

Then make Pur Req Mandatory.

ENDIF.

Thanks

2 REPLIES 2

former_member554978
Active Contributor
0 Kudos
56

Hi Mohan,

Do it like this...

IF SY-TCODE = 'ME21N'.

Then make Pur Req Mandatory.

ENDIF.

Thanks

ravishankar_reddy2
Active Participant
0 Kudos
55

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