CO-PA characteristic - country of ship-to party

Hi guys,
beside the country of the customer, which I created (LAND1), I also need the country of the ship-.to party. Ship-to party is also created as characteristic (KUNWE).
Now I see another characteristic:
KMLAND     Country     Country     CHAR     3     KNA1     LAND1
which has the same detials like LAND1.
Do I need to create a ww* characteristic with derivation country from ship-to party (also kna1) or what do you suggest?
regards
Bjoern

Hello Bjoern,
Can you please help me... when you created your WW* characteristic have you defined with the same details as KMLAND (transfer from sap table KNA1-LAND1)? If yes could you change the description of the characteristic? Because if not we will have two characteristics with the same description "Country".
Regards

Similar Messages

  • Ship to Party address is missing country name in SAPScript FORM

    Hi All,
    i had modified the form for displaying the address of the Ship - to - party address, but the country name is missing in the FORM output, can any body suggest a solution for this..
    here is the code that i had written...
    FORM get_addr TABLES intab TYPE t_intab
                  out_tab TYPE t_outtab.
      DATA : wa_intab LIKE itcsy,
             w_outtab LIKE itcsy.
      DATA v_adrnr_we TYPE adrc-addrnumber.
      READ TABLE intab INTO wa_intab INDEX 1.
      v_adrnr_we = wa_intab-value.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = v_adrnr_we
        IMPORTING
          output = v_adrnr_we.
      SELECT SINGLE * FROM adrc WHERE addrnumber = v_adrnr_we.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_NAME1'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-name1.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_NAME2'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-name2.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_NAME3'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-name3.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_NAME4'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-name4.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_STREET'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-street.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_CITY1'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-city1.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_CITY2'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-city2.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      CLEAR adrc.
    ENDFORM.                    "GET_ADDR
    and in the form editor it was like this.....
    PERFORM GET_NAME IN PROGRAM ZSD_SDPACKLI
    USING &VBPLA-ADRNR_WE&
    CHANGING &Z_NAME1&
    CHANGING &Z_NAME2&
    CHANGING &Z_NAME3&
    CHANGING &Z_NAME4&
    CHANGING &Z_STREET&
    CHANGING &Z_CITY1&
    CHANGING &Z_CITY2&
    ENDPERFORM
    ADDRESS DELIVERY PARAGRAPH AS\
    NAME     &Z_NAME1&, &Z_NAME2&, &Z_NAME3&, &Z_NAME4&
    STREET   &Z_STREET&
    CITY     &Z_CITY1&, &Z_CITY2&
      POSTCODE &VBPLA-PSTLZ_WE&
      COUNTRY  &VBPLA-LAND1_WE&
      REGION   &VBPLA-REGIO_WE&
      FROMCOUNTRY &VBPLA-LAND1_VST&
    ENDADDRESS
    Thanks in advance..!

    Hi Abaper,
    In ADRC table,you will have a field by name COUNTRY.This holds the country key.
    Using this country key LAND1 in ADRC table,you will have to fetch the Country name from T005T table.The field in the T005T which holds the Country name is LANDX.
    You will have to write select querries for this.
    By using LANDX from T005T table ,you can display the country name.
    Regards,
    Kashyap Ivaturi

  • Determining SHIP-TO-PARTY- Country

    Hi Experts,
    I have requirement of determining the ship-tp party-Country field while saving the sales order.
    Ideally it should be same as ship-to-party-country in Customer Master table (KNA1), however some times if it is a one time customer then there is no need to create a customer master and we can put the address in Sales Order itself. The screen field is shown as ADDR1_DATA-country. Please let me know a method by which i can fetch the SHIP-to_party-country value.
    Regards,
    Anjali

    Hi Kiran,
    Please let me know what i need to pass to BSEC table. Right now my coding is done in MV45AFZZ. Also for the particular Sales order i have in hand, i tried passing BSEC-BELNR = SO number .. but it has fetched no values in return. I'm not sure if this is the way. Kinldy suggest.
    Thanks
    Anjali

  • Ship to party Jursidiction code change at line item leve in Sales order

    Hell Gurus,
             Here is requirement for enhancement in Sales order. For determining tax following logic is requird to modify jursidiction code of ship-to party at line item level.
    after entering header details and line item, then user exit should be there(which user exit??) and i need to compare countries of Ship-from(Plant i believe) and Ship-to party(customer) if country is same, then jursidiction code of Ship-to party at line item level should be changed with value from Jursidiction code of Ship-from party(plant this value will come from <b>T001W</b>) table. this should happen before save(while entering line items, user may go and check jursidiction code change)
    what i need here is which user exit is triggerd ater line item entry, and how to change jursidiction value( i believe we need XVBAP, XVBPA, might be XADRC(Jursidiction code) . if some one provide user exit and logic with structure details then it would be of great help.
    hoping to get reply
    Thanks in Advance
    Siva

    Can you check in MV45AFZB Include but i am not sure
    FORM USEREXIT_FILL_VBAP_FROM_HVBAP.
    VBAP-zzfield = HVBAP-zzfield2.
    ENDFORM.
    FORM USEREXIT_SOURCE_DETERMINATION.
    set source
    VBAP-WERKS          = zzfield1.
    set item category
    VBAP-PSTYV          = zzfield2.
    ENDFORM.
    *eject
    Reward Points if it is helpful
    Thanks
    Seshu

  • Over write ship to party address when sales order is created

    Hi
    I am creating sales order using BAPI_SALESORDER_CREATEFROMDAT2 but would like to change the shipto party address.
    I want to change the following address fields of shipto party
    Name1
    Name2
    Street
    STR_SUPPL1 (Street2)
    C_O_NAME (c/o name)
    POSTL_COD1 (City postal code)
    CITY
    COUNTRY
    REGION
    TRANSPZONE
    Following is the piece of code i wrote for partner structure and partner address structure of the BAPI.
    I_ORDER_PARTNERS-PARTN_ROLE    = 'WE'.
    I_ORDER_PARTNERS-PARTN_NUMB    = '0000241269'.
    I_ORDER_PARTNERS-country               = 'US'.
    I_ORDER_PARTNERS-TRANSPZONE    = 'US'.
    I_ORDER_PARTNERS-ADDR_LINK        = ''0000201328'.
    APPEND I_ORDER_PARTNERS.
      I_PARTNERADDRESSES-ADDR_NO      = ''0000201328'..
      I_PARTNERADDRESSES-NAME            = WA_CUSTOMER-NAME.
      I_PARTNERADDRESSES-NAME_2         = WA_CUSTOMER-NAME2.
      I_PARTNERADDRESSES-STREET         = WA_CUSTOMER-STREET.
    I_PARTNERADDRESSES-STR_SUPPL1   = WA_CUSTOMER-STREET2.
    I_PARTNERADDRESSES-C_O_NAME      = wa_customer-c_o_name.
      I_PARTNERADDRESSES-POSTL_COD1  = WA_CUSTOMER-ZIPCODE.
      I_PARTNERADDRESSES-CITY                = WA_CUSTOMER-CITY.
      I_PARTNERADDRESSES-COUNTRY     = WA_CUSTOMER-COUNTRY.
      I_PARTNERADDRESSES-REGION  = WA_CUSTOMER-REGION..
      I_PARTNERADDRESSES-TRANSPZONE  = WA_CUSTOMER-TRANSPZONE..
    In the above code address number 0000201328 is address number for customer 0000241269. Now the sales order is getting created but ship to party address is not overwritten with the values passed above. Ship to party address is just defaulted from customer master.
    What should i have to pass to the address number field.
    Any piece of code which is working would be more helpful.
    Thanks in advance
    Rajesh.

    I haven't tried for this, but from the documentation of FM I got this note:
    <i>Notes
    If the table is used to enter document addresses for a sales and distribution document, the address data is then not necessary in the document partner table BAPIPARNR / BAPIPARTNR ).</i>
    So, I am not sure wheather it is possible or not.
    Regards,
    Naimesh Patel

  • 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

  • Tax condition(JVAT) of ship to party is not triggering in Sales order

    Hi,
    Tax condition(JVAT) of ship to party is not triggering in sales order...
    Scenario:
    Tax condition types:
    JCST- CST Payable
    JVAT- VAT Payable GJ
    Customer Tax classification for JVAT in OVK3:
    1-  VAT 4%
    A- VAT 0%
    B- VAT 2%
    Material Tax classification for JVAT in OVK4:
    0-Tax Exempt
    1-Full Tax
    In CMR for
    Sold to Party:1001(Mumbai), In Sales Area Data(Billing Tab),we have
    Country/Name/Tax category/Name/Tax Class./Descrption
    IN / INDIA / JCST  / CST Payable / 1 / CST 3%
    IN / INDIA / JVAT / VAT Pay GJ  / 1 / VAT 4%
    In CMR for
    Ship to Party:2001(Gujarat),In Sales Area Data(Billing Tab),we have
    Country/Name/Tax category/Name/Tax Class./Descrption
    IN / INDIA / JCST  / CST Payable / 1 / CST 3%
    IN / INDIA / JVAT / VAT Pay GJ  / A / VAT 0%
    Access Seq:   JLST
    Condition table : 368(Country/Region of Del Plant/Region/Tax class1-Cust/Tax Class1-Mat)
    Condition record maintained for JVAT as IN/GJ/GJ/1/1 as 4%
    Condition record maintained for JVAT as IN/GJ/GJ/A/1 as 0%
    Now the sale(Shipping to) is happening in Gujarat..
    In sales order
    I entered SP:1001 and SH: 2001
    When i check the pricing in sales order,condition type JVAT is triggering 4% which is not true as it as to pick 0%
    Kindly guide me where i went wrong...
    Regards
    Azeez.Mohd

    Hi Friends.
    I found the solution...
    Its customization mistake..
    Solution:
    When we have 'n' tax categories then we should have 'n' condition tables..
    I have 2 tax categories: JCST and JVAT but i have only one condition table 368 which is wrong.. i should have 2 condition tables.. so i created another con. table 468 and assigned to access aeq JLST.
    then when i create cond. record , we have to select the appropriate table then it will fetch accordingly.. in sales order..
    with regards

  • CST or VAT needs to be determined based on Ship-to-party

    Dear All,
    We have a specific requirement for one of our customer.
    Customer wants the system to determine CST and VAT to be determined based on ship to party.
    Say for Example, we have a condition table Country / Region / Region of Delivering plant / Tax class. Cust. / Tax Class. Mat.
    In the sales Ship to party and Sold to party are different.
    In this case, if  the tax classification of the Sold to party 0 and tax classification of Ship to party is 1 means, system should determine CST or VAT according to According to ship to party.
    In simple, CST or VAT should be determined based on Ship to party irrespective of the setting in Sold to party.
    Please suggest.
    Regards,
    Mullairaja

    Hello Mullairaja,
    See Ship to Party is the partner who will receie the goods & applicability of VAT or CST will be decided by Ship to party Region.
    As Sold to party & Ship to party can belong to different Regions (Different States in India) VAT or CST may be applicable as the case may be...
    Thus this is a standard SAP funtion to determine VST / CST based on Region & Tax Classification Indicator of Ship-to-party.
    Hope this helps..
    Thanks,
    Jignesh Mehta

  • Ship-to party Price

    Dear All
    In sales order. Ship-to party- CST is not appearing.
    Sold to party [x] and ship-to party[y]  is different.
    1. Creating sales order for X and Y.
    2. Maintaining price for Y. Basic price, excise duty, discount and freight is appearing but CST is not appearing
    Checked the tax category, plant in  customer master, material master, access sequence
    for X- vat is maintained and for Y-CST is maintained in customer master
    for customer i have taken the access sequence table as for cst [ Country/PlntRegion/Region/TaxCl1Cust/TaxCl.Mat ]
    could not find out the reason why CST is not appearing.
    Will i have to create [table combination similar to customer] for Ship-to party?. Or i am missing something. Please guide
    Regards
    Sandeep Bhowmick

    Country/PlntRegion/Region/TaxCl1Cust/TaxCl.Mat
    Ensure that
    =>  Country maintained is Delivering Plant's country
    =>  Plant Region is Delivering Plant's region
    =>  Region is Ship To Party region
    =>  Tax Classification of customer is what is maintained in Ship To Party for JTX1
    =>  Tax Classification in material master for JTX1
    the tax code is maintained exactly in line with the above.  Also go to FTXP, key in Country of Origin, Tax code and execute.  There check whether you could see the VAT condition type for CST and the respective Account Key as well.
    Check once again in sale order that you have created for the above combinations like delivering plant's region, ship to party region etc., 
    thanks
    G. Lakshmipathi

  • Ship to party different

    Hi every one,
    I have a problem in deliveries, I have created three deliveries (two deliveries with P1123 as ship to party and one with P1203) all the deliveries has the same material which has commodity code in it.
    But the issue here is, for two deliveries it shows commodity codes in item level and for another delivery it is not showing the commodity code.
    Can any one help me on this as that there are some settings to be done in sold to party

    reddy/jonathan/sushanth..thanks for reply
    I have looked in to the replies you gave.
    1) in sold to partial delivery is corrcet
    2)ship to party have the same deliverig plant
    3)Ship to party is having different Country code and commcodes are also maintained for those departure countries
    Any helps.pls..
    Edited by: Gupta on Mar 6, 2009 7:35 AM

  • Tax Determination Bases on Bill to Party and Ship to Party

    Hi Guru ,
    I have a requirement Tax should be determined based on Bill to Party and Ship to Party.
    If Bill to and Ship to are  Overseas Customers then '0' TAX.
    For all remaining Customers 7 % Tax
    Could you please advice
    Thanks

    Hello,
    Define two  ACCESS SEQUENCE with the combination of Region code/Country key
    Define the two TAX  CONDITION types and assign the Access sequence one for each scenario
    In OVK1 assign the Country key and TAX CONDITION and in OVK3 assign the tax category as 0 for the Overseas customer and 1 for Domestic customer
    Then in VK11 maintain the condition records as 0% for Overseas customers and  7% for the Domestic customers.
    Regards,
    santosh

  • Delivery Block set/reset based on Ship-to-party

    Hi Experts,
             I am having a requirement to set/reset a delivery block in schedules lines of a particular line item when there is a change in ship-to-party in a sales order (VA02).
             If the ship-to-party is in 'US' then there is no delivery block in Schedule lines,or if  it is some other country then the delivery block has to be set in schedule lines.
            I have checked the form routines in the userexit MV45AFZZ but I am not able to set/reset the delivery block for a particular line item in schedule lines, when there is a change in Ship-to-party.
           Please provide your valuable suggestions/solution to satisfy this requirement.
           Thanks in Advance.
    Regards
    K Arasu

    What exactly do you mean by "not able"? USEREXIT_MOVE_FIELD_TO_VBEP should work or, in the worst case, USEREXIT_SAVE_DOCUMENT_PREPARE.

  • Rev account determ based on customer account assign group of ship to party

    Hi
    In our company revenue account gets determined based on Sales org/cust acc assignment group / mat acc assignment grp / Dest Cntry / ActKy (VKOA table 502) . Customer account assignment group and Dest country are from sold to party customer account assignment group.
    Our client wants these to come from ship to party rather on sold to party, I checked fields and tables in SPRO-> sales & dist  How can we achieve this?
    Thanks,
    Vaishnavi

    Hello,
    As per my knowledge, the Dest country, Shipping Address & other shipping related data are determine from SH-Ship to party.
    Whereas, pricing & shipping condition related data are determines from Sold to Party.
    To add 501-Sales org/cust acc assignment group / mat acc assignment grp / Dest Cntry / ActKy for your VKOA is not a standard table. check the same using tcode in V/14.
    Thus, I like to conclude by stating that the Destination country is actually is determined from Ship to Party, not Sold to Party and the table suggest/maintain is the best solution to your customer requirement.
    Thanks & Regards
    JP

  • Not getting correct Tax calculation - due to "Ship to party region code"

    When we are making Sales order   using (UTXJ cond.)
    Origin Country----
    IN
    Delivering Plant Region----
    24
    Ship To Party region----
    24   (maintained in customer 1 address)                    
    Tax Classification Customer------J
    Tax Classification Material----
    1
    We are getting correct   Tax calculation for tax code AD (4% + 1%)
    But when we are using
    Origin Country----
    IN
    Delivering Plant Region     -
    24
    Ship To Party region----
    06     (maintained for customer 2 address)                     
    Tax Classification Customer------ J
    Tax Classification Material----
    1
    We are not getting correct   Tax calculation for same tax code AD (4 %( JIN2) + 1 %( ZIN2)). Instead we are getting only 1%..

    difference in tax codes used for sales purpose is just the fact that  Ship to party region is different.
    Ship To Party region----
    24   (up)
    Ship To Party region----
    06    (Bihar)
    For 06 it is not calculating correct  values

  • Ship to party for WHT

    Hi all,
    for wht
    LFA1, table gives us the country for the vendor.. But here the Ship-to party can or cannot be the vendor rite…?
    so can any one guide me how get the Ship to country.
    {Referred KNA1 table instead of LFA1 for the customer info but I don’t see the ship to party ‘EP_TEST_392’, info in KNA1.}
    thanks

    Hi Raj,
    A better option to prove :
    Create one cycle with the different payer and sold to party.... in a single sales order. I mean if ur SP is ABCD
    then keep your payer as XYZA...
    Then run the report and see, whether for that document number in customer field ABCD is coming or XYZA is coming, which will prove your point.
    Thanks,
    Raja

Maybe you are looking for

  • How to connect my netbook to the tv using vga.

    i have a hp netbook and I was able to link my netbook to a panasonic tv, but when i  try to connect to sony bravia tv it says no signal detected.  I have attached a toshiba laptop without any problem so i think it may be a case of changing my setting

  • Exporting Sequences to Quicktime Pro??

    Hi, I'm making a movie that's around 51 hours long so I've created 6 sequences that I need to export to Quicktime Pro, then join them together there. So my question is, how should I export the sequences to get the best quality, through compressor, as

  • Secondary IP over 5505 Fastethernet

    Hi, I would like to know if is possible to configure a secondary IP address in a 5505 interface ?? Thanks for your comments.

  • Sample data for Revenue model and sales cost model

    Can someone provide some sample data for the following model Sales Revenue sales Cost Thanks

  • Create LOV from OID entries

    I do not know how to build a LOV from the available list of user ids in Internet Directory. My intention is to use the Internet Directory as my "system of record" for Personnel and reference the User ID in records in the database. Is there a way to b