Skip to Content
author's profile photo Former Member
Former Member

how can i fetch adrnr data from likp ?

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 02:20 PM

    Hi Srinivas,

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

    Thanks,

    Kamesh Bathla

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2008 at 02: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 02:39 PM

    Please do not duplicate post:

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

    [how-can-i-fetch-adrnr-data-from-likp-]

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 13, 2008 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.