cancel
Showing results for 
Search instead for 
Did you mean: 

Name and adress extracted from SD invoices ?

0 Kudos

Hello

I need to extract Name, adress, country of Sold To and Payers in SD invoices directly.

I can't collect them from Customer Master data tables, because it has to be the exact image of the data invoice.

Do you know in which Invoice table we can find these data ?

Cécile

AlexGourdet
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you for visiting SAP Community to get answers to your questions.

As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement & additional resources to your reference that can really benefit you:

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

All the best,

-Alex

Accepted Solutions (0)

Answers (2)

Answers (2)

Lakshmipathi
Active Contributor
0 Kudos

For complete address, you need to consider table VBPA where you have ADRNR field. So pass the billing document in VBELN and get ADRNR value. One more advantage using this VBPA for address is sometimes, users would have changed the address in master data for which, a new ADRNR would have been triggered. While creating billing document, system always considers the latest ADRNR value and hence, you will get the right data.

Next again pass the ADRNR to ADRC (not KNA1 as this table don't store full address) table to get the full address. Of course, the Sold-To and Payer code is already in VBPA table

0 Kudos

From VBRK table you need to fetch the KUNRG & KUNAG and pass it to KNA1 table to fetch Name address and country.

While passing the KUNRG & KUNAG in the KNA1 table you will get the exact details as requested from the invoice.