‎2008 Feb 21 7:29 PM
hi all,
i have created a customer with all the address details.
i want to know the list of all TABLES, where the address details of customer are stored.
plz help me out, i want to know the list of ALL tables.
thanx, shivaa.
‎2008 Feb 21 7:44 PM
Hi,
You can get the address number of the customer from the customer master KNA1 table field ADRNR
Then using the address number , query ADRC table to get the address details.
Cheers,
Aditya
‎2008 Feb 21 8:54 PM
hi adi,
thanx for ur quick reply.
but, the actual problem i got is as follows:-
i created a sales order.the address is appearing fine, but at some places in the sales order, i am getting different address.
so, i started debugging.
i wanted to know the field thru which the wrong address is displayed.
but, my investigation is just going ooooooooooooooooooooooooooooooooooooooooooooooooooon........
it isnt getting stopped at all.
i found the field thru which the wrong address is displayed.
but this field is getting value from field1, field1 from field2,............the list just goes on.
hence, i asked for the table(ADRC).
‎2008 Feb 22 5:05 AM
Hi Shiva,
A sales order has a lot of partners e.g. Bill To Party, Ship To Party etc. who can be customers but different customers. That is you send the bill for the goods to one customer and ship the goods to another customer.
Hence go to the partner (VBPA table) of your sales order and retrive all the partner numbers. Check the addresses for these partners and see whether it fits to complete your jigsaw puzzle.
Cheers,
Aditya
‎2008 Feb 22 10:24 AM
A sales order has got a lot of partners (customers) like Bill-to Party (person to which the invoice is sent), ship-to party (person to whcih the goods are sent for delivery), sold-to party (person who orders the goods) etc.
You can get the partner numbers of a sales order from VBPA table. You can have partners assigned who remains the same for all items in the sales order. For each partner the address for communication can be obtained as follows:
1. Get the ADRNR (address number) from VBPA table.
2. Go to ADRC table using ADRNR obtained from VBPA table to get the address.
Hope this helps.
Thanks,
Balaji
‎2008 Feb 22 5:14 AM
In ADRC table you can find address of all the customers
*--Compnay code address
SELECT SINGLE NAME1
CITY1
PO_BOX
STREET
COUNTRY
INTO CORRESPONDING FIELDS OF COMP_ADDR
FROM ADRC AS A
INNER JOIN T001 AS B
ON AADDRNUMBER = BADRNR
INNER JOIN VBRK AS C
ON BBUKRS = CBUKRS
WHERE VBELN = P_VBELN.