cancel
Showing results for 
Search instead for 
Did you mean: 

how to get sold to party address number for particular contract no.

Former Member
0 Kudos

Hi All,

I am creating an smartform on which address of customer needs to be printed.

I have only contract numbers. I know ADRC has the address details, how can relate tables to get the customer address for particular contract no.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Suman,

1) Goto VBAK table and give your contract number to VBELN and get the customer number KUNNR from VBAK.

2) Give this customer number to KNA1(Customer master table) KUNNR and get the address number ADRNR.

3) Use this ADRNR and query on ADRC to get the address (or) use function moudle ADDR_GET to get the address for an address number(ADRNR)..

Thanks,

Vinay

Answers (2)

Answers (2)

Former Member
0 Kudos

Pass your document number in VBPA. Get the corresponding ADRNR field.

This is the key in ADRC. Fetch the address details with this key!

All the best!!

Ashutosh

Former Member
0 Kudos

You can get the details from VBPA table.

reward points if helpfull

regards

Biju

Former Member
0 Kudos

From The VBPA table you can get the address number and then use the ADRC table to get the address

regards

Biju