Skip to Content
author's profile photo Former Member
Former Member

User Exit for ME22N

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 30, 2008 at 07:43 AM

    Hi Mohan,

    Do it like this...

    IF SY-TCODE = 'ME21N'.

    Then make Pur Req Mandatory.

    ENDIF.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 30, 2008 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.