Skip to Content

Show automatically Delivery address number on creation of PO in ME21n

Nov 09, 2016 at 02:45 PM


avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Jürgen L
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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Jurgen,

Delivery address number should display after creating and saving the PO in ME21n

Jelena Perfiljeva
Nov 09, 2016 at 06:52 PM

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Jelena Perfiljevam,

This requirement for is for , while Mail sending from SOST to vendor the PO as PDF, delivery address is coming wrong.My client thought that Delivery address number is not showing on PO in ME23n, so that we are getting wrong address.So they ask me to Populate automatically delivery address number on mE21n while creating PO under delivery address Tab.


Then you should look into why the delivery address is wrong in PDF instead of spending time on such bizarre and pointless enhancement.

Saravanan mahendran

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.

Sivaraj Sadasivam 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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.