Change Sales Order material characteristics

Dear Pals,
I have a question for changing Sales Order material characteristics by item.
If i want to change the sales order's item  conditions, I can modify the internal table  "XKOMV" in user exit "USEREXIT_SAVE_DOCUMENT_PREPARE"
Is there any internal table for  Sales Order's characteristics can i use   in user exit "USEREXIT_SAVE_DOCUMENT_PREPARE" ?
Or any FM or BAPIs can get the internal table for characteristics and characteristics value for Sales Order item?
Thank you!

You can use BAPI_SALESORDER_CHANGE.
1. Get the SO detail using BAPISDORDER_GETDETAILEDLIST.
2. MODIFY the ORDER_CFGS_* internal tables and  update.
        CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
          TABLES
            order_cfgs_value   = gt_char
            order_cfgs_ref       = gt_char_ref
            order_cfgs_inst      = gt_char_ins.
        MODIFY gt_cfgs_*.
        CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
         TABLES
            order_cfgs_value   = gt_char
            order_cfgs_ref       = gt_char_ref
            order_cfgs_inst      = gt_char_ins.
Refer SAP note 549563.

Similar Messages

  • Report on sales order material

    Hi
    i am working in implementation project first time.We are implementing sd module in bi. We are working on the infocube 0sd_c03.I have to develop the reports on "*sales order material". As i am new kindly explain me what is procedure step by step
    Tushar

    Hi Tushar,
    1.Execute T-code RSA1, Under menu options on LHS, goto Metadata Repository.
    You will find 2 windows adjacent to eachother.
    Under "SAP Business Information Warehouse" window, Click on "Local Objects" under Heading Business Content.
    After Selecting that, you will find a huge list of all the objects on RHS window such as KPI's,Infoarea,Application, info object catalog etc..
    Click on "Infocube". (note:System may take time to display all list of cubes.)
    You will find a list of all infocubes which are ready to use (out-of-the-box) from Business content.
    Search for your cube ,use CTRL+F /Find option (give Sales cube or 0SD_C03 in search).
    Click on the cube Sales cube :0SD_C03.
    Now you will find all the details about this cube. Each and every data objects are dispayed.
    Goto reports section, you will find a huge list of reports already built on your sales cube. There you will find the report 0sd_c03_Q0012.
    If you need to know which key figs/characteristics/variables used in this query, then just click on that query, it will take you to a new screen displaying details about that query.
    Once you gather all the details, then after Gap analysis, if you feel that, yes the standard out of the box report matches your requirement or it almost meets the requirement and if you need to do slight enhancements then you can go ahead in instaling this report and save a lot of time instead of starting from scratch.
    To install this report, pre-requisites are- you should haveinstalled your cube, underlying DSO, transformation, all keyfigs, all chars, data source etc.
    and then use T-code RSORBCT/you can use BI Content menu on LHS in RSA1 screen to install this report.
    If pre-requisites are pending, you need to install all the objects first, you can use RSORBCT to install your cubes.
    2. It is advisable to search the query you need in the business content, if the query matches the requirement, you save a lot of time in developing the query. If you didnt find the suiatable query in Busines content, then you need to develop it from scratch.
    3)
    so when we run the query in bex query designer on cube 0sd_c03 by using 0sd_c03_Q0012 then what are things we have to take care. In rows and columns which chartersitic and key figures we have to put?
    I hope the query 0sd_c03_Q0012 "sales order material" may meet your requirements. If its not then try to get what is missing in this. If you need to enhance by adding any new objects, then first install this query from Business content, and then modify this query as per your need. and then activate and it will be ready to use.
    You can install any object as many times as possible from business content, its just the same as copy and paste.
    So only business content can help you on first phase regarding your requirement, because SAP has developed these reports at standard level used world wide thoughout industry.
    Hope this clears your queries.
    Regards
    Jeeth
    Edited by: Jeeth_P on Feb 3, 2012 9:25 AM

  • Change Sales Order, Delivery, Billings Reports

    Hi Gurus,
    Can any body please tell me is there any Report for change logs of Change Sales Order, Delivery,
    Billings & Change report of Customer & Material,
    Regards,
    Sai

    Hi,
    There are no standard reports to display the changes made in the Sales orders and the details you had asked.
    But for the latest changes you can check in the Table :Header details for change CDHDR and for Item details CDPOS
    Or Based on your requirement you can go for a Customized Report
    rgds
    psk

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • End User Transaction for Mass Change Sales Orders

    Hello,
    Transaction MASS can be used to change sales orders using object type BUS2032, however, end users are not allowed access to MASS.
    In most other cases, the object types can be accessed by individual transactions, for example, MEMASSPO for BUS2012 and XD99 for KNA1.
    But I cannot seem to find a similar transaction for object type BUS2032, does anyone know whether one exists or how to create such a shortcut.
    Thanks,
    Jake.

    Hi
    See SAP Note 483303 - BUS2032: Only sales orders of category VBAK-VBTYP = 'C'
    Regards
    Eduardo

  • Getting error in while changing sales order which is created using BAPI

    Hi All,
       I have created the sales order using BAPI ( BAPI_SALESORDER_CREATEFROMDAT1 ) and i am successfully creating sales order using this BAPI. But while i want to change sales order iam changing Shipping Conditions in Header Data of sales order .its giving an error .can any know any thing about this.
    Error mesage :    No status object is available for SDI 300082407/10    (Order Number/Item Number)
    In Header i  am passing these values ...
         wa_order_header_in-doc_type = vbak-auart.
        wa_order_header_in-sales_org = vbak-vkorg.
        wa_order_header_in-distr_chan = vbak-vtweg.
        wa_order_header_in-division = vbak-spart.
    Do i required to pass the below values ? in Header structure ( BAPISDHEAD1 ).
    REFOBJECTTYPE
    REFOBJECTKEY
    REFDOCTYPE
    Regards,
    Sudhakar Reddy A

    rectified

  • Changing Sales Order PARTNER from 'MASS' transaction

    Hi,
    I have a requirement to change partner details (e.g. SHIP TO party  from SH1  to  SH2) for sales order. I need to use tcode 'MASS' (Mass maintainance)  for BUS2032.  But it does not have the option to change partner details.
    Can anybody let me any approach to achieve this. If we can do it through a config or may be creating a custom business object etc...
    I could found out the thread below talking about the same issue, but there is no solution to that. I want to build the solution around SAP standard and not interested for BDC/LSMW/CATT  etc.
    Mass changes Sales order partners
    Thanks,
    Madhu
    Edited by: Madhu K on Nov 1, 2011 11:58 PM

    Alan
    I am ok to create a custom tcode for MASS.  Do I need to copy the BUS2032  or the whole TCODE?
    My major concern is,  how to get the VBPA structure to the selection screen so that it ll show me  the I/P fields to enter Old  Ship to  and  New ship to..
    Can You please give me some idea on this.
    Thanks
    Madhu

  • New sales order and Change sales order in item level or delete at item leve

    I got one requirement. Daily i have to display one report on new sales orders created on that day and any sales order item is modified or any item is deleted or any item is added.
                      How to get the sales order numbers and position numbers which will follow above creteria. I found one function module but it is not giving position numbers and new sales order details.
             Is there any BAPI for this requirement.

    I am using "CHANGEDOCUMENT_READ" function module to get the new sales orders created and changed sales order items on a particular time. This function module is getting data from CDHDR and CDPOS tables. But only change sales orders is coming. New sales orders which is created on that time is not getting.
              One of my friend is telling like we have to activate one change pointer to retrive new sales orders also. Which is like there will be one check box.
    Is any body having idea on this. Please reply me on briefly with the code to retrive new sales orders and changed sales orders

  • BAPI / FM to change Sales order item data

    Hi,
    I need a BAPI or FM to update the following fields of VBAP (Sales Document Item Data)
    KZWI2 - Subtotal 2 from pricing procedure for condition
    KZWI3 - Subtotal 3 from pricing procedure for condition
    KZWI4 - Subtotal 4 from pricing procedure for condition
    KZWI5 - Subtotal 5 from pricing procedure for condition
    I found FM: ISM_SALES_ITEM_CHANGE for this, but when I use it, it gives me dump for some data object 'XJKNBK'.
    Does any one have idea on how to use this FM or if any other FM is there please let me know?
    Thanks & Regards,
    Sunanda.

    hi Sunanda..
    I think you can try the Bapi 'BAPI_SALESORDER_CHANGE'. You can make use of its Tables Parameter CONDITIONS_IN and CONDITIONS_INX.
    example:
    How to change pricing Conditions in Sales order in change sales order bapi
    thanks,
    Padma

  • Error received while changing sales order.

    Hi All,
    while changing sales order we have received error message "An internal program error has occured.See note 44283".
    So could you plesae explain me what needs to be done.
    Thanks in advance.

    To avoid to store inconsistent data in the future, activate the following method of the BADI                           BADI_SD_SALES:                                                          
    > 1 - Transaction SE18                                         
    > 2 - Definition name: BADI_SD_SALES Menu: Implementation -> Overview double-click on implementation: IM_CORE_CHECK
    > 3 - Now you will get an overview on the methods and you see also that the implementation IM_CORE_CHECK is inactive    
    > 4 - Press the change button and activate                                                                               
    This check works in the following way:
    > 1 - if the number of items is less than 10 and there is an inconsistency the system will not store the data and an A-message  will occur.
    > 2 - If the number of items is greater than 10 and less than 50 and there is an inconsistency the data will be stored and an I-message will occur.
    > 3 - if the number of items is greater than 50 there is no check because performance.
    Edited by: Gerard Magorrian on Aug 6, 2010 4:01 PM

  • Error in change sales order.

    Hi ,
    my process is : First create SO than Billing  than Delivery. i need to change the sales order Batch  when
    delivery saved.
    When  i change Sales order Batch  withouting creating billing it is changing Fine through BAPI FM .
    But when i create So --Billing --- delivery than in this case Sales order batch not changing.
    it is giving error like below.
    Field  CHARGE  Can not be changed VBAPKOM 000010 is ready for input'
    Message is comming from message class V1 and Message no 739.
    PLease Reply .
    If any clue Have.
    Thanks.

    Hi,
    When you create a Billing Document for the Sales Order it is no longer possible to change a lot of fields (as these fields have been copied to the Billing Document). Field Batch is one of those fields.
    So if you have to include the batch in the Sales order you must update this field prior to creating the Billing Document.
    Regards,
    John.

  • Change Sales Order Contract Data FM

    Hi Friends
    Kindly let me know if there is any function module or BAPI to change Sales order Contract Data of each line item. 'BAPI_SALESORDER_CHANGE' dosent have that.
    Thanks

    Hi Ram,
    Check will this helps you ...
    call function 'BAPI_CUSTOMERCONTRACT_CHANGE'
    exporting
    SALESDOCUMENT = vbeln
    CONTRACT_HEADER_IN = w_header
    CONTRACT_HEADER_INX = w_headerin
    INT_NUMBER_ASSIGNMENT = 'X'
    ORDER_HEADER_INX
    BEHAVE_WHEN_ERROR = 'P'
    LOGIC_SWITCH
    TESTRUN = 'X'
    convert = 'X'
    importing
    salesdocument = v_order
    salesdocument = vbeln
    tables
    return = t_return
    CONTRACT_items_in = t_items
    CONTRACT_ITEMS_INX = r_items
    CONTRACT_partners = t_partners
    CONTRACT_schedules_in = t_sched
    CONTRACT_conditions_in = t_conds
    CONTRACT_text = t_texts .
    Regards,
    Poornima

  • VA01 - sale order Material Configuration values to be read

    Hi,
    I am trying to read the entered sale order material configuration values in TCode VA01 and update the xvbap in userexit USEREXIT_CHECK_VBAP in program MV45AFZB.
    Kindly let me know to get the material configuration values in this userexit.
    Regards,
    Rajanbabu R

    Dear Rajesh,
    The strategy type 25 has been copied and the following fields are modified as follows for the new strategy type Y5.
    Requirement type of customer requirement YT5 instead of standard entry KEK
    Requirement class YT5 instead of standard entry 046
    Account assignment category -  E instead of standard M
    Settlement profile - SO1
    Configuration field - defined as 'allowed' instead of standard setting ' Mandatory '
    The field PQTY in the procurement  tab page for that particular line item is greyed out and we are unable to key in the value YT5.Unless I entered this value I am not able to procure the component of that line item in that sale order.
    Please suggest me any means to enter this value . Shall I configure the BOM for that line item and fix it again in CU51.
    Thanks and Regards,
    Ram

  • Problem in updating Billing plan while changing Sales order

    Hi All,
            I am using the BAPI 'BAPI_SALESORDER_CHANGE' to change a Prepaid Sale order.After calling this BAPI ,I am calling the function module <b>'BILLING_SCHEDULE_SAVE'</b> to update the Billing plan of the changed Sale order(Billing plan dates for Billing type ZF1 are changed).
         The updated date values are getting reflected in the screen when I view through the transaction VA02 and the values are also updated in FPLT table but the values are not getting reflected in the table VKDFS.
       Since the values are not getting reflectedin the table VKDFS the billing date is not correct while we view in the transaction VF04.
       Please provide your valuable suggestions for updating the Billing date in VKDFS table.
        Thanks in advance for your help.
    Thanks and regards,
    Siva

    Hi,
    I had the same problem. Here is an example code to resolve it:
    REPORT  ytestfg.
    DATA: i_bsid LIKE bsid OCCURS 0,
          i_bsid2 LIKE bsid OCCURS 0.
    TABLES: bsid.
    DATA: doc     LIKE     vbak-vbeln,
          pos(6) TYPE n.
    DATA e_fpla     LIKE     fpla.
    DATA e_fplt     LIKE     fpltvb OCCURS 0 .
    DATA: zfpla     LIKE     fplavb OCCURS 0,
    zfplt     LIKE     fpltvb OCCURS 0.
    DATA zfplt2     LIKE     fpltvb OCCURS 0 WITH HEADER LINE.
    doc = 'G03060619'.
    pos = '000010'.
    CALL FUNCTION 'SD_SALES_DOCUMENT_READ'
      EXPORTING
        document_number = doc.
    CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
      EXPORTING
        i_vbeln                = doc
        i_posnr                = pos
      IMPORTING
        e_fpla                 = e_fpla
      TABLES
        e_fplt                 = e_fplt
      EXCEPTIONS
        no_billingplan_allowed = 1
        no_billingplan_found   = 2
        OTHERS                 = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Read the billing plan
    CALL FUNCTION 'BILLING_SCHEDULE_READ'
      EXPORTING
        fplnr          = e_fpla-fplnr
      I_VFKDAT       =
      I_BFKDAT       =
      TABLES
       zfpla          = zfpla
        zfplt          = zfplt
    Upddate the ZFPLT2 table with the new values
    MOVE zfplt[] TO zfplt2[].
    READ TABLE zfplt2 INDEX 1.
    zfplt2-afdat = '20080927'.
    Very important to set field updkz = 'U' ***
    zfplt2-updkz = 'U'. "--> UPDATE!!
    MODIFY zfplt2 INDEX 1.
    CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
      TABLES
        fpla_new = zfpla
        fpla_old = zfpla
        fplt_new = zfplt2 " --> NEW
        fplt_old = zfplt.
    CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Regards,
    Edited by: PHO_BA on Mar 9, 2009 5:28 PM

  • Quation getting referenced automatically through Sales order material

    Hi,
    Quation  should get referenced automatically through given Sales order material.Assume Quation is fixed for all materials entered in Sale sorder.
    i tried using user_exit_move_field_to_vbap and user_exit_save_document_prepare.And updated XVBFA,XVBAP programatically.
    Sales order and Quation(at item level) are getting referenced but quantity of qutaion is not getting reduced by the quantity consumed and MD04 does not reflect the same.
    Can you please help with the pointers.
    Thanks much,
    Vishnu.

    Hi,
    As per standard SAP the description is copied from the material master but the same can be edited while creating the sales order. Take the help of ABPER to debug it find out the error.
    Regards

Maybe you are looking for