on 06-23-2022 6:54 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.