Ship-to-party to corresponding sold-to-party

hi all,
i need to know how to find out the ship-to-party for the corresponding sold-to-party, what is table used to determine this relation .
thanks,
ravi.s

Hi,
If you want optimized (buffered) table access, you can use the function module SD_KNVP_READ. This returns the relevant partners as FET_KNVP.
  CALL FUNCTION 'SD_KNVP_READ'
       EXPORTING
            FIF_VKORG             = p_vkorg
            FIF_VTWEG             = p_vtweg
            FIF_SPART             = p_spart
            FIF_KUNNR             = customer
            FIF_FILTER_PARVW      = 'WE'     "Space gives all partners
            FIF_FILTER_PARNR      = ' '
            FIF_CONSUMER          = ' '
            FIF_BUFFER_NOFILL     = ' '   "Pass 'X' if frequent access in the program
            FIF_CLEAR_BUFFER      = ' '   "as needed
       IMPORTING
            FES_KNVP              = dummy_knvp
            FEF_KNVP_RECORDS_READ = dummy_int
       TABLES
            FET_KNVP              = t_shipto
Hope this helps,
Bhanu

Similar Messages

  • Fetch Sales order number and PO number from ship to party and sold to party

    HI,
    I need to get Sales order number and PO number
    from ship to party and sold to party.
    I have only ______sold to party and ship to party and req del date_______ in selection screen as mandatory
    Please let me know
    Sreekanth

    Hi,
    You can do this:-
    SELECT VBELN FROM LIKP
    INTO TABLE T_DELIVERIES
    WHERE KUNNR = SHIP TO PARTY
    AND     KUNAG = SOLD TO PARTY
    AND LFDAT      = DEL DATE.
    You will get a table containing the list of deliveries.
    Use VBFA to get the sales orders from deliveries.
    SELECT VBELV FROM VBFA
    INTO TABLE T_SALESORDERS
    WHERE VBTYP_N = 'J'
    AND     VBELN  = T_DELIVERIES-VBELN.
    T_SALESORDERS WILL give you list of sales orders.
    From Sales Orders you can get Purchase orders through EKKN Table.
    Using EKKN pass T_SALESORDERS-VBELN and get corresponding EBELN.
    Regards,
    SUbhashini

  • To Retrieve the sold to party ,ship to party data

    I have to retrieve the sold to party ,ship to party and payer along with there description i.e. name from a billing doc number and populate in the corresponding fields of the final internal table.
    Can somebody me with a sample code.
    Regards
    Jitendra

    hi,
    bill to party....
    SELECT SINGLE kunnr FROM vbpa
                        INTO v_scustno
                        WHERE vbeln = is_bil_invoice-hd_gen-bil_number
                        AND parvw = 'RE'.
    IF sy-subrc <> 0.
      CLEAR v_scustno.
    ENDIF.
    CLEAR gs_hd_adr.
    get customer adress number
    READ TABLE is_bil_invoice-hd_adr INTO gs_hd_adr
    WITH KEY bil_number = is_bil_invoice-hd_gen-bil_number
    partn_role = 'RE'.
    adrnr = gs_hd_adr-addr_no.
    ship to party address
    CLEAR GS_HD_ADR.
    get customer adress number
    READ TABLE IS_BIL_INVOICE-HD_ADR INTO GS_HD_ADR
    WITH KEY BIL_NUMBER = IS_BIL_INVOICE-HD_GEN-BIL_NUMBER
    PARTN_ROLE = 'WE'.
    ADRNR = GS_HD_ADR-ADDR_NO.
    CLEAR GS_HD_ADR.
    READ TABLE IS_BIL_INVOICE-HD_ADR INTO GS_HD_ADR
    WITH KEY BIL_NUMBER = IS_BIL_INVOICE-HD_GEN-BIL_NUMBER
    PARTN_ROLE = 'RE'.
    IF  GS_HD_ADR-ADDR_NO EQ ADRNR.
    CLEAR ADRNR.
    ENDIF.
    *Getting customer number
    *for Ship to party
    break njain.
    CLEAR v_custno.
    SELECT SINGLE kunnr FROM vbpa
                        INTO v_custno
                        WHERE vbeln = is_bil_invoice-hd_gen-bil_number
                        AND parvw = c_we.
    IF sy-subrc <> 0.
      CLEAR v_custno.
    ENDIF.
    **End of HDT XXXX-XXX
    Thanks
    Ashu

  • Excise invoice to ship-to-party but billing to Sold-to-party

    Hi Experts,
    My client wants to send pro-forma excise invoice to ship-to-party but wants billing to Sold to party. here Sold to party and Ship to party address will be different. can you tell me the settings which should I do.
    Thanks in advance.

    Hi,
    Create the Ship to party as a contact person and trigger the proforma excise invoice output type during proforma invoice creation.
    In the case of Normal Billing to Sold to party.
    regards,

  • Error Message while ship to party is not assigned to sold to party in VA01

    Hi All,
    In VA01, i need to throw an error message while giving a ship to party, which is not assigned to sold to party.
    I tried in  EXIT_SAPLV09A_001
                  EXIT_SAPLV09A_002
                  EXIT_SAPLV09A_003
                  EXIT_SAPLV09A_004
    above user exits, but i couldnt find the solution.
    if possible provide with the code.
    i appericiate the early response.
    Regards,
    Kumar.

    User exit MV45AFZB, form-routine USEREXIT_CHECK_VBAK.

  • Enter Valid Ship-to-party/Sold-to-Party-

    Using T.code:J1ILIC01(Deemed Export License), I entered data for Series Group,License Type,License Name,Creation Date,Expiry Date
    and Pressed Enter.
    I get the error'Enter Valid Ship-to-party/Sold-to-Party'.
    I have entered a Valid Ship-to-party/Sold-to-Party and yet the error is present.
    How to overcome the error?Please advise.
    R.Rao

    Pls check the sold to party or ship to party are extended to the concerned sales area for which you are triggering the transaction.
    Reward point if it helps.

  • Sold to party adress copy to ship to party

    HI,
    when customers place an order on the internet they get a choice to deliver to a different delivery address.
    When customers choose this option and type in a different address it does not ask them to enter in a tel number.
    Would it be possible in sap to copy the main tel number entered on the internet  into the ship to party tel number on all occasions?
    Internet orders have shipping condition E1
    Example delivery 807924096 which is an internet order, the sold to party tel number is 07923622906 the ship to party has a different address and no tel number, could the sold to party tel number be copied to ship to party tel number?how
    reagrds,
    Debesh

    Hi,
    You cannot do this directly. But using the user exits you can enable it.
    You can also save the telephone number provided by the user in some Z table and then take the values from the Z table and then enter them in the telephone number of the ship to party. May be this can also be scheduled as a job and can run twice a day, by which you can actually optimise the system performance.

  • Sold to party, Ship to party in VA05 report

    Dear Experts,
    I have one requirement in which I am supposed to display Ship to party and Ship to address fields along with sold to party field in VA05.
    1. Document Date
    2.Delivery Date
    3.GI Date
    4.PO Number
    5.Name
    6.Sales Doc Type
    7.Sales Document
    8.Created By
    9.Sold-to-party
    10.Name 1
    11.City
    12.Region
    13.Material
    14.Description
    15.Sales Unit
    16.Order Qty
    17.Confirm Qty
    18.Shipping Point
    19.Status
    20.Net Value
    21 Ship-to-party
    22 Ship-to-address
    Now the problem is I am not able to find appropriate user exit for the above requirement since Ship to party and Ship to address fields are not available in VBAP or VBAK tables and the existing user exits are
      PERFORM move_userfields USING 'VBAP'.
      PERFORM move_userfields USING 'VBAK'.
    Thanks in advance!!!
    Vishal
    Vishal

    Hi,
    For the sold to party and ship to party, get the values from VBPA-ADRNR where VBPA-KUNNR = VBAK-KUNNR and VBPA-PARVW = SP (Sold to party)
    For ship to party get VBPA-ADRNR  where VBPA-VBELN = VBAK-VBELN, VBPA-PARVW = SH.
    Once VBPA-ADRNR is known for sold to and ship to , pass them in ADRC-ADDRNUMBER and then get ADRC-NAME1, ADRC-NAME2, ADRC-CITY, ADRC-REGIO etc for printing the address details.
    Hope this helps

  • Sold to Party and Ship to party field are in grey out mode in VA01.

    Hi Friends,
    I am facing a very critical situation, Please help me on this.
    While creating the sales order by VA01, the Sold to Party and Ship to Party field are in grey out, so we cannot enter sold to party and ship to party. This is happening for all Order types.
    And while checking the existing sales order by VA02, so I found that at Header level and Item level the Partner tab are disable
    ( mena partner tab are in grey mode,).
    But when we click on sold to party field in VA02 it directly moves to partner but all Partner shown in Sales tab.
    I have check all the partner function and partner determination configuration.
    So can any one help me out in this, how in VA01 sold to party and ship to party field are in grey out mode.
    How in VA02 the partner tab are disable.?
    Thanks
    Irfan Ullah
    09370236510

    Hai Irfan Ullah,
    In Sales - customer
    1. Partners are listed (SP,BP,PY, SH)for account group and Partner Determination procedure(TA) is assigned to it
    Now for sales order type you need to assign the partner determination process
    SPRO
    Sales and Distribution
    Basic Functions
    Partner Determination
    Set Up Partner Determination
    Execute
    Set Up Partner Determination for Sales Document Header
    Select TA - standard order from the right side list
    and select Partner Determination Procedure Assignment (from left)
    Now assign your sales type to Partner determination TA.
    Create a SALES order you can find the sold to and ship to are editable.
    Regards,
    Mani

  • Sold to Party and Ship to party are in grey out mode in VA01.

    Hi Friends,
    I am facing a very critical situation, Please help me on this.
    While creating the sales order by VA01, the Sold to Party and Ship to Party field are in grey out, so we cannot enter sold to party and ship to party. This is happening for all Order types.
    And while checking the existing sales order by VA02, so I found that at Header level and Item level the Partner tab are disable
    ( mena partner tab are in grey mode,).
    But when we click on sold to party field in VA02 it directly moves to partner but all Partner shown in Sales tab.
    I have check all the partner function and partner determination configuration.
    So can any one help me out in this, how in VA01 sold to party and ship to party field are in grey out mode.
    How in VA02 the partner tab are disable.?
    Thanks
    Irfan Ullah
    09370236510
    Edited by: Lakshmipathi on Aug 4, 2011 4:30 PM
    Thread Locked - Reason Cross Posted

    Hai Irfan Ullah,
    In Sales - customer
    1. Partners are listed (SP,BP,PY, SH)for account group and Partner Determination procedure(TA) is assigned to it
    Now for sales order type you need to assign the partner determination process
    SPRO
    Sales and Distribution
    Basic Functions
    Partner Determination
    Set Up Partner Determination
    Execute
    Set Up Partner Determination for Sales Document Header
    Select TA - standard order from the right side list
    and select Partner Determination Procedure Assignment (from left)
    Now assign your sales type to Partner determination TA.
    Create a SALES order you can find the sold to and ship to are editable.
    Regards,
    Mani

  • Credit Memo Creation - Sold-to-party / Ship-to-party fields

    I am trying to create a SD Credit memo document.
    From the thread Credit Memo Creation I understand that  the BAPI BAPI_SALESORDER_CREATEFROMDAT2  cant be used and instead I gotta use the FM SD_SALESDOCUMENT_CREATE for this purpose.
    On this backdrop, I am trying to pass sold-to-party / ship-to-party values into this FM.
    But, in the structure SALES_HEADER_IN type BAPISDHD1, I couldnt find the fields to pass these values.
    Please advise the name of the fileds/structure where I should pass shiptoparty and soldtoparty values.
    In VA01 screen, you could see these fields.
    Thanks,
    Message was edited by:
            Jay
    Message was edited by:
            Jay

    jay,
    check the below link for couple of sample codes...
    Re: BAPI_SALESDOCU_CREATEFROMDATA, create credit memo request
    May be helpful for you
    ~~Guduri

  • Issue when creating sales order with Sold-to/Ship-to Party's state

    Hi All,
    we have issue while creating Sales Order with picking up of State tax
    for Ship-to-party & Sold-to-party.
    <b>When we create a sales order, for the sold to party 140052732 and
    ship to party 140052733 it is picking state tax. Which should not
    suppose to pick? Because the partner is marked as tax exemption</b>.
    Can any body tell me how can we solve this issue!
    Why this is happening!
    How to make not to pick tax when it is marked for tax exemtion.
    As i am not Functional guy i am not aware what is happening here!
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep
    What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
    If so go and check the condition record meant for it. Follow the following steps
    1) Go to Sales order
    2) Select the line item for which the state tax is being picked.
    3) In the condition tab select analysis.
    4) In Analysis you shall find the condition type meant for state tax.
    5) See which condition record has been found.
    6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
    7) If wrong correct it.
    8) If anything else come back to the post and inform the details
    Thanks
    Regards
    Sunil

  • Issue when creating sales order with Sold-to/Ship-to Party's state tax

    Hi All,
    we have issue while creating Sales Order with picking up of State tax
    for Ship-to-party & Sold-to-party.
    <b>When we create a sales order, for the sold to party 140052732 and
    ship to party 140052733 it is picking state tax. Which should not
    suppose to pick? Because the partner is marked as tax exemption</b>.
    Can any body tell me how can we solve this issue!
    Why this is happening!
    How to make not to pick tax when it is marked for tax exemtion.
    As i am not Functional guy i am not aware what is happening here!
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep
    What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
    If so go and check the condition record meant for it. Follow the following steps
    1) Go to Sales order
    2) Select the line item for which the state tax is being picked.
    3) In the condition tab select analysis.
    4) In Analysis you shall find the condition type meant for state tax.
    5) See which condition record has been found.
    6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
    7) If wrong correct it.
    8) If anything else come back to the post and inform the details
    Thanks
    Regards
    Sunil

  • Sold to party and Ship to party are the same but has different address

    Hi,
    I have problem here wherein Sales order has the same sold to party and ship to party but they have different address. When the customer master data is changed the sold to party in the sales order is also updated but the ship to party is not updated.
    I've checked the table VBPA and I noticed that the value of ship to party VBPA-ADRDA is 'E' (manually enetered).
    Is this the reason why the address of ship to party in sales order is not updated whenever the customer master is change?
    Another question, how does ship to party entered in sales order manually?
    Thanks in advance.

    Hi,
    Please correct me if I have understood the scenario incorrectly which I try to explain below:
    Sales order is created where SP and SH both have same address initially and while creating the SO, address of the SH was changed manually by Header>partners>SH
    Now master data for that customer is changed for address. As per the standard functionality of SAP, all sales order created for that customer will have new address for SP only.
    If address of SH needs to be changed in SO, it has to be done manually by the same way as explained in the above mails.
    As far as manually entering the SH in SO is concerned, system will automatcally selects the SH if only one record is available for SH. If you have specified more than one SH, system will give you an option to select one by displaying a pop up.
    Please let me know if you find this explanation suitable.
    Ravi

  • SHIP-TO-PARTY & SOLD-TO-PARTY

    Hi Friends,
    What is the main defference between Ship-to-party and Sold-to-party. In my sales order i am getting multiple Ship-to-party for a perticular Sold-to-party. Can any one tell me whats the main defference between this both.
    Regards,

    hi,
      sold to party is the partner who ordered , and the shipt o party is where actually the goods to be delivered.
    if in an organization it has one sales department and one manufacturing department then sales Dept orders goods on behalf of Manufacturing plant and the good will be delivered at plant premises. here sales dept is sold to party and Manufacturing plant in ship to party.
    Award points if find useful

Maybe you are looking for