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

user exit for me51n

Hi Friends..

I need to create an user exit for the transaction me51n. Here when i click the save button i need to call one pop up.. in that pop up when i press the yes button i need to call the transaction md04.Here i need to pass the input for Md04. When i press the BACK button i need to come back to the same screen in Me51n.

For this requirement i found one function module exit for the transaction me51n.That function module exit contains around 8 no of function modules...

I would like to know that how to proceed to do this user exit... Where should i write the codings for the existing function module exit or whether i need to create a new function module?

Help me regarding this.. Since i am new for doing User exit..

Regards,

GowriShankar.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2007 at 03:06 AM

    Transaction Code - ME51N Create Purchase Requisition

    Exit Name Description

    MEREQ001 Customers' Own Data in Purchase Requisition

    No of Exits: 1

    USER EXIT

    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

    http://www.sap-img.com/abap/what-is-user-exits.htm

    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html

    Rewards if useful..............

    Minal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2007 at 03:47 AM

    Hi Shankar,

    You can easily do with BADI.

    BADI tirgger when ME51N is saved : ME_REQ_POSTED

    1.go to se18, put ME_REQ_POSTED and go for implementation and create

    2.then enter implementation name like z_me_req_post.

    3.then double click on methos posted and place the below code.

    4.save and activate both method and interface.

    method IF_EX_ME_REQ_POSTED~POSTED.
    
      data : answer type c.
      CALL FUNCTION 'POPUP_TO_CONFIRM'
        EXPORTING
    *     TITLEBAR                    = ' '
    *     DIAGNOSE_OBJECT             = ' '
          text_question               = 'Confirm to switch to MD04'
          TEXT_BUTTON_1               = 'YES'
    *     ICON_BUTTON_1               = ' '
          TEXT_BUTTON_2               = 'NO'
    *     ICON_BUTTON_2               = ' '
    *     DEFAULT_BUTTON              = '1'
          DISPLAY_CANCEL_BUTTON       = ''
    *     USERDEFINED_F1_HELP         = ' '
    *     START_COLUMN                = 25
    *     START_ROW                   = 6
    *     POPUP_TYPE                  =
    *     IV_QUICKINFO_BUTTON_1       = ' '
    *     IV_QUICKINFO_BUTTON_2       = ' '
       IMPORTING
         ANSWER                      = answer.
    *   TABLES
    *     PARAMETER                   =
    *   EXCEPTIONS
    *     TEXT_NOT_FOUND              = 1
    *     OTHERS                      = 2
                .
    
      if answer = '1'.
      call TRANSACTION 'MD04'.
      if sy-ucomm = 'EBCK'.
         set SCREEN 0014.
      endif.
      endif.
    endmethod.
    

    regards,

    Madhu.

    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.