08-12-2008 3:03 PM
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
08-12-2008 3:20 PM
Hi Srinivas,
Get kunnr/kunag from likp and then you can get the address from KNA1/LFA1 tables respectively.
Thanks,
Kamesh Bathla
08-12-2008 3:09 PM
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.
08-12-2008 3:20 PM
Hi Srinivas,
Get kunnr/kunag from likp and then you can get the address from KNA1/LFA1 tables respectively.
Thanks,
Kamesh Bathla
08-12-2008 3:39 PM
08-13-2008 12:38 AM
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
08-13-2008 5:52 AM
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