Disallow changes in Sales Order through T-Code VA02

Dear Gurus,
We create the Sales Order and with reference to that the User wants to change few fields (Account Assignment Group, Pricing Date, Invoice Date, INCO terms, Payment Terms etc.) which are not supposed to be edited by him through T-Code VA02. Changes should also not to be made with regard to Material Line Item Material like Description & Quantity in Sales Order. We have tried to do the same through Transaction Variant (T-Code SHD0 & User Exit). Unfortunately it is not working. We are not able to assign the Transaction Varient for T-Code VA02 in sales document type through VOV8.
System Audit has raised these points and needs to be done at the earliest.

Hello Aaheli,
I think your requirement of restricting the modification of Sales Order through VA02 can be meet using the following approach:
Seek out the help of BASIS to restrict the Sales order modification role for that specific User ID.
If you wanna restrict the modification of Sales order through VA02 for amny User ID then please use User exit.
Do inform us about the latest updates on this issue.
Regards,
Sarthak

Similar Messages

  • While saving the sales order through Va01 and Va02 and email has to send

    Hi Experts,
    My requirement is to send an email with PDF formatted display of the Sales order to the sold to party's email id while saving the Salesorder through Va01 and Va02.
    I need the following .
    How to send an email with PDF formatted attachment of Salesorder display ? (we have done the formatting of display through SMARTFORMS )
    I think we can do it by userexits program name is MV45AFZZ while saving the document.
    Please suggest me the best possible way.
    Thanks ,
    Saritha

    Hi, there is no need for a customer devlopment on this. A standard smartform output will do with output medium '5' (external send). Then the smartform output will be send as PDF to the e-mail address in the output partner. Have a look at transaction NACE.
    Regards Jack

  • Tracking Post Booking changes to Sales Orders

    Hi,
    We have a requirement for routing changes to Sales Orders through an approval after booking of the order. The changes which need to be tracked and routed through the approval workflow are changes to Scheduled Ship Date and Quantity in the Order Lines.
    Please can anyone in this forum provide ideas/options for developing a solution for this requirement.
    Regards,
    Balu

    Hi Prashant,
    Yes. You are right. The requirement is to approve changes to SSD and Quantity. I am providing detailed description of the requirement for your reference.
    Regards,
    Balu
    Change Order - Customization
    ======================
    Scenario
    Customer orders once booked go through changes (scheduled ship date, quantity, request date and ship to address) on a regular basis. These change requests need to approved by
    1. The Plant Scheduler
    2. and Logistics
    Currently these processes are done through offline requests (email, or verbal)
    Order Management Module Limitation
    Order Management module does not support change order approval and hence there is a need to customize the existing workflow.
    Solution
    The process would be as follows;
    1. The order is booked and the line status becomes ‘Awaiting Shipping’.
    2. Change order request is placed by the customer. (E.g. request date change)
    3. CSR updates the ‘Request Date’ field. At this point the line status should become ‘Pending - Internal Approval’ and accordingly reflect in Production Scheduling Application
    3. Approval notification is sent to Plant scheduler, Formulation Engineer and Logistics. This approval notification should follow a hierarchy, i.e. first needs to be approved by scheduler and so on.
    4. Once approved by process owners, the line status becomes ‘Awaiting Shipping’ and follow the normal process.
    5. If rejected by one of the process owner, then the status should become ‘Booked - Internally rejected’.
    6. The line status remains ‘Booked – Internally rejected’, and should not progress, unless approved by the process owners.
    Additionally a notification needs to be sent to Scheduler, Logistics, and Formulation Engineer regarding any change to an order.

  • Reg. changing sales order through incoming idoc

    Hi,
    I am tyring to change a sales order from inbound edi through idoc type ORDERS05 and message type ORDCHG. Can you please provide me a link for sample mappings/gaps ?
    I am mainly trying to change line items/ quantity/prices. Please give me an idea about qualifiers and mappings to use.
    I appreciate.
    Thank you.

    Friends,
    Any ideas  about solution reg. this question ?
    Thank u.

  • Dates fields issue in the sales orders through IDOC

    Hi all,
    I'm trying to create a sales order through Inbound IDOC using IDOC_INPUT_ORDERS.
    I have 2 custom fields in the sales order which are date fields.
    I'm populating them from the IDOC segments(using E1EDKT1-tdid, E1EDKT2-tdline) in the user-exit just before the call trasacation statement. These dates are not coming for a few orders... but are getting populated normally for few of them.
    But the tricky part is that... if I process the same IDOC for the second time.. the order created is having the dates.
    My issue is that.. i need all the orders to be populated with the dates which IDOC have.
    Could anyone please help me with this issue.
    All the answers/replies are highly appreciated!!
    Thanks for you help!

    hi,
    the following may be of help
    There are 2 major exceptions to the batch input internal table. All text data from the segments E1EDKT1/2 and E1EDPT1/2 are not part of the batch input session. Text elements from these segments are posted directly to the data base AFTER the sales order has been created (please note: in order that item texts are posted correctly to the sales order the field POSEX from segment E1EDP01 MUST be transmitted). Also, configurable material information from the IDOC is exported to a global memory and therefore will not be part of the batch input session. Configurable material data is performed in Form CHECK_CONFIGURATION and the data is exported to global memory in the following code:
    Exportiert IDOC Daten ins globale Memory     
    export IDOC data to global memory            
      call function 'CUXC_IDOC_TO_MEMORY'          
           tables                                  
                cfg_instref = xe1curef             
                cfg_ref     = xe1cucfg             
                inst        = xe1cuins             
                part_of     = xe1cuprt             
                value       = xe1cuval             
           exceptions                              
                error       = 1                    
                others      = 2.                   
    One extra piece of useful infomartion if you wish to debug the process is to set your breakpoints at the following points
    for Function module IDOC_INPUT_ORDERS
    include LVEDAF0F..
      CALL TRANSACTION 'VA01' USING bdcdata
                                MODE  input_method
                                UPDATE 'S'
                                MESSAGES INTO xbdcmsgcoll.
    Now input_method is A foreground process and N for background processing but try changing it to P (pass through mode)
    If you have breakpoints in va01, e.g. MV45AF0B_BELEG_SICHERN,(the part where the sales document is saved)
    they will be hit, e.g
    perform userexit_save_document_prepare.
    perform userexit_save_document.
    Lastly, don't forget using program SDJEDI , see note 380603 for more information on this
    Hope this is useful
    Paul Quinn

  • How to restrict the user from making any changes in Sales order- item level

    Hi to all
    How to restrict the users from making any changes in sales order at item level if the same sales order is released by senior user through status profile.
    Regards
    Anish Parikh
    Edited by: anish parikh on Jan 24, 2008 5:16 AM

    Hi Anish,
    This can be achieved through the roles and authorization.
    This can be done through the basis team. they can create user profiles and roles.
    For the roles they assign some transaction codes so that they can view the only assigned tr. codes.
    Like that ur requirement can be done.
    Also u can prevent the user to change any fields in the sales order screen (VA02). for that please modify the authorisations.
    Hope i answers.
    Reward points if useful.
    Edited by: kaleeswaran bhoopathy on Jan 24, 2008 9:57 AM

  • Adding Sales BOM to Sales Order through SDK

    Hello Experts,
    We're encountering an issue with adding Sales BOM items to the Sales Order through the SDK. When we add the parent, the object automatically adds the children as lines after all other lines. This causes issues with our batch delivery creation. When the Sales Order is created inside SBO Client, it always adds the child items right under the parent. We have a work around where we change the LineNum through SQL, but that seems like a sketchy method - what's the proper way of adding Sales BOM items to a Sales Order?
    Here is the code we're using to add the Sales Order lines
    olOrders.Lines.ItemCode = sItemCode
    olOrders.Lines.ItemDescription = aRecSet.Fields.Item("name").Value
    olOrders.Lines.UnitPrice = aRecSet.Fields.Item("cartprice").Value
    olOrders.Lines.Quantity = aRecSet.Fields.Item("qty").Value
    Thanks for the help!

    Hi Rob,
    I certainly wouldn't recommend you use a direct SQL command to update the LineNum on the sales order rows. This will invalidate your support agreement with SAP.
    One way you can deal with this would be to add your Sales BOM header item to a draft document (of type sales order) and add this first. You can then retrieve it in the DI API and add the other Items before adding the document as a proper sales order (and removing the draft). You can do this using the Draft and Documents objects either by coding each property or by exporting the Draft to XML and using XLST to convert it to a Sales Order and reimporting it. It does require a fair bit of coding but it will achieve what you need.
    Kind Regards,
    Owen

  • Restrict manual change in sales order with respect to quotation

    Hi All,
    The user use to create sales order with respect to quotation.  The user can able to change pricing as well as some header and item fields.  How can I restrict user for manual change in sales order expect some specific fields.
    Thanks.

    Hi Sunil,
    It is possible through configuration better you can post in sd forums.
    For the condition type settings , ensure that the manual entries is 'D'. it wont allow any changes in the order.
    Regards,
    Madhu.
    Edited by: madhurao123 on Aug 1, 2011 1:08 PM

  • Import of Sales Order through DTW

    Dear All
    I am having problems in importing Sales Orders through DTW. I have used the template 'oOrders' and enter the required data in the 'Document' and 'Document-Lines' files.
    When, I run the DTW and uploaded the Sales Orders, it was imported successfully. But when I search in SBO, no Sales Order was created.
    I have also, unchecked the box 'Test Run', but still it doesnot posted any Sales Order.
    Kindly, help me in this regards
    Thanks and Best Regards
    Nabeel

    Dear Gordon
    Thanks for your prompt response.
    In the 'Documents' template, I filled the following columns:
    RecordKey   CardCode            DocDate       DocDueDate  
    1                  AAJ-KAC-6         20081203      20081203
    In the 'Documents-Lines' template, I filled following columns:
    RecordKey    ItemCode                 DocDate       DocDueDate     Price   Quantity   Tax Code
    1                  701-0020-0000         20081203      20081203         10        10            X0
    I, also tried to post the Sales Order manually by entering the above data and SO was posted. But it is not posting through DTW.
    Thanks and Best Regards
    Nabeel

  • Report on changes to sales orders

    Hi Experts,
    I am looking for a way to report on changes to sales orders, specifically the row shipping date and quantity.
    I can see that the data is apparently in tables ADOC and ADO1 but am having trouble getting useful results. What I need is a report that, for sales orders only and for a date range, shows all changes to row quantities or row shipping dates. The type of output that would be useful is:
    Change date  - document # - row# - Item code - old shipping date - new shipping date - old qty - new qty
    filtered on change date for sales orders only. This seems beyond my preferred option of XL-Reporter and I'm getting lost in the history tables in creating a query.
    Best Regards
    Matthew

    Hi,
    Without doing the query for you, history tables are linked as the "normal" table but with the addition of the LogInstance column. Then the UpdateDate column (from base table ie. ADOC) will tell you when it was changed.
    Your query isn't an easy one... SInce you have to link an instance (ie. LogInstance = 1, which will be the original created object) to all the modified ones.
    Regards,
    Eric

  • Changes to sales order item not reflected if Call Transaction is used

    I m updating another Sales Order item quantity and reason for rejection programmatically from another sales order.
    The code is working fine and the quantity does get changed as well as the reason for rejection flag get set (if required). But if I go to the change log from the menu in VA02 for the order item which has been changed. It does not record the changes.
    I have tried using both BDC call transaction method as well as BAPI_SALESORDER_CHANGE in neither case the change log for the order which has been changed reflects the programmatically made changes?
    What m I doing wrong. Here is the code.
    IF v_update_order_flg = 'X'.
          REFRESH t_bdcdata.
          CLEAR s_bdcdata.
          REFRESH t_messtab.
          PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
          PERFORM bdc_field  USING 'VBAK-VBELN' <wa_r_rtb_posnrs>-zrtbvbeln.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
          PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
       For Going to  specific Item Number
          LOOP AT t_schedule_lines.
            PERFORM bdc_field  USING 'BDC_OKCODE' '=POPO'.
            READ TABLE t_item_in WITH KEY itm_number = t_schedule_lines-itm_number.
            PERFORM bdc_dynpro USING 'SAPMV45A' '0251'.
            PERFORM bdc_field  USING 'RV45A-POSNR' t_schedule_lines-itm_number.
            PERFORM bdc_field  USING 'BDC_OKCODE' '=POSI'.
            PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
            v_ro_qty = t_schedule_lines-req_qty.
            CONDENSE v_ro_qty.
            PERFORM bdc_field  USING 'RV45A-KWMENG(01)' v_ro_qty.
            PERFORM bdc_field  USING 'VBAP-ABGRU(01)' t_item_in-reason_rej.
          ENDLOOP.
          PERFORM bdc_field  USING 'BDC_OKCODE' '=SICH'.
          v_call_transaction_flg = 'X'.
          EXPORT v_call_transaction_flg TO MEMORY ID 'call_transaction'.
          CALL TRANSACTION 'VA02'
                       USING t_bdcdata
                       UPDATE 'S'
                       MODE   'N'
                       MESSAGES INTO t_messtab.
          v_call_transaction_flg = space.
          FREE MEMORY ID 'call_transaction'.

    Hi Srikrisna,
    This is a typical problem with BDC for updating QUANTITY and CURRENCY fields.
    You need to create a character variable of the same length as your quantity field. Move your quantity value to the newly created Character variable.
    Now use this new char variable in the BDC.
    This correction should solve your problem.
    NOTE: BDC RECOGNIZES CHARACTER FIELDS ONLY.
    Regards,
    Prakash Pandey

  • !!!How to restrict user for making  changes in Sales order , partner level

    Hi all,
    Can anybody tell me how to restrict user for making  changes in Sales order  at partner level, is it through user exit?

    Hi Ruchi
    I hope u had gone to the screen fields which u want them not to be editable. So there u select all the fields contents which u do not want to to be changed and check the boxes with W.content and Display and save it. Once evrything is done u have to activate the particular transcation going in to the standard variants and put the name and click the activate button.
    Hope its clear
    Reward if help ful
    Sri

  • Change in Sales order deleted all process production order

    Dear All,
    We have Make to order scenario for our export sales. When we have receive order we make production with reference of sales order with help of t-code MD50 then convert plan order into production order.
    IF sales department do changes in sales order it'll delete all processing production orders So, we have to do revoke all production orders manually.
    2 query is that, Is there any way to run MRP (Make-to-order) on all line items of sales order ?
    Please provide solution.
    Thanks,
    Farrukh khan

    Dear Farrukh,
    There is not tcode to run sales order for all line items, but if you run MD02 it will plan all sales order & line items also. You can run MD02.
    Regards
    Abhijit Gautam

  • Mass Change to sales orders

    Dear All,
    If i have alot of sales orders and i want to carry out new pricing to all of them is there away to carry out mass change to them or i have to change them Individually,
    thanks in advance.

    Dear,
        You can use T. Code ME17 or MASS for mass change in sales order,
        Please go via below step :
        1) Enter T.Code MASS. Select Object BUS2032.--> F8. Select Sales Order Item Data (MASSVBAP). -->F8
        2) Enter Sales Order No. and plant code --> F8
        3) Click on Display All Records
        4) Click on Select field button
        5) Select field which you want to change in selection criteria
        6) Enter new value which you want to replace in place of old field.
        7) And click on carry out a mass change button.
        8) Select column which you want to change.
        9) Save it.
       You can also change your sales order price using this path like --> VA05 ---> Orders -> Edit -> Mass change -> New pricing.
    Regards,
    Sandip

  • Change a sales order while delivery

    Hi Gurus,
    I need to change the status of a sales order line item from being complete to incomplete in case it fails some validation during delivery creation.
    I was earlier planning to code this in the copy-control routine ( order to delivery)  and use the standard FM BAPI_SALESORDER_CHANGE in the copy control code to attain this, but however, the sales order cannot be edited when being delivered.
    Is there any other means of attaining this. Backend update of tables can lead to a couple of challenges and undesired behavior that I want to avoid.
    Regards,
    Jasmit

    Dear Jasmit ,
    As Regards to the Change a sales order while delivery.
    There will be 2 Approaches for it
    1. Firstly use the User Exit SAPMV45A.
    2. Use the Enhancement V45S0001/V50S0001/V50R0004
    This will definitely help in your requirement .
    Regards,
    Saurabh Goel

Maybe you are looking for