Skip to Content
avatar image
Former Member

Show automatically Delivery address number on creation of PO in ME21n

Hi All,

I want to display the Delivery address number automatically for PO in ME21N,ME22N,ME23N Screens.I used this enhancement MMDA0001 in this Function exit EXIT_SAPLMMDA_001 i wrote code to pull the address number.but it is not displaying on ME21N. It is showing on ME22N after edit and save existing PO .

Please provide enhancement name to automatically display Delivery address number on creation of PO in ME21N

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 10, 2016 at 07:29 AM

    I just wonder how a delivery address number can be shown in ME21N (creation of Purchase Order) when the order is not yet saved and hence the delivery address specific to this PO is also not saved and hence it has not yet a number.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 09, 2016 at 06:52 PM

    Display where? And what exactly are you calling "address number"? ADRNR? What business purpose would this serve?

    Add comment
    10|10000 characters needed characters exceeded

    • I certainly agree that you should check your print program. But if the standard logic of delivery address in a PO is not understood then it might be tough to find the error.

      the delivery address is by default the plant address.

      if the storage location is entered in the PO, then it is the storage location address, precondition it is an address maintained for the storage location, if not then the plant address is taken.

      in both cases you will not get an address number in the EKPO table since SAP does not create extra PO specific ADRC records if the address is unchanged .

      Only if the buyer overwrites the address (even when he just corrects a single character) then SAP generates a PO specific record in ADRC and you get an address number in EKPO.

  • avatar image
    Former Member
    Nov 10, 2016 at 06:22 AM

    Hi Saravanan Mahendran,

    First do one thing, Put Session/ External Break point Or Break-Point Statement in your User Exit Code. and Run ME21N create one PO

    If it reach your code then you need to analyze more about the structure which has Creation of PO details,

    Else, You need to search appropriate User Exit / Badi.

    Finally you will have some idea.

    Note: Debugging will solve your 75% of your problem/requirement/issue.


    Sivaraj Sadasivam.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sivaraj Sadasivam

      I debug the code while creating PO in ME21N, for display delivery address I found One enhancement MMDA0001 i wrote my code to pull the delivery address number, but it is working for ME22n not working for ME21n, means if change and save existing PO in me22n Delivery address number is showing but if i creating new PO and saving, delivery address number is not showing. please help me.

      Thank in advance.