Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how can i fetch adrnr data from likp ?

Former Member
0 Kudos

hi,

i need to fetch adrnr data from likp , but dont hav that field in likp

how to that data from likp

plz help me

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Srinivas,

Get kunnr/kunag from likp and then you can get the address from KNA1/LFA1 tables respectively.

Thanks,

Kamesh Bathla

5 REPLIES 5

former_member188685
Active Contributor
0 Kudos
KUNNR	Ship-to party
KUNAG	Sold-to party

If you want Ship-to and Sold-to Address from LIKP then you can use KUNNR or KUNAG fields of LIKP.

and Go to KNA1 table you will get the Address number.

and there you can get the Address.

Former Member
0 Kudos

Hi Srinivas,

Get kunnr/kunag from likp and then you can get the address from KNA1/LFA1 tables respectively.

Thanks,

Kamesh Bathla

Former Member
0 Kudos

Please do not duplicate post:

[/message/5979107#5979107 [original link is broken]]

[]

Rob

0 Kudos

In realy don't understand why poeple do that at the same time in the same forum....

Anyway @ srinivas... please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting further, also about searching before asking questions.

Cheers,

Julius

uwe_schieferstein
Active Contributor
0 Kudos

Hello Srinivas

It is not reasonable to fetch data by DB selections when there are obviously standard functions available.

To read the partners of your outbound delivery use BAPI_DELIVERY_GETLIST with the following parameters:

IS_DLV_DATA_CONTROL-HEAD_PARTNER = 'X'

Add: 
sign = 'I', option = 'EQ', deliv_numb_low = <your delivery number> to TABLES parameter IT_VBELN

TABLES parameter ET_DELIVERY_HEADER contains the partner numbers (KUNNR, KUNAG) and their ADRNR can be found in ET_DELIVERY_PARTNER.

Feed function module ADDR_GET with the ADRNR and you get the entire address.

Regards

Uwe