Skip to Content
avatar image
Former Member

User exit for transactions: ME51N, ME52N, ME51, ME52 on button 'SAVE'

Hi everbody,

I am trying to implement code that will check the record count of all captured or associated purchase requisition line item data as well as each record's purchasing group via transactions ME51N, ME52N, ME51 & ME52 when a user clicks on the 'SAVE' button.

I have activated and put break points in all function exits that are listed for enhancement 'MEREQ001'. Program execution does not stop at any of them (i.e. none of them are called).

In addition to this I have also tried to use enhancement 'M06B0005' as well as its function exit 'EXIT_SAPLEBND_004'. It also does not work even though I have activated the exit in SMOD just like I did for the abovementioned and also set a breakpoint inside the "INCLUDE" program provided.

Can anyone please help.

The system version is SAP ECC 6.0.

Thanks ain advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Apr 17, 2009 at 11:18 AM

    Hi,

    use ME_REQ_POSTED Badi..

    Thanks,

    Shailaja Ainala.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 17, 2009 at 11:47 AM

    Hi,

    Try like this:

    Go to CMOD, create a project for enhancement 'MEREQ001'. Activate it and put break points in all function exits in it.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear Shailaja,

      I will now revert to BADI's. I have fully exhausted all of my efforts of trying out user exits.

      I will let you know what issue i get with your BADI - 'ME_REQ_POSTED'.

      You seem very confident that it will work for altering the saving functionality for purchase requisitions.

      Thanks again!

      Edited by: L J Langa on Apr 17, 2009 3:27 PM

  • avatar image
    Former Member
    Apr 17, 2009 at 12:03 PM

    Hi,

    Check the enhancement MM06E005, and use the required exits FM

    EXIT_SAPMM06E_012: Check Customer-Specific Data Before Saving

    Regards

    Shiva

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 17, 2009 at 12:44 PM

    Hi,

    An easy way to get the User Exit for any Standard Transaction is as follows:

    1) Gotot the Transaction.

    2) Click on the Menu System > Status. There you will get the Program Name.

    3) Double Click on the Program Name. It will open the Program.

    4) On the Menu select Goto > Attirbute. There you will get the Package to which the T-code belongs to.

    5) Now goto Transaction SMOD.

    6) Select the Menu Utilities > Find.

    7) Provide the Package Name and Execute.

    8) This will give you the list of all the Exits relevant to your T-code.

    9) From the Short Text you may get the required EXIT.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2009 at 11:05 AM

    After extensive debugging. The following enhancement points were found:

    1) ENHANCEMENT-POINT MM06BF0B_BUCHEN_02 SPOTS ES_SAPMM06B.

    2) ENHANCEMENT-POINT MM06BF0B_BUCHEN_03 SPOTS ES_SAPMM06B STATIC.

    The BADI to be used = 'ME_REQ_POSTED'.

    Add comment
    10|10000 characters needed characters exceeded