Allan Kirui: Re: Help - Which Is Right Table KNA1 or ADRC

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Re: Help - which is right table KNA1 or ADRC

Allan Kirui Sep 13, 2005 4:43 PM (in response to max bianchi)
Thanks everyone!
Yes it does seem that the data in both is the same. So my options are:
1. to read what I can from KNA1 and the rest from ADRC
2. to read all of it from ADRC
Given the fact that they are both the same, would there be a practical reason for going with
option 1 rather than option 2? e.g. performance? (apologies if this is a dumb question.. I'm
rather new to this)

Alert Moderator

Like (0)

Re: Help - which is right table KNA1 or ADRC

max bianchi Sep 13, 2005 4:59 PM (in response to Allan Kirui)
Hi
It's easy: if you want to know who and where is your customer use KNA1 (you find these data
in fields as NAME1, ORT01 and so), if you want to know particular data as e-mail address and
so you read ADRC too.
You have to read KNA1 to know the key of ADRC, you often have to read KNA1 before.
So I think it's stupid to read ADRC if I've just data in KNA1, this second query is useless, when
it's possible it's better to do one query than two or more.
Max
Message was edited by: max bianchi
o

Alert Moderator
o

Like (1)

Re: Help - which is right table KNA1 or ADRC

Allan Kirui Sep 13, 2005 5:27 PM (in response to max bianchi)
Thanks Max! you've been very helpful.
Thanks to everyone else who answered too!
regards,
Allan
Alert Moderator

Re: Help - which is right table KNA1 or ADRC

Like (0)

Anju Ganta Jan 5, 2013 12:41 AM (in response to Allan Kirui)


Hi Allan,
Some additional information. Some times users change the ship to address directly in
Delivery document or in Sales Order and then create the delivery, in such cases the ship to
address should be fetched from ADRC based on the Address Number in VBPA table for SH
partner function instead of using the address number from KNA1 table. Because the address
becomes document specific when it is changed directly in Delivery or Sales order. Though it is
not best practice there is very little or no control.
So the logic in such case for LIKP-VBELN and LIKP-KUNNR go to VBPA for that Delivery (VBPAVBELN) and ship to party (VBPA-KUNNR) and partner function (VBPA-PARVW) = SH (WE) , get
the address number VBPA-ADRNR and from ADRC table get the address details where VBPAADRNR = ADRC-ADRNR.
SAP creates address number along with the address details in ADRC when ever an address is
created/changed for the customer in XD02 or in the sales order or delivery, if it is changed in
Sales order or Delivery for ship to party address a new address number is generated and
stored in VBPA wrt to the Delivery and the ship to partner number and partner function SH, so
the address wrt to that ADRNR stored in VBPA should be used to pull from ADRC table which
will meet all kinds of shipment including the drop shipments.
Hope this helps.
AG

Alert

You might also like