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

BADI's in ME21N

Hi experts,

I need to validate the (Purchasing Document Number)EBELN number in me21n while saving the transaction.

i have tried with so many BADI's which is triggering while saving the transaction.

but i faced the problem(EBELN number is not present in the BADI's parameter structure but the remaining values are present like INFNR, WERKS etc).

which means the EBELN number is generated dynamically. i need to fetch the Purchasing Document Number(EBELN) through BADI's or USER EXIT for my validation purpose.

Can anybody knows the BADI or USER EXIT which is triggered after saving the transaction me21n (after the EBELN number is created, after saved).

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 23, 2008 at 12:09 PM

    Hi

    Try this if it works.

    Implement Badi for PO_DELIVERY_CONFIRM .

    And in the method PUBLISH_BEFORE_COMMIT Export the value of IT_CHANGED_DATA-vgbel into memory.

    And then in the method PUBLISH_AFTER_SAVE Use the value .

    If The Abouve method po_delivery_confirm doest not work .Then in debug check the po number may be placed in some memory ,so check the memory name in runtime after purchase order number is generated.

    Hope this give you some hint to proceed further.

    Cheers

    Joginder

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 23, 2008 at 12:33 PM

    Hi,

    This are all the BADI's triggered while saving PO

    WB2_ADD_DATA_INT

    REFERENCE_SITE

    CACL_CHARACTER_INPUT

    ME_COMMTMNT_PO_RELEV

    ME_COMMTMNT_PO_REL_C

    ME_COMMITMENT_STO_CH

    ADJUST_NET_DAYS

    EAPS_HRKFT_EXTENSION

    BUAVC_CHECK_RESTRICT

    ME_INFOREC_SEND

    ADDRESS_UPDATE

    ME_PURCHDOC_POSTED

    In the above the last one triggered is ME_PURCHDOC_POSTED, try to Implement this one and check

    Regards

    Bala Krishna

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 12:42 PM

    Hello,

    I have found 2 BADIs which will be useful to you I think.

    Thse two BADis are called once you press the save button in ME21n screen.

    BADIs are given below.

    BADI name

    1. ME_COMMTMNT_PO_RELEV Method: CHECK_RELEV parameter:IM_HEADER

    2. ME_COMMTMNT_PO_REL_C Method: CHECK_RELEV parameter:IM_HEADER

    In the Importing parameter IM_HEADER you will find EBELN (Purchasing Document Number) as its associated type is EKKO.

    Regards

    Arindam

    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.