Sales Order - Parner Functions (Mandatory Fields)

Dear All,
As per the requirement I have created a new partner function (Consignee) at the header level of Sales order. While entering the order, User enter the address details for the Consignee partner.
There are three mandaory fields in the address details (Name, City, Country). I want to make only Name as mandatory other fields are optional. I have tried in SPRO - FI - Accounts receivable - creat customer layout.  But which is not working.
Could you please suggest what is best process to remove the mandatory fields at address details screen.
Thanks & Regards

Hi,
Go to OBD2 tcode for your account group:
The account group in SAP determine the followings:
the interval for the account numbers
whether the number is assigned internally by the SAP system or externally by the user manually (type of number assignment)
whether it is a one-time account
which fields are ready for input or require filled when creating and changing master records (field status)
In the customer master there willl be tabs and in each tab u hav the feilds. To make the setiings as Optional/Mandatory/.... double click each tab in OBD2 and then set your field
Regards

Similar Messages

  • How to create Billing Plan in sales order using Function module /BAPI

    hi,
    How to create Billing Plan in sales order using Function module /BAPI
    i hv check few FM such
    BILLING_SCHEDULE_READ
    BILLING_SCHEDULE_GET_NUMBER
    BILLING_SCHEDULE_SAVE
    But unable to create billing plan for a sales order.....any other method to create???

    Hi,
    Use this link.
    Create sales order with billing plan via LSMW and BAPI BUS2032
    BAPI or Function to update Billing Plan in Sales Order Items
    Hope this will help you.
    Regards,
    Vijay

  • Sales order number in assignment field by sort key

    Dear All,
    I want to populate sales order number in assignment field in GL account by when i want to create new sort key(which we assign in GL master in second Tab) system is not allowing me to use fied KDAUF (Sales order) .
    Kindly suggest the solution for that.
    Regards
    Shayam

    Thanks for Reply
    I have already tried validation and sub situation but that is not working and second is it is related to FI GL line item so SD consultant cant help i  that.
    Regards
    Shayam

  • Sales Order on SAP - reference field

    Hi guys,
    When creating a sales order, is there a field  i could use to record a certificate number that would also print on the invoice and be reportable from Customer Line Item Display FBL5N?
    Thanks
    Ciara

    Thanks Anantha, however this is not working for me.
    I do not actually have a reference field available in the header data - perhaps this was omitted at configuration. The PO field is not an option as it is not reportable in FBL5N.
    If anyone could suggest an alternative field I'b be grateful.
    Thanks
    Ciara

  • Sales order and return sales order in the same field

    Hi Everybody,
        I have sales sales order and return sales order in the same field ,how can i separate these two orders in the report.
    Your suggestions are appreciated
    Warm Regards
    Shreya

    Both are sales documents and should be separated by document type....i assume that all the documents are sotrd in the same infocube and if you have tha document type characteristic you can separated them directly in a report
    Regards

  • Sales order from contract mandatory

    Hi all,
    I want to make it mandatory for some customers to create sales orders based on contracts, does anybody know how to do it?

    Dear Haku,
    in the transaction VOV8 you can fill the field "Reference mandatory" with G (with reference to a quantity contract). This functionality can be activated not for a user, but for a sales document type only. If you want to switch the functionality only for determined users, then you have to modify the system.
    For the sales document type the functionality is available as described above
    I hope, that this information helps you a little bit further.
    Kind regards,
    Akmal Vakhidov
    Development Support SD, SAP, Walldorf/Germany

  • Sale Order Item Level Text Field which table and field

    Hi,
    Thanks for your prompt reply and best solution.
    Can you please tell me one more thing, in sale order at item level the TEXT Field maintaining by user at transaction level now they want that field in one of the report, so can you please tell what is the table and field where i will get this sale order item level text details.

    Hello,
    is this going to work for item level text as well.
    can you tell how to proceed with this functional module
    or is there any other thing required.Please elaborate to
    understand better way.
    You can check out two table in respect to Sales TEXT i.e. STXH (STXD SAPscript text file header) and STXL(SAPscript text file lines).
    The best approach of tracing out the Text in respect to Sales Order would be to use the Function module READ_TEXT and put this FM in SE37 and execute with the following parameter.
    Client
    Text ID of text to be read
    Language of text to be read
    Name of text to be read
    Object of text to be read
    Archive handle
    Text catalog local
    When you are essentially looking to read item level Text with respect to Sales Order then your Text OBject would be VBBP.
    Regards,
    Sarthak

  • Sales order schedule line - additional fields

    Folks,
    Need to add some custom fields sales order - at schedule line level.
    Does anyone know any screen exit/ BADI etc for this?
    ECC6.0
    Thanks in advance.

    Hai.
    check this example.
    *& Report ZSAN_BAPI_PURCHASE_ORDER *
    REPORT ZSAN_BAPI_PURCHASE_ORDER .
    DATA: HEADER LIKE BAPIMEPOHEADER,
    " Header
    HEADER_IND LIKE BAPIMEPOHEADERX,
    " Header index
    PO_ITEMS LIKE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
    " Item table
    ITEMS_IND LIKE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
    " Item index table
    RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE
    " Message Return table
    SET PF-STATUS 'SANKET'.
    **Initialize Header values
    *HEADER-DOC_TYPE = 'NB'.
    *HEADER-ITEM_INTVL = '00001'.
    *HEADER-VENDOR = '0000001000'.
    *HEADER-PURCH_ORG = '1000'.
    *HEADER-PUR_GROUP = '001'.
    *HEADER-CURRENCY = 'EUR'.
    *HEADER-COMP_CODE = '1000'.
    *HEADER-PMNTTRMS = '00001'.
    **Initialize Index values
    *HEADER_IND-DOC_TYPE = 'X'.
    *HEADER_IND-ITEM_INTVL = 'X'.
    *HEADER_IND-VENDOR = 'X'.
    *HEADER_IND-PURCH_ORG = 'X'.
    *HEADER_IND-PUR_GROUP = 'X'.
    *HEADER_IND-CURRENCY = 'X'.
    *HEADER_IND-COMP_CODE = 'X'.
    *HEADER_IND-PMNTTRMS = 'X'.
    *Initialize Header values
    HEADER-DOC_TYPE = 'NB'.
    HEADER-ITEM_INTVL = '00001'.
    HEADER-VENDOR = '0000003020'.
    HEADER-PURCH_ORG = '3000'.
    HEADER-PUR_GROUP = '000'.
    HEADER-CURRENCY = 'USD'.
    *Initialize Index values
    HEADER_IND-DOC_TYPE = 'X'.
    HEADER_IND-ITEM_INTVL = 'X'.
    HEADER_IND-VENDOR = 'X'.
    HEADER_IND-PURCH_ORG = 'X'.
    HEADER_IND-PUR_GROUP = 'X'.
    HEADER_IND-CURRENCY = 'X'.
    *Initialize Item values
    PO_ITEMS-PO_ITEM = '00001'.
    PO_ITEMS-MATERIAL = '100-100'.
    PO_ITEMS-PLANT = '3000'.
    PO_ITEMS-QUANTITY = '4'.
    PO_ITEMS-NET_PRICE = '1'.
    APPEND PO_ITEMS.
    *Initialize Item index values
    ITEMS_IND-PO_ITEM = '00001'.
    ITEMS_IND-MATERIAL = 'X'.
    ITEMS_IND-PLANT = 'X'.
    ITEMS_IND-QUANTITY = 'X'.
    PO_ITEMS-NET_PRICE = '1'.
    APPEND ITEMS_IND.
    *Initialize Item values
    PO_ITEMS-PO_ITEM = '00002'.
    PO_ITEMS-MATERIAL = '200-200'.
    PO_ITEMS-PLANT = '3100'.
    PO_ITEMS-QUANTITY = '20'.
    PO_ITEMS-NET_PRICE = '3'.
    APPEND PO_ITEMS.
    *Initialize Item index values
    ITEMS_IND-PO_ITEM = '00002'.
    ITEMS_IND-MATERIAL = 'X'.
    ITEMS_IND-PLANT = 'X'.
    ITEMS_IND-QUANTITY = 'X'.
    ITEMS_IND-NET_PRICE = 'X'.
    APPEND ITEMS_IND.
    *Initialize Item values
    PO_ITEMS-PO_ITEM = '00003'.
    PO_ITEMS-MATERIAL = '102-510'.
    PO_ITEMS-PLANT = '3000'.
    PO_ITEMS-QUANTITY = '20'.
    PO_ITEMS-NET_PRICE = '246'.
    APPEND PO_ITEMS.
    *Initialize Item index values
    ITEMS_IND-PO_ITEM = '00003'.
    ITEMS_IND-MATERIAL = 'X'.
    ITEMS_IND-PLANT = 'X'.
    ITEMS_IND-QUANTITY = 'X'.
    ITEMS_IND-NET_PRICE = 'X'.
    APPEND ITEMS_IND.
    *Create Production order
    CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
    POHEADER = HEADER
    POHEADERX = HEADER_IND
    TABLES
    RETURN = RETURN
    POITEM = PO_ITEMS
    POITEMX = ITEMS_IND.
    *Commit BAPI
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.
    *Display PO number
    FORMAT COLOR 6 INVERSE ON.
    READ TABLE RETURN WITH KEY TYPE = 'S'.
    IF SY-SUBRC <> 0.
    WRITE: /,'Purchase Order not created'.
    ELSE.
    WRITE: /, RETURN-MESSAGE.
    ENDIF.
    FORMAT COLOR OFF INVERSE OFF.
    2----
    *& Report ZSAN_BAPI_TEST1 *
    REPORT ZSAN_BAPI_TEST1.
    DATA: ORDER_HEADER LIKE BAPISDHEAD,
    " Sales and Distribution Document Header
    ORDERPARTNER LIKE BAPIPARTNR OCCURS 0 WITH HEADER LINE,
    " SD Document Partner
    ORDER_ITEM_IN LIKE BAPIITEMIN OCCURS 0 WITH HEADER LINE,
    " Create SD Document Item
    HEADER_IND LIKE BAPISDHEADX,
    " Checkbox Fields for Sales and Distribution Document Header
    RETURN LIKE BAPIRETURN1 OCCURS 0 WITH HEADER LINE,
    " Return Parameter
    W_ORDER LIKE BAPIVBELN-VBELN.
    " Sales Document
    *Initialize values
    ORDER_HEADER-DOC_TYPE = 'TA'.
    ORDER_HEADER-SALES_ORG = '5555'.
    ORDER_HEADER-DISTR_CHAN = '55'.
    ORDER_HEADER-DIVISION = '55'.
    ORDERPARTNER-PARTN_NUMB = '0000003002'.
    ORDERPARTNER-PARTN_ROLE = 'SP'.
    APPEND ORDERPARTNER.
    CLEAR ORDERPARTNER.
    ORDER_ITEM_IN-MATERIAL = 'MAT1'.
    ORDER_ITEM_IN-REQ_QTY = '2.000'.
    APPEND ORDER_ITEM_IN.
    CLEAR ORDER_ITEM_IN.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
    EXPORTING
    ORDER_HEADER_IN = ORDER_HEADER
    CONVERT_PARVW_AUART = 'X'
    IMPORTING
    SALESDOCUMENT = W_ORDER
    RETURN = RETURN
    TABLES
    ORDER_ITEMS_IN = ORDER_ITEM_IN
    ORDER_PARTNERS = ORDERPARTNER.
    *Commit BAPI's process
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.
    FORMAT COLOR 6 INVERSE ON.
    READ TABLE RETURN WITH KEY TYPE = 'E'.
    IF SY-SUBRC = 0.
    WRITE: 'Sales order not created' .
    ELSE.
    WRITE: ' Sales order NO.',W_ORDER COLOR 5, 'created successfully'.
    ENDIF.
    FORMAT COLOR OFF INVERSE OFF.
    3----
    *& Report ZSAN_BAPI_PROFIT_CTR *
    REPORT ZSAN_BAPI_PROFIT_CTR .
    PARAMETERS: PR_CTR LIKE BAPI0015ID2-PROFIT_CTR,
    VLD_TO LIKE BAPI0015_3-DATE.
    DATA: PROFITCENTERID LIKE BAPI0015ID2 OCCURS 0 WITH HEADER LINE,
    VALID_FORM LIKE BAPI0015_3-DATE,
    VALID_TO LIKE BAPI0015_3-DATE,
    BASICDATA LIKE BAPI0015_4 OCCURS 0 WITH HEADER LINE,
    RETURN LIKE BAPIRET2 ,
    PROFITCENTER LIKE BAPI0015ID2-PROFIT_CTR,
    CONTROLLINGAREA LIKE BAPI0015ID2-CO_AREA.
    *Fill PROFITCENTERID
    PROFITCENTERID-PROFIT_CTR = PR_CTR.
    PROFITCENTERID-CO_AREA = '1000'.
    APPEND PROFITCENTERID.
    *Fill VALID_FORM
    VALID_FORM = '19940101'.
    *Fill VALID_TO
    VALID_TO = VLD_TO.
    *Fill BASICDATA
    BASICDATA-PRCTR_NAME = 'Sanket'.
    BASICDATA-PRCTR_HIER_GRP = 'H1010'.
    BASICDATA-IN_CHARGE = 'Sanket'.
    APPEND BASICDATA.
    *Get Profit center
    CALL FUNCTION 'BAPI_PROFITCENTER_CREATE'
    EXPORTING
    PROFITCENTERID = PROFITCENTERID
    VALIDFROM = VALID_FORM
    VALIDTO = VALID_TO
    BASICDATA = BASICDATA
    IMPORTING
    RETURN = RETURN
    PROFITCENTER = PROFITCENTER
    CONTROLLINGAREA = CONTROLLINGAREA.
    *Commit BAPI
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.
    *Display profit center
    FORMAT COLOR 6 INVERSE ON.
    IF RETURN-TYPE = 'E'.
    WRITE: /,RETURN-MESSAGE.
    ELSE.
    WRITE: /,RETURN-MESSAGE.
    ENDIF.
    FORMAT COLOR OFF INVERSE OFF.
    REPORT ZVRDOC0 no standard page heading
    line-size 300
    line-count 50(5).
    TABLES : vbak, "Sales Document Header Level
    vbap, "Sales Document Header Level
    kna1. "General Data in customer Master
    *INTERNAL TABLE T_VBAP
    DATA : Begin of t_vbap occurs 0,
           vbeln like vbap-vbeln,
           matnr like vbap-matnr,
           posnr like vbap-posnr,
           arktx like vbap-arktx,
           kwmeng like vbap-kwmeng,
           cmkua like vbap-cmkua,
           end of t_vbap.
    *INTERNAL TABLE T_TAB.
    DATA : Begin of t_tab occurs 0,
            vbeln like vbak-vbeln,
            kunnr like vbak-kunnr,
            audat like vbak-audat,
            netwr like vbak-netwr,
            vkorg like vbak-vkorg,
            name1 like kna1-name1,
            land1 like kna1-land1,
            end of t_tab.
    *INTERNAL TABLE T_FINAL.
    DATA : Begin of t_final occurs 0,
            vbeln like vbap-vbeln,
            kunnr like vbak-kunnr,
            matnr like vbap-matnr,
            posnr like vbap-posnr,
            arktx like vbap-arktx,
            kwmeng like vbap-kwmeng,
            cmkua like vbap-cmkua,
            audat like vbak-audat,
            netwr like vbak-netwr,
            vkorg like vbak-vkorg,
            name1 like kna1-name1,
            land1 like kna1-land1,
            end of t_final.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-bO3.
    parameters : P_kunnr like vbak-kunnr.
    select-options : S_vbeln for vbak-vbeln,
                     S_audat for vbak-audat.
    SELECTION-SCREEN END OF BLOCK B1.
    start-of-selection.
    select vbeln  matnr posnr arktx kwmeng cmkua  from vbap
    into corresponding fields  of table  t_vbap  where vbeln in S_vbeln .
    IF sy-subrc EQ 0.
    select  vbakkunnr vbakvbeln vbakaudat vbaknetwr vbak~vkorg
            kna1name1 kna1land1  into  table   t_Tab   from
            vbak   join  kna1   on kna1kunnr  = vbakkunnr
            FOR ALL ENTRIES IN t_vbap
            where vbak~vbeln = t_vbap-Vbeln and
            vbak~kunnr = p_kunnr and
            vbak~audat  in  S_audat .
    ENDIF.
    *end-of-selection.
    loop at t_vbap.
    read table t_tab with key vbeln = t_vbap-vbeln.
    move :
    t_vbap-vbeln to t_final-vbeln,
    t_vbap-matnr to t_final-matnr,
    t_vbap-posnr to t_final-posnr,
    t_vbap-arktx to t_final-arktx,
    t_vbap-kwmeng to t_final-kwmeng,
    t_vbap-cmkua to t_final-cmkua,
    t_tab-kunnr to t_final-kunnr,
    t_tab-audat to t_final-audat,
    t_tab-netwr to t_final-netwr,
    t_tab-vkorg to t_final-vkorg,
    t_tab-name1 to t_final-name1,
    t_tab-land1 to t_final-land1.
    append t_final.
    clear t_Final.
    endloop.
    sort t_Final by vbeln   Kunnr    matnr posnr  .
    loop at t_final.
    at new vbeln.
    write : /1 SY-VLINE, 2 t_final-vbeln color 5 inverse.
    ULINE /1(250).
    endat.
    write : /1 SY-VLINE, 2 t_final-vbeln color 5 inverse,
    20 SY-VLINE, 21 t_final-posnr color 5 inverse,
    40 SY-VLINE, 41 t_final-matnr color 5 inverse,
    60 SY-VLINE, 61 t_final-arktx color 4 inverse,
    80 SY-VLINE, 81 t_final-kwmeng color 4 inverse,
    100 SY-VLINE, 101 t_final-cmkua color 4 inverse,
    120 SY-VLINE, 121 t_final-kunnr color 3 inverse,
    140 SY-VLINE, 141 t_final-audat color 3 inverse,
    160 SY-VLINE, 161 t_final-netwr color 2 inverse,
    180 SY-VLINE, 181 t_final-vkorg color 2 inverse,
    210 SY-VLINE, 211 t_final-name1 color 1 inverse,
    230 SY-VLINE, 231 t_final-land1 color 1 inverse,
    250 SY-VLINE.
    at end of vbeln.
    sum.
    ULINE /1(250).
    write: /60 SY-VLINE, 'Total' ,
    81 t_final-kwmeng color 4 inverse ,100 SY-VLINE,
    101 t_final-cmkua color 4 inverse,120 SY-VLINE.
    ULINE /1(250).
    endat.
    at last.
    SKIP 2.
    sum.
    ULINE /1(250).
    write: /1 SY-VLINE, 60 SY-VLINE, 'Grand Total' ,
    81 t_final-kwmeng color 4 inverse , 100 SY-VLINE ,
    101 t_final-cmkua color 4 inverse,120 SY-VLINE.
    ULINE /1(250).
    endat.
    endloop.
    TOP-OF-PAGE.
    ULINE /50(24).
    WRITE : /50 SY-VLINE , 52 'SALES ORDER DETAILS' COLOR 5,
    73 SY-VLINE.
    ULINE /50(24).
    ULINE .
    WRITE: /10 'CURRENT DATE :', 25 SY-DATUM COLOR 1 INVERSE,
    100 'CURRENT TIME :', 115 SY-UZEIT color 5 INVERSE.
    WRITE: /10 'USERNAME :', 25 SY-UNAME COLOR 1 INVERSE,
    100 'PAGE NO :', 113 SY-PAGNO COLOR 5 INVERSE.
    WRITE: /10 'LOGON CLIENT :', 25 SY-MANDT COLOR 1 INVERSE,
    100 'COLON N0 :', 114 SY-COLNO COLOR 5 INVERSE.
    WRITE: /10 'CURRENT REPROT:', 25 SY-REPID COLOR 1 INVERSE,
    100 'LANGUAGE :', 116 SY-LANGU COLOR 5 INVERSE.
    ULINE.
    ULINE /1(250).
    write : /1 SY-VLINE, 2 'SALES DOC NO' color 6 inverse,
    20 SY-VLINE, 21 'SALES DOC ITEM' color 6 inverse,
    40 SY-VLINE,41 'MATERIAL NO' color 6 inverse,
    60 SY-VLINE, 61 'SHORT SALES TEXT' color 6 inverse,
    80 SY-VLINE, 81 'CUMM ORDER SALES' color 6 inverse,
    100 SY-VLINE, 101 'CREDIT DATA' color 6 inverse,
    120 SY-VLINE, 121 'CUSTOMER NO' color 6 inverse,
    140 SY-VLINE, 141 'DOC DATE' color 6 inverse,
    160 SY-VLINE, 161 'NET VALUE SALES' color 6 inverse,
    180 SY-VLINE, 181 'SALES ORG' color 6 inverse,
    210 SY-VLINE, 211 'CUSTOMER NAME' color 6 inverse,
    230 SY-VLINE, 231 'CUSTOMER CONTY' color 6 inverse,
    250 SY-VLINE.
    ULINE /1(250).
    END-OF-PAGE.
    ULINE.
    WRITE: /45 ' THIS IS END OF PAGE FOR SALES DOCUMENT DETAILS'
    COLOR 6 .
    regards.
    sowjanya.b

  • Configuration is not updating in sales order using function module SD_SALESDOCUMENT_CREATE

    Hello Experts,
    we are using SD_SALESDOCUMENT_CREATE function module to create sales order.
    Sales order is creating successfully but the configuration for the items are not updating.
    Could any one help me out on this ....we tried in different ways but couldn't ....
    Here is the code....
    *---Filling Configuration data
    *--- Filling Configuration Reference Item / Instance
         w_sales_cfgs_refinst-posex     = w_items-itm_number.
         w_sales_cfgs_refinst-config_id = '000001'.
         w_sales_cfgs_refinst-inst_id   = '00000001'.
         APPEND  w_sales_cfgs_refinst TO  t_sales_cfgs_refinst.
         CLEAR  w_sales_cfgs_refinst.
    *---Filling Configuration Reference Data SALES_CFGS_REF Table
         w_sales_cfgs_ref-posex      = w_items-itm_number.
         w_sales_cfgs_ref-config_id  = '000001'.
         w_sales_cfgs_ref-sce        = '1'.
         w_sales_cfgs_ref-root_id    = '00000001'.
         w_sales_cfgs_ref-complete   = 'T'.
         w_sales_cfgs_ref-consistent = 'T'.
         APPEND w_sales_cfgs_ref TO t_sales_cfgs_ref.
         CLEAR w_sales_cfgs_ref.
    *---Filling Configuration Instances SALES_CFGS_INST Table
         w_sales_cfgs_inst-config_id       = '000001'.
         w_sales_cfgs_inst-inst_id         = '00000001'.
         w_sales_cfgs_inst-obj_type        = 'MARA'.
         w_sales_cfgs_inst-class_type      = '001'.
         w_sales_cfgs_inst-obj_key         = w_sales_items_in-material.
         w_sales_cfgs_inst-quantity        = w_items-target_qty.
         w_sales_cfgs_inst-quantity_unit   = 'EA'.
         w_sales_cfgs_inst-complete        = 'T'.
         w_sales_cfgs_inst-consistent      = 'T'.
         w_sales_cfgs_inst-OBJECT_GUID     = 'T'.
         w_sales_cfgs_inst-PERSIST_ID_TYPE = w_sales_items_in-material.
         APPEND w_sales_cfgs_inst TO t_sales_cfgs_inst.
         CLEAR w_sales_cfgs_inst.
    *---Filling Configuration Characteristic Values SALES_CFGS_VALUE Table
         LOOP AT w_items-itm_config INTO wa_itm_config.
           w_sales_cfgs_value_in-config_id = '000001'.
           w_sales_cfgs_value_in-inst_id   = '00000001'.
           w_sales_cfgs_value_in-charc     = wa_itm_config-charc_name.
           w_sales_cfgs_value_in-value     = wa_itm_config-charc_value.
           APPEND w_sales_cfgs_value_in TO t_sales_cfgs_value.
    *---Filling Configuration Variant Condition Key SALES_CFGS_VK
           w_sales_cfgs_vk-config_id = '000001'.
           w_sales_cfgs_vk-inst_id   = '00000001'.
           w_sales_cfgs_vk-vkey      = wa_itm_config-charc_name.
           APPEND w_sales_cfgs_vk TO t_sales_cfgs_vk.
           CLEAR : w_sales_cfgs_value_in,w_sales_cfgs_vk.
         ENDLOOP.
    Regards,
    Harsha P

    Hello All,
    Actually there was a bug in my code to update configuration for an item in sales order
    Below is my Updated Code with that i can updated configuration successfully....
    *---Filling Configuration data
    *---Filling Configuration Reference Data SALES_CFGS_REF Table
         w_sales_cfgs_ref-posex      = w_items-itm_number.
         w_sales_cfgs_ref-config_id  = '000001'.
         w_sales_cfgs_ref-sce        = '1'.
         w_sales_cfgs_ref-root_id    = '00000001'.
         w_sales_cfgs_ref-complete   = 'T'.
         w_sales_cfgs_ref-consistent = 'T'.
         APPEND w_sales_cfgs_ref TO t_sales_cfgs_ref.
         CLEAR w_sales_cfgs_ref.
    *---Filling Configuration Instances SALES_CFGS_INST Table
         w_sales_cfgs_inst-config_id       = '000001'.
         w_sales_cfgs_inst-inst_id         = '00000001'.
         w_sales_cfgs_inst-obj_type        = 'MARA'.
         w_sales_cfgs_inst-class_type      = '300'.
         w_sales_cfgs_inst-obj_key         = w_sales_items_in-material.
         w_sales_cfgs_inst-quantity        = w_items-target_qty.
         w_sales_cfgs_inst-quantity_unit   = 'EA'.
         w_sales_cfgs_inst-complete        = 'T'.
         w_sales_cfgs_inst-consistent      = 'T'.
         w_sales_cfgs_inst-object_guid     = w_sales_items_in-material.
         w_sales_cfgs_inst-persist_id_type = 'G'.
         APPEND w_sales_cfgs_inst TO t_sales_cfgs_inst.
         CLEAR w_sales_cfgs_inst.
    *---Filling Configuration Characteristic Values SALES_CFGS_VALUE Table
         LOOP AT w_items-itm_config INTO wa_itm_config.
           w_sales_cfgs_value_in-config_id = '000001'.
           w_sales_cfgs_value_in-inst_id   = '00000001'.
           w_sales_cfgs_value_in-charc     = wa_itm_config-charc_name.
           w_sales_cfgs_value_in-value     = wa_itm_config-charc_value.
           APPEND w_sales_cfgs_value_in TO t_sales_cfgs_value.
    *---Filling Configuration Variant Condition Key SALES_CFGS_VK
           w_sales_cfgs_vk-config_id = '000001'.
           w_sales_cfgs_vk-inst_id   = '00000001'.
           w_sales_cfgs_vk-vkey      = wa_itm_config-charc_name.
           APPEND w_sales_cfgs_vk TO t_sales_cfgs_vk.
           CLEAR : w_sales_cfgs_value_in,w_sales_cfgs_vk.
         ENDLOOP.
         CLEAR : w_sales_items_in,wa_mara,w_items,w_sales_schedules_in,
                 w_items-itm_number.
       ENDLOOP.
    Cheers,
    Harsha

  • Tax Jurisdiction Code Check as part of a Sales Order Partner Function

    Hi,
    I have a scenario where we modify partner information directly in the sales order. These partners are simple addresses and are not tax relevant. We have set them up as one-time customers. Every time when we modify the address information, Vertex kicks in and tries to match the address information (street, city and state) with a tax jurisdiction code. In our case the address information is high level (only city and state) which is not enough for Vertex. SAP issues then a blocking error message.
    We try to find a way to ignore Vertex for these specific partners. In the documentation we have found a user exit, as well as a BADI, but our developpers were not able to make it work in the sales oder.
    The user-exit is the following: EXIT_SAPLFYTX_USER_001
    The BADI is the following: IF_EX_ADDRESS_SUBSCREEN
    In EXIT_SAPLFYTX_USER_001, I've found a parameter (EXEMP_IND) which could enable to bypass the tax jurisdiction code check and the RFC call to Vertex.
    In IF_EX_ADDRESS_SUBSCREEN, I've found a parameter (CHECK_ADDRESS) which could potentially bypass the check as well.
    Did any of you already experience this scenario or would you have an idea about how I could make this work?
    Thanks
    Loic

    Unfortunately, the sales order is created through an interface (using iDOCs), and the external system feeding the iDOC for the sales order creation does not have any Zip Code information. Besides, even if the Zip Code is entered, it is still not enough for Vertex to choose automatically a Tax Jurisdiction Code, most of the times, it is also requiring a District, which again, will not be passed from the interface.
    We went through this analysis already and we came to the conclusion that we need to bypass this check, as this partner function is not tax relevant.
    Thanks,
    Loic
    Edited by: Loic Dominik on Jun 27, 2011 7:39 PM

  • Field sequence Change in Sales order after adding new field( Resolved)

    Hi I have added a new filed into sales order/item overview.(addded thr se51-layout ) . but when i go to va01/02/03, i noticed that the field sequence is changed due to my new field.(but when i see the layout its differnt and correct.)( even i checked changing the groups also)
    Is there something i need to do..?Please advise. Thanks a lot.
    <b>Answer:</b>
    Table view is configurable in VA01/02/03.( No matter where you add the  new fields)
    Users can always move them to desired position.
    Message was edited by: Deadlock1
    Message was edited by: Deadlock1
    Message was edited by: Deadlock1

    Hi
    In the comments for the subroutine, it says:
    *       Parameter new_pricing controls the new pricing in the calling *
    *       form. It can be filled according the the allowed values       *
    *       of domain KNPRS (Pricing type), for example:                  *
    *       ' ' = no new pricing                                          *
    *       B   = Carry out new pricing                                   *
    *       C   = Copy manual pricing elements and redetermine the others
    So, you must write:
    If VBAP_WERKS NE *VBAP_WERKS.
      new_pricing = 'B'.
    Endif.
    Regards
    Eduardo
    Edited by: E_Hinojosa on Aug 25, 2011 8:21 AM

  • In Sales Order form populate charges field after saving the Sales Order

    Can we populate Charges field in Sales Order form after saving the sales Order automatically.
    The charges to be calculated based on the amount entered and the item selected in Sales Order.
    In the Manual process it is done by hitting the Actions Button and then select the Charges.
    The charge type would be "Freight Costs"

    by using process_order API, I am able to update the charges field.

  • Authorisation at sales order partner function

    Hello All,
    The scenario is that there are group of users who have the authorisation to change delivery and assign a changed vendor (in partner function) at item level.
    Now this group even requires the authorisation to do this at sales order line item level (in partner function), so that the data is alike in sales order as well as delivery.
    My problem is, how to restrict the authorisation to only sales order line item level for partner function tab in VA02.
    An early help would be appreciated.
    Thanks and regards,
    AK

    Are we allowed to challenge the requirement ?
    Why does it bother you that the partners are different on sales and delivery docs ? Assuming you have delivery-related billing the partners on the billing doc will be those from the delivery.
    I don't like these automatic updates in the backgrounds, you will run into exceptional cases where you specifically do not want it to happen.
    Your authorization is set up not to allow these users to change the sales order. That is for a reason. Can't you put a procedural solution in place, some way contact the persons who do have access ? Could do that even via workflow.
    regards
    Rad.

  • SALES ORDER: Total of a Field from the Grid in a User-Defined Field in ORDR

    Hello!
    I created a User-Defined Field called "U_Soma" in table ORDR (Marketing Documents / Title).
    I need this U_Soma field Totalize the content of another User-Difined Field called "U_TotalPorUM" created in table RDR1 (Marketing Documents / Rows). It must get the Sum the value of all rows in the current record being edited.
    Using the Query below, it works fine with already saved records:
    SELECT SUM(T1.[U_TotalPorUM]) FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocEntry = $[ORDR.DocEntry]
    However, I need that it work with non saved (yet) records.
    Thank you!
    VALERIO OLIVEIRA
    Edited by: ValerioOliveira on Apr 22, 2010 10:14 PM

    Gordon, thank you for your fast answers!
    In other circumstances I would agree with you.
    But the U_Soma field must be used to control the maximum weight of a charge.
    It becames very usefull if user can see that the charge limit is reached, still when the Sales Order is being edited.
    (The U_TotalPorUM field shows the weight of each item).
    I would appreciate any help!
    Thanks a lot!
    VALERIO OLIVEIRA
    Edited by: ValerioOliveira on Apr 23, 2010 7:28 PM

  • CRM sales order and data base field in R/3

    Where can I see in R/3 that the replicated CRM sales order is created in CRM?
    Is there a field e. g. in the data base table VBAK or VBAP?

    Hi,
    you can find the information in VBAK table in field LOGSYSB, which is the logical system with which document was created.
    Enter the CRM logical system name in this field, and you will find all the orders created in CRM system.
    Regards,
    Susanta

Maybe you are looking for

  • How to save jpeg files in iPhoto

    I would like to be able to make changes in Photoshop and then be able quickly save a jpeg file in my iPhoto library (Version 9). From what I could deduce, the only way to do this would be to save the file to my hardrive, then go to iPhoto, choose the

  • New iMac old(er) iPods

    I have just purchased an iPod and and am in the process of restoring my library which has been a bit intense, but I'm making progress. The library was originally created on a PC which all of my families iPod's synced to. Once I get the libraries rest

  • Passing an array to a method

    This is probably a really simple question - but I'm new to java! Object (is that the right word?) Car consists of some information about a car - registration number, engine size etc. I have defined an array of objects of type car, and I want to pass

  • Return an application exception from RFC

    Hi, my scenario is File -> XI -> RFC. I want to send by email any application exception returning from the RFC call. Since this is a Asynch call how do i implement it?

  • Default open jpg to photoshop cc 2014 in win 8.1

    Why dont beta testers find things like this. in windows 8.1, you can not change the default program for jpg, jpeg or gif to photoshop cc 2014 in default settings it always defaults to photoshop cc 64bit instead. Tif and Tiff however can be switched t