Sold party & ship to party

Dear Experts,
My client has a requirement that they want to show a sales with SP as some doemstic customer but the ship to party will be some foreign customer.Now this ship to party deals with the foreign currency.I know that whatever be the currency of the SH be, it will not have any effect but i wish to knw whether such transaction is possible or not.
R/Sanjeev

Not sure, but I feel you can achieve the requirement for which, you may consider the following:-
a)  Have a new order type / billing type and a different document pricing procedure
b)  Have a new pricing procedure.  Perhaps you can even consider your existing exports pricing procedure if the conditions assigned therein meets the requirement
c)  Have the pricing based on Ship To Party in VK11 / PR00
d)  Check the document currency while creating sale order and if need, change the document currency to the required
e)  How about Payer's currency ??
f)  On the CIN part, not sure whether your existing Excise Series Group intended for exports, is enough for this scenario
Please update whatever issues you face or resolved as this will be a new scenario to almost all members.
thanks
G. Lakshmipathi

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • Function module to find both sold and ship to party

    Is there any function module to find both sold-to-party and ship-to-party based on the sales Area.
    That is if i give sales org , distribution channel , division as input . I must get Sold-to-party and Ship-to-party as output.
    Regards,
    S.Velsankar

    Hi,
    You can find sold to and ship to party customer from KNVP Table as below:-
    SELECT      KUNNR
    FROM KNVP
    INTO w_sold_to_party
    WHERE VKORG = YOUR SALES ORG
    AND     VTWEG = dist channel
    AND    SPART = division
    AND    PARVW = 'SP'.                        "Sold to party depneds of how its configured in your system
    Check TPAR table for description Sold to part and pass the PARVW value.
    Similarly for ship to party
    SELECT      KUNNR
    FROM KNVP
    INTO w_sold_to_party
    WHERE VKORG = YOUR SALES ORG
    AND     VTWEG = dist channel
    AND    SPART = division
    AND    PARVW = 'SH'.                        "Sold to party depneds of how its configured in your system
    Regards,
    Subhashini

  • Sales Order with different sold to party & ship to party

    Hi experts,
    We have one sold to party customer code DE0009 .  There is no other ship to party code assigned with this customer in the masters. but still user can make Sales order with Sold to party DE0009 & another ship to  party code ( DN0020 ) which is not assigned.
    Ideally , system should restrict it .
    Please guide us how to control.
    Regards,
    ( Rajneesh Gulati )

    Hello Rajneesh Gulati,
    Ship-to party doesn't have to be assigned to the sold-to party in the master data.
    You can kindly refer to Note 380507 which can provides you with more info.
    Best regards,
    Miri Shimony
    Solution Management
    Globalization Services

  • Bill-to-party & Ship-to-party relation table( for a perticular sales staff)

    Hi,
    I would like to extract Bill-to-party for a ship-to-party direct from table.
    Bill-to-party is different for different sales employee.
    Could you please let me know in which table these details are stored (I have checked in KNVP, unfortunately all the details are not available here)
    Appreciate your help

    goto VBPA (using your sales doc number as VBELN) and take KUNNR
    goto KNVP using the KUNNR from VBPA and set PARVW = 'BP' ('RE'). take the KUNN2  - this is a 'Bill-to-party'.
    for ship-to-party use PARVW='SH' ('WE')
    regards,

  • Sold to party & ship to party

    Hi,
    I have query & need understanding what will be best possible solution of following scenario
    we have 3 different company codes A , B & C
    A is our parent company
    B & C are subsidiary of A
    1st Scenario
    Company A will sales FGS to company B & company B will sales to company C & company C will sales
    to distributors .
    Pricing at very level will be different (We don't want to create sales order on company B level just want to create invoice  (if possible) ).
    2nd Scenario
    Company A will sales to company B & company B will sales to Distributors but Stock will dispatch directly to distributor from company A.
    Pricing at both level are different.
    Should you need any clarity please do reply on discussion
    Thanks,
    Farrukh khan

    Hi
    There is a standard scenario for it. Please, see these notes
    SAP Note 308989 - Consulting note for cross-company transactions
    SAP Note 109254 - Customizing stock transport order Cross Company
    SAP Note 338922 - Analysis note for cross-company transactions (delivery)
    SAP Note 543821 - FAQ: cross-company processing
    and related notes
    Look for with key words in the above notes in this forum. This topic is a FAQ.
    I hope this helps you
    Regards
    Eduardo

  • Customers - FI reports on basis ship to party and sold to party.

    Hello Experts,
    In my scenario, sold to party and ship to party are different.
    For ex: My customer (sold to party / payer / bill to party) is Mr. A (on whom bill is raised and accounting is done). Ship to Party is B (where goods are delivered).
    Now, I want to know if I can post transactions (in combination to sold to party / ship to party) and get FI standard reports (like FBL5N, ageing reports - where days wise buckets are given, etc) can be taken on Sold to Party and Ship to Party basis.
    Meena

    I thought so Mukhtar. This will be last option.
    But in this case, I will have create a Z Field in FI transaction and it will be standard field in SD Billing transactions. So when I will customize report (say customer open item), I will have to put both the logics. Hence it will be little complicated.
    So I was trying if I can get a common field in both the modules - FI and SD for customizing report.
    Meena

  • Delivery report output for'Ship-to party address and Sold-to party address'

    Hi Experts,
    We have an report output generated upon delivery creation.
    We need print following fields:
    Ship-to party #
    Ship-to party Name
    Ship-to Party Address
    Sold-to party #
    Sold-to party Name
    Sold-to Party Address
    As per i understand, we could get those field according to partner function....
    So experts, could please advise me from which table and field and logic to get above information....
    Thank you very much!!

    Hi,
    Are you changing partner details in delivery document?
    This partner address details will be updated in VBPA table.
    E.g change the partner street no.  in delivery document manually.
    Now goto VBPA table, enter correspondence sales document number for that delivery and execute.
    Click on partner function AG / WE get the address number (ADRNR) .
    Now goto ADRC table, enter this address number in ADRNR field and execute. you will get partner details.
    Regards,
    Chandra

  • What is Attr data source name for SOLD,BILL and SHIP TO PARTY

    Hi all,
      I want master data source names for  these SOLD,BILL and SHIP TO PARTY.
       Bill to party,Ship to party and Sold to party Master data source names.
      Plz give me Some help on this.
    i want solution very urgently.
    Thanks,
    Guna.

    Dear Gunasekhar,
    There are no separate datasource for 0sold to, 0ship to and 0bill to parties.
    They are referrenced to 0CUSTOMER in BW. and the datasources for 0customer are 0CUSTOMER_ATTR and 0CUSTOMER_TEXT.
    Assign points if useful
    Regards
    Venkata Devaraj!!!

  • Ship to party for each material using BAPI_SLSTRANSACT_CREATEMULTI

    i am able to generate sales order for in CRM. I am inputting the sold to party, ship to party, bill to party and payer at the header level...
    CRM is currently configured in such a way that , there is a provision to assign ship to party at item level for each material.
    How can i programatically replicate this? I need to assign a diiferent ship to party for each material in the sales order.*
    how can i programatically replicate this?...
    this is  my code for cresating a sales order in CRM with sold to party, ship to party, bill to party and payer at the header level...
    *************include constants
      include crm_direct.
    ************// GUIDs
      data:         lv_guid_h type GUID_32,              "HEADER GUIDE
                    lv_guid_i type GUID_32,              "ITEM GUIDE
                    lv_guid_sl type GUID_32,             "SCHEDULE LINE GUIDE
                    lv_guid_p type GUID_32.              "PARTNER GUIDE
    ***********// Handles
      data:        lv_current_handle type crmt_handle,    "CURRENT HANDLE
                   lv_handle_h type crmt_handle,          "HEADER HANDLE
                   lv_handle_i type crmt_handle,          "ITEM HANDLE
                   lv_handle_sl type crmt_handle,         "SCHEDULE LINE HANDLE
                   lv_handle_p type crmt_handle.          "PARTNER HANDLE
    ***********// Administration header + item + etc
      data:        lt_salesorder_header type table of bapibus20001_header_ins,        "LT_SALESORDER_HEADER
                   ls_salesorder_header type bapibus20001_header_ins,                 "LS_SALESORDER_HEADER
                   lt_salesorder_item type table of bapibus20001_item,                "LT_SALESORDER_ITEM
                   ls_salesorder_item type bapibus20001_item,                         "LS_SALESORDER_ITEM
                   lt_scheduleline type table of BAPIBUS20001_SCHEDLIN,               "LT_SCHEDULELINE
                   ls_scheduleline type BAPIBUS20001_SCHEDLIN,                        "LS_SCHEDULELINE
                   lt_partner type table of BAPIBUS20001_PARTNER_INS,                 "LT_PARTNER
                   ls_partner type BAPIBUS20001_PARTNER_INS,                          "LS_PARTNER
                   ls_logical_key TYPE crmt_partner_logic_partner_key,                "LS_LOGICAL_KEY
                   lt_organisation type table of BAPIBUS20001_ORGMAN_INS,             "LT_ORGANISATION
                   ls_organisation type BAPIBUS20001_ORGMAN_INS.                      "LS_ORGANISATION
    *********// Saved sales orders
    data: lt_saved_process type table of bapibus20001_object_id,                   "LT_SAVED_PROCESS
      data:
            ls_saved_process type bapibus20001_object_id,                             "LS_SAVED_PROCESS
            ls_salesorder type CRMT_RETURN_OBJECTS_STRUC.                             "LS_SALESORDER
      data: lt_input_fields type table of bapibus20001_input_fields,                  "LT_INPUT_FIELDS
            ls_input_fields type bapibus20001_input_fields,                           "LS_INPUT_FIELDS
            ls_return type bapiret2.                                                  "LS_RETURN
    data: lt_return type table of bapiret2.                                        "LT_RETURN
    ***********// Macro definition to populate structure and input field This, called as
    *_set_field ls_salesorder_header GUID lv_guid_h
    *is exploded as
          ls_salesorder_header-GUID            =        lv_guid_h.
          ls_input_fields-fieldname            =        'GUID'.
          append ls_input_fields to lt_input_fields.
    *Note 1: &2 (field name) MUST be uppercase
    *Note 2: for the salesorder header, Macro has not been used to show how the code should look like.
    *except for that the macro has been used everywhere else.
         define setfield.
              &1-&2 = &3.
              ls_input_fields-fieldname = '&2'.
              append ls_input_fields to lt_input_fields.
        end-of-definition.
    *****// end of macro definition
    ******// fill order administration header
        perform get_guid changing lv_guid_h.
        add 1 to lv_handle_h.
        ls_salesorder_header-guid = lv_guid_h.
        ls_salesorder_header-handle = lv_handle_h.
        ls_salesorder_header-process_type = 'ZWEB'.
        clear ls_input_fields.
        ls_input_fields-ref_handle = lv_handle_h.
        ls_input_fields-ref_guid = lv_guid_h.
    *ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
        ls_input_fields-objectname = gc_object_name-orderadm_h.
        ls_input_fields-fieldname = 'GUID'.
        append ls_input_fields to lt_input_fields.
        ls_input_fields-fieldname = 'HANDLE'.
        append ls_input_fields to lt_input_fields.
        ls_input_fields-fieldname = 'PROCESS_TYPE'.
        append ls_input_fields to lt_input_fields.
        append ls_salesorder_header to lt_salesorder_header.
    **********// fill organisation data (Interface needs this, some times may rely on sales org determination instead...
        clear ls_input_fields.
        ls_input_fields-ref_handle          =      lv_handle_h.
        ls_input_fields-ref_guid            =      lv_guid_h.
        ls_input_fields-ref_kind            =      gc_object_ref_kind-orderadm_h.
        ls_input_fields-objectname          =      gc_object_name-orgman.
        setfield      ls_organisation    REF_GUID         lv_guid_h.
        setfield      ls_organisation    REF_HANDLE       lv_handle_h.
        setfield      ls_organisation    REF_KIND         gc_object_ref_kind-orderadm_h.
        setfield      ls_organisation    SALES_ORG_RESP   SO_RESP .                                 "(input).
        setfield      ls_organisation    SALES_ORG        SALES_ORG.                                "(input).
        setfield      ls_organisation    DIS_CHANNEL      DIS_CHNL.                                 "(input).
        setfield      ls_organisation    DIVISION         DIVISION.                                 "(input).
        append ls_organisation to lt_organisation.
    **********// fill order administration item
      perform get_guid changing lv_guid_i.
      lv_handle_i = lv_handle_h.
      add 1 to lv_handle_i.
      clear ls_input_fields.
      ls_input_fields-ref_guid            =        lv_guid_i.
      ls_input_fields-ref_handle          =        lv_handle_i.
    *ls_input_fields-ref_kind             =        gc_object_ref_kind-orderadm_i.
      ls_input_fields-objectname          =        gc_object_name-orderadm_i.
      setfield      ls_salesorder_item      GUID               lv_guid_i.
      setfield      ls_salesorder_item      HEADER             lv_guid_h.
      setfield      ls_salesorder_item      HANDLE             lv_handle_i.
      setfield      ls_salesorder_item      HEADER_HANDLE      lv_handle_h.
      setfield      ls_salesorder_item      ORDERED_PROD       PRODUCT .                           "(input).
      setfield      ls_salesorder_item      ITM_TYPE           'ZTAN'.
      setfield      ls_salesorder_item      MODE               'A'.
    *adjustment taken from standard include LCMS_MAPPERF04
    *(see where-used-list for BAPI_SLSTRANSACT_CREATEMULTI, program LCMS_MAPPERU11)
      delete lt_input_fields where fieldname = 'HANDLE'
      OR
      fieldname      =    'HEADER_HANDLE'.
      append ls_salesorder_item to lt_salesorder_item.
    ********// fill schedule line for item
      perform get_guid changing lv_guid_sl.
      add 1 to lv_handle_sl.
      clear ls_input_fields.
      ls_input_fields-ref_guid          =        lv_guid_i.
      ls_input_fields-ref_handle        =        lv_handle_i.
      ls_input_fields-ref_kind          =        gc_object_ref_kind-orderadm_i.
      ls_input_fields-objectname        =        gc_object_name-schedlin.
      setfield       ls_scheduleline       ITEM_GUID       lv_guid_i.
      setfield       ls_scheduleline       GUID            lv_guid_sl.
      setfield       ls_scheduleline       HANDLE          lv_handle_sl.
      setfield       ls_scheduleline       ITEM_HANDLE     lv_handle_i.
      setfield       ls_scheduleline       QUANTITY        quantity.                        "(input).
      append ls_scheduleline to lt_scheduleline.
    ********// fill partner line
    *perform get_guid changing lv_guid_p.
    *the partner use the logical key as well
      ls_logical_key-ref_partner_handle = '0001'.
      clear ls_input_fields.
      ls_input_fields-ref_guid       =       lv_guid_h.
      ls_input_fields-ref_handle     =       lv_handle_h.
      ls_input_fields-ref_kind       =       gc_object_ref_kind-orderadm_h.
      ls_input_fields-objectname     =       gc_object_name-partner.
      ls_input_fields-logical_key    =       ls_logical_key.
      setfield       ls_partner       REF_GUID                   lv_guid_h.
      setfield       ls_partner       REF_HANDLE                 lv_handle_h.
      setfield       ls_partner       REF_KIND                   gc_object_ref_kind-orderadm_h.
      setfield       ls_partner       REF_PARTNER_HANDLE         '0001'.
      setfield       ls_partner       KIND_OF_ENTRY              'C'.
      setfield       ls_partner       PARTNER_FCT                '00000001'.
      setfield       ls_partner       PARTNER_NO                 SOLD_TO.                                "(input).
      setfield       ls_partner       NO_TYPE                    'BP'.
      setfield       ls_partner       DISPLAY_TYPE               'BP'.
      move-corresponding ls_partner to ls_logical_key.
      append ls_partner to lt_partner.
      ls_logical_key-ref_partner_handle        =       '0002'.
      clear ls_input_fields.
      ls_input_fields-ref_guid                 =         lv_guid_h.
      ls_input_fields-ref_handle               =         lv_handle_h.
      ls_input_fields-ref_kind                 =         gc_object_ref_kind-orderadm_h.
      ls_input_fields-objectname               =         gc_object_name-partner.
      ls_input_fields-logical_key              =         ls_logical_key.
      setfield          ls_partner           REF_GUID                   lv_guid_h.
      setfield          ls_partner           REF_HANDLE                 lv_handle_h.
      setfield          ls_partner           REF_KIND                   gc_object_ref_kind-orderadm_h.
      setfield          ls_partner           REF_PARTNER_HANDLE         '0002'.
      setfield          ls_partner           KIND_OF_ENTRY              'C'.
      setfield          ls_partner           PARTNER_FCT                '00000002'.
      setfield          ls_partner           PARTNER_NO                 SHIP_TO .                                "(input).
      setfield          ls_partner           NO_TYPE                    'BP'.
      setfield          ls_partner           DISPLAY_TYPE               'BP'.
      move-corresponding ls_partner to ls_logical_key.
      append ls_partner to lt_partner.
      ls_logical_key-ref_partner_handle = '0003'.
      clear ls_input_fields.
      ls_input_fields-ref_guid             =           lv_guid_h.
      ls_input_fields-ref_handle           =           lv_handle_h.
      ls_input_fields-ref_kind             =           gc_object_ref_kind-orderadm_h.
      ls_input_fields-objectname           =           gc_object_name-partner.
      ls_input_fields-logical_key          =           ls_logical_key.
      setfield         ls_partner            REF_GUID                   lv_guid_h.
      setfield         ls_partner            REF_HANDLE                 lv_handle_h.
      setfield         ls_partner            REF_KIND gc_object_ref_kind-orderadm_h.
      setfield ls_partner REF_PARTNER_HANDLE '0003'.
      setfield ls_partner KIND_OF_ENTRY 'C'.
      setfield ls_partner PARTNER_FCT '00000003'.
      setfield ls_partner PARTNER_NO BILL_TO ."(input).
      setfield ls_partner NO_TYPE 'BP'.
      setfield ls_partner DISPLAY_TYPE 'BP'.
      move-corresponding ls_partner to ls_logical_key.
      append ls_partner to lt_partner.
      ls_logical_key-ref_partner_handle = '0004'.
      clear ls_input_fields.
      ls_input_fields-ref_guid = lv_guid_h.
      ls_input_fields-ref_handle = lv_handle_h.
      ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
      ls_input_fields-objectname = gc_object_name-partner.
      ls_input_fields-logical_key = ls_logical_key.
      setfield ls_partner REF_GUID lv_guid_h.
      setfield ls_partner REF_HANDLE lv_handle_h.
      setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
      setfield ls_partner REF_PARTNER_HANDLE '0004'.
      setfield ls_partner KIND_OF_ENTRY 'C'.
      setfield ls_partner PARTNER_FCT '00000004'.
      setfield ls_partner PARTNER_NO PAYER ."(input).
      setfield ls_partner NO_TYPE 'BP'.
      setfield ls_partner DISPLAY_TYPE 'BP'.
      move-corresponding ls_partner to ls_logical_key.
      append ls_partner to lt_partner.
    *******// example of a second partner function (custom) with data override
    *ls_logical_key-ref_partner_handle = '0002'.
    *clear ls_input_fields.
    *ls_input_fields-ref_guid = lv_guid_h.
    *ls_input_fields-ref_handle = lv_handle_h.
    *ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
    *ls_input_fields-objectname = gc_object_name-partner.
    *ls_input_fields-logical_key = ls_logical_key.
    *_set_field ls_partner REF_GUID lv_guid_h.
    *_set_field ls_partner REF_HANDLE lv_handle_h.
    *_set_field ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
    *_set_field ls_partner REF_PARTNER_HANDLE '0002'.
    *_set_field ls_partner KIND_OF_ENTRY 'B'. "manual entry...
    *_set_field ls_partner PARTNER_FCT customFct(input).
    *_set_field ls_partner PARTNER_NO bpNumber(input).
    *_set_field ls_partner NO_TYPE 'BP'.
    *_set_field ls_partner DISPLAY_TYPE 'BP'.
    *_set_field ls_partner TITLE 'Mr.'.
    *_set_field ls_partner FIRSTNAME 'John'.
    *_set_field ls_partner LASTNAME 'Smith'.
    *_set_field ls_partner STR_SUPPL1 'John Smith and Co'.
    *_set_field ls_partner STREET 'Street1'.
    *_set_field ls_partner STR_SUPPL3 'Street4'.
    *_set_field ls_partner HOUSE_NO '42'.
    *_set_field ls_partner CITY 'Townville'.
    *_set_field ls_partner DISTRICT 'Districtshire'.
    *_set_field ls_partner POSTL_COD1 'AA1 2BB'.
    *note now ...
    *adjustment taken from standard include LCMS_MAPPERF04
    *(see where-used-list for BAPI_SLSTRANSACT_CREATEMULTI, program LCMS_MAPPERU11)
    *I don't use macro because name of the field in input_table is different
    *_set_field ls_partner COUNTRYISO 'GB'.
    *instead
      ls_partner-COUNTRYISO = 'GB'.
      ls_input_fields-fieldname = 'COUNTRY'.
      append ls_input_fields to lt_input_fields.
    *_set_field ls_partner LANGU_ISO 'EN'.
      ls_partner-LANGU_ISO = 'EN'.
      ls_input_fields-fieldname = 'LANGU'.
      append ls_input_fields to lt_input_fields.
      move-corresponding ls_partner to ls_logical_key.
      append ls_partner to lt_partner.
    *Create sales orders *
      call function 'BAPI_SLSTRANSACT_CREATEMULTI'
        EXPORTING
          testrun       = false
        TABLES
          header        = lt_salesorder_header[]
          item          = lt_salesorder_item[]
          partner       = lt_partner[]
          organisation  = lt_organisation[]
          input_fields  = lt_input_fields[]
          scheduleline  = lt_scheduleline[]
          saved_process = lt_saved_process[]
          return        = lt_return[].
    *************// get the GUID of the created object
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT          = 'X'
    IMPORTING
        RETURN        = lt_return1.
    INCLUDE ZZGVBAPISALESORDER_GET_GUIDF01.
    Edited by: jessica sam on Dec 22, 2008 4:25 PM
    Edited by: jessica sam on Dec 22, 2008 4:27 PM
    Edited by: jessica sam on Dec 22, 2008 7:05 PM
    Edited by: jessica sam on Dec 23, 2008 5:18 AM

    I know how to trace the Ship to party at line item. When i create an order manually on CRM then the table CRMD_PARTNER has the required entries and the Ship to party at line item is getting populated correctly. Also if i open the order in CRMD_ORDER the ship pto party are being populated correctly at line item..
    But if i am trying to replicate this programatcally using the BAPI, i see that the ship to at header is being copied to each line item and this is not what is expected.
    If i go and check in the CRMD_PARTNER the data is not filled
    correctly as I dont have any ship to party at line item
    So finally I even tried to insert the data manually in the CRMD_PARTNER table using an
    INSERT statement and even that doesnt work...
    https://www.sdn.sap.com/irj/scn/forums
    So i am unable to ficgure out what is going wrong
    Any body if they have any idea on poulating ship to party programatically in
    sales order for each line item please help
    I am unable to figure out how to fill PArtner table of this BAPI to populate ship to at line item level
    Kindly Help..
    Regards,
    Jessica Sam

  • Select Contracts based on Ship-to Party

    Hi all,
    I have created two contracts of type ZCQ (VA41) with the following soldto and shipto party values.
    Contract 1: soldto1, shipto1
    Contract 2: soldto1, shipto2
    <b>Now I need to retrieve contracts, based on a search criteria consisting of Sold-to party and Ship-to party. i.e If I enter soldto1 and shipto1 I need to get back Contract 1 and if I enter soldto1 and shipto2 i need to get back contract 2.</b>
    Which is the field that I need to use to search for the Ship to value?
    Right now I am selecting based on VBAK-KUNNR for Sold to party. But am not able to figure out where the Ship to party value will be stored during the contract creation. So now my query returns both the contracts, no matter what the value of Ship to search field is
    Any pointers regarding this ( table, field, logic) would be really helpful.
    Thanks and Regards,
    Reena

    "See u are maintaining ship to party for the Contracts . so what table it is storing in "
    This is exactly what Im trying to figure out.
    I am creating contracts using VA41 for a particular value of soldto party and shipto party.
    After I craete the contracts, I am trying to retrieve these contracts based on the soldto and ship to party values that I had entered. Now, I dont know where the ship-to party is getting stored. 
    I am not making any mapping for the ship to party. I am currently trying with just VBAK and VBAP, since I dont know if I should use any other table.
    Data that I have in hand: Sold to Party, Ship to Party and Auart (ZCQ).
    Example to make it more clear
    Contract1: Soldto Party - 100042, Shipto Party - 100042
    Contract2: Soldto Party- 100042, Shipto Party - 100055
    Auart - ZCQ for both
    Now in my input parameters, when I eneter 100042 for soldto party and 100042 for ship tp party, i get back contract1 and contract2. But I just want contract 1.
    Similarly for the second scenario.
    Hope I have not confused you. Any help will be greatly appreciated.
    Thanks and Regards,
    Reena

Maybe you are looking for

  • DVI mini to Video S-video out?

    I am trying to connect my Mac book to my tv and I'm having a few issues. I bought the Mini dvi converter (twice now that i thought the first was busted) and have tried to connect to 3 different tv's but I am either getting a black screen or a flicker

  • How to disable only inactive firewall notification in the action center by GPO

    Hi I need to disable only inactive notifications firewall in the action center PCs through GPO. I have seen several posts and it seems possible disable by GPO only all notifications in the action center and not only firewall notifications. I have a D

  • Export Settings - Minimum Bit Rate Question (MPEG2-DVD)

    Hi, Curious...just came over recently from FCP and I don't remember Compressor giving me an option to adjust the MINIMUM bit rate when exporting HD projects for DVD. I figured I'd just leave it where the preset has it (at 2.8mbps minimum)...BUT...the

  • On Time Delivery Metric ( SRM Extended Classic Scenario)

    Can anyone provide feedback on how you are measuring suppliers on time delivery performance based on SRM Extended classic POs. We are currently trying to use the Stat-Rel Date (SLFDT) in R3 to measure Original commitment date vs. Actual delivery date

  • Upgrading BBM

    I upgrade my bmm and my screen turn blue with nothing on it I need help