cancel
Showing results for 
Search instead for 
Did you mean: 

How to get PO delivery address from table SADR

Former Member
0 Kudos

I am having trouble fetching anything from table SADR because the table is not populated. I have created my own custom smartform for POs and have changed the standard print driver. The only difference though is that I call my smartform instead of the default sapscript medruck. The driver calls ME_READ_PO_FOR_PRINTING so I'm assuming all the data is stored in the same place.

After digging a little deeper into the debugger, xpekko-adrnr and xpekko-adrn2 are empty, so the only other way is to fetch the info from table SADR right? If there is another way to fetch the information WITHOUT an address number then please let me know. I will reward points if your response works.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I am not familiar with the PO printing. I assume you are trying to print the vendor address. Take the vendor number from EKKO. Fetch the ADRNR from LFA1 table passing the EKKO-LIFNR. You will get the address from ADRC table passing this LFA1-ADRNR.

Thanks,

Vamshi.