Locking sales order

Hi all,
We are creating sales orders with reference to a specific predifined sales order, and we would like to prevent the user from changing (kinda lock the order) the posts of the order (material, quantity....). Is there a way to do that without using user exits?

Hi
You can ask the BASIS team to give authorisation for tcode VA02 only to certain Roles and not to the other Roles. That will enable only certain people to change it and not by everybody.
If you want to block the transaction itself so that no body can change it, just ask your BASIS guy to block the tcode.
One of the tcodes used to do this is SM01, if it is temporarily to be locked.
Reward if this helps.

Similar Messages

  • Locking Sales order and line item from reading

    Hi,
    I am writing an interface program to create an offer list inspection report. If two users are running the program at the same time, and if the first user read and processing a sales order line item, it should not read the same sales order line item twice for the second user.
    Please let me know if anybody has used locking sales order at line item level (VBAP).
    The enqueue function for VBAP is not working.
    Any suggestions will be helpful.
    Regards
    Ravikanth

    hi Ravi ,
    u Can lock the Sales Order for processing ,  u cannt restrict users @ tables level.
    u hhave to enqueue the VBELN
    Regards
    Prabhu

  • Problem in lock Sales order create with BAPI BAPI_SALESORDER_CREATEFROMDAT2

    Hi All,
    i have the z program to create the sales order with reff  quotation in SD With BAPI BAPI_SALESORDER_CREATEFROMDAT2.
    this program will  excute every 30 mins .
    Problem: Some times if i excute the program in background it is taking morethan 30mins so second batch excution also gets starting to create the sales order for same quotation then it is creating 2 sales orders at atime with 1 quotation.
    here i am getting duplicate sales orders so i want to lock the creation of duplicate sales order.

    Some solutions
    - Just lock (ENQUEUE) any object at the start of the job(*), if not locked, you can exit or wait in a loop, will be released at end of job (use a _SCOPE '3' so commit work wont release the lock)
    -> This will insure the job runs only once at a time
    - Lock the quotation before calling the BAPI, will be released by the COMMIT_WORK (from where do you fetch the quotation, if it is a customer Z_table, you can use the lock object that you have surely created ?) (use a _scope '2')
    -> This will insure that at most one job will convert a quotation (i suppose you set a "done" flag or status  in the quotation record)
    Read [SAP Locks |http://help.sap.com/abapdocu_70/en/ABENSAP_LOCK.htm] if you are not familiar with the concept of lock in SAP.
    Regards,
    Raymond
    (*) E_TABLEE for table, E_TRDIR for program, anything not required by another process

  • Cancel line item in Locked sales order

    hi Gurus,
    I have a saler order created in R/3 thru BDocs transfer from CRM. The order created in R/3 is now locked in R/3 because of material number different in CRM and R/3. Thus, now the order cannot be accessed in R/3 in change mode. It gives an error message- "Sales document is in use by "_____" user. If I check Sm12 for the lock entries for that user, no entries are found.
    Such locked order are many times generated. I want to make changes to such order.
    Is there any way to unlock such orders?
    Secondly, is there any program or functional module that can be used to make direct entries in order tables (according to the changes required) without actually opening the order (Va02).
    "Mass change" or "BAPI for sales order change" is not funtioning in this case as they call VA02 for changing and anyways now these order are not accessible thru VA02.
    Please help me.
    Regards
    Alfa

    Hi
    These sales orders have been locked by the user (not a dialogue user) which is used for the BDoc transfer from CRM to R/3. Generally orders created in R/3 from CRM can be also be changed in R/3. But because of data difference between R/3 and CRM now the orders are locked. It is not allowing to update any data from CRM also.
    So these order getting unlocked from the user is not working because now no updation from CRM to R/3 on these locked orders are happening.
    Regards

  • VA41 -Locking sale order after one week.

    Hai Gurus, I have a requirement where the sale orders have to be locked automatically after one week.

    And which problem did you get : identifying "obsolete" order, identify a BAPI, can youi elaborate on  your requirement, what youd did already perform and what you were not succesful ?
    Regards,
    Raymond

  • User Exit/BADI to Lock Sales order for any changes in VA02 (Excluding Prici

    Hi All,
    I am looking for an User Exit or BADI which disallows any kind of changes in Sales Order on a particular condition.
    This can't b controlled through Authorization, so have to look for an exit. Please suggest.
    If possible, please provide the example.
    Thanks

    Hi,
    Check the user exit MV45AFZZ in this exit u will be finding the Lot of stages where we can control the VA01 or VA02 . Please find the exit with the name SAVE before. Try to check any changes For sales order in CDHDR and CDPOS and give some error message .
    Thanks and Regards,
    Srinivas.

  • Lock Sales order type Customer

    Hii SAP,
    we can use authorization to authorize the user to create sales order by order type. on the portal netweaver we have given the user full authorization (SAP_ALL). when this SAP_ALL assign to the user the control on authorization is not valid anymore.
    what other method that we can use to given user access the selected sales order type ?

    Hi,
    You can take the help of a Basis person to check what objects ensure authorization for Sales orders.
    Also try inserting SAP_NEW under roles for the user and check the results.
    Regards,
    Amit

  • Sales orders locked

    Hi to all,
    I am facing an strange issue as we use Scenario-A for sales order creation which are created in CRM then replicated to ECC for subsequent processing & now we get some strange issue of sales orders not able to open in ECC as we get the error as sales order is locked by some user in CRM system.
    I had checked in all queques & Bdoc we find no orders locked but the sales order gets released after sometime in few hours also all these locked sales orders are distributed successfully without any issue.
    Thanks in advance,
    Shiva

    Hi Shiva,
    If an update is terminated, the status is switched from WAITUPDA to VBERROR.
    You can also go directly from the tRFC Monitor and qRFC Monitor to the terminated update task in transaction SM13.
    And when an order is already been sent to ECC System you cannot make changes in CRM. In order to do so you have to activate the interactive changes in customizing.
    Regards
    Sidd

  • Locking Payment Terms field on OM Sales Order

    Hi,
    Our users are entering sales order using OM responsibility. We have customers that have a payment term of COD. Within a sales order, when one of these customers is selected and COD is returned to the payment terms field, the user can still change it. We would like to lock the payment terms field when a payment term of COD is returned and not allow it to be updated. If the payment term is not COD, we would allow the user to change it if needed. Can we possibility do this using forms personalization?
    Thanks for the help

    Dear MoazzaM,
    I know that payment term is available in 3 screens. My question is that if I make the field invisible in any of the screen then it should at least perform for that particular screen. Because I tried the same with Std TV BUS2032 and it worked.
    Or is it that If apply the changes for all the screens it would take effect in case of Z transaction variant?
    But I am surprised why the same is not getting called when I use a Z transaction variant. Also please note that if I refer to the Std TV BUS2032 and make a copy of the same I am still not able to use it as the screens called there are already used at many places in standard SAP?
    Please suggest.
    Regards,
    Anirban

  • When does the configuration get locked for changes in sales order?

    Hi Experts,
    I will really appreciate your help me in resolving this issue.
    Our client had sales order having BOM item with several sub items.
    Here we found that the user was not able to make changes to the Characterstic Value of one of the variant.
    The issue was the place where we change the characterstic  in sales order was greyed out, it was probably locked. Now even if they were unfrezing and trying to change the characteristic value the system did not allowed means greyed out.
    Can you please help me in understanding when do system locks the variants for a material in sales order, in what stage?
    Like maybe after the delivery document is created or PGI or some things else.
    since i see that the user here did delivered one of the item in the BOM subitem.
    Thanks
    Kaushik
    <Text removed by Moderator, please don't share your personal details on SCN post>
    Message was edited by: Jyoti Prakash

    Yes the characterstics were maintained for the main item.
    and the delivered item was a subitem for this main item.
    So characterstic were maintained for Item 10(Main item) but delivery was done for some of its sub item was item 100 / 120
    Also can i know where is this setting or configuration where we configure this to block the configuration if any of the subitem is delivered.
    Thanks
    Kaushik.

  • Simulation in Bapi/FM for sales order is locking tables

    Hi
    We want to use bapi BAPI_SALESORDER_CHANGE or FM SD_SALESDOCUMENT_CHANGE to simulate the effect on prices of a sales order. We must do this during the printing of the sales order. This bapi/FM is locking the sales order tables during the simulation mode. As we are printing from the sales order, the sales order is already locked so we get the error: V1 042 Sales document xxx is currently being processed. Does anyone have a solution to avoid this lock or an alternative to simulate the price from a sales order?
    We need to use the simulation of the sales order to capture all manual changes in the sales order pricing.
    Kind Regards

    Hi,
    FM BAPI_SALESORDER_SIMULATE gives the same pricing data as  BAPI_SALESORDER_CHANGE. you do not need to change an existing document to get the pricing data. Just simulate the creation of a new order.. th prices should be the same as long as you send the same data.
    Dev.

  • Lock Insertion of new position in a Sales Order

    Hi guru!
    I've to lock the insertion of new position in a Sales Order from VA02 transaction, users can update only some fields of existing positions but thay can't insert a new position in order.
    I have to lock the blank position in a position's table control so they can't insert data for a new position.
    Is it possible to do?
    Thanks!!

    If you're talking about "new POSNR" (item), you could change the visibility of the insertion button, any menu drop downs, probably with user exit or (perhaps better) with screen variants (transaction SHD0) for transcode VA02....perhaps a combination of the two would get you the results you need.

  • User enter sales order, system display " Lock table overflow",

    Hi Experts,
    We are facing a problem, user enter sales order, system display " Lock table overflow",  and using T-code VL02N, system display "You   cannot block the transaction at the moment.
    Please help.
    Thanks,
    Sujit S.

    Dear Sujit,
    [Lock Table Overflow|Re: Lock table overflow]
    Also, Just check with your Basis-Admin in T. Code: TU02 - profile parameter maintenance
    Best Regards,
    Amit

  • Lock and release procedure of sales order - Based on Value

    Hello Gurus,
    I am having the following requirement in SD, let me explain with one example.
    If users creating Sales orders with value less than Rs.1000/- means, System should not allow to proceed further to save the
    sales orders (need the same to specific Sales areas).
    I tried with condition type "AMIW" / User exits where we can able to block/lock the further process but in general we may need to proceed further even if its below the value(Rs.1000/) considering the genuine and regular order from customer.
    Pls suggest your ideas to achieve the Lock and release procedure based on Sales Order Value.
    Regs
    S.Ramesh
    Edited by: Lakshmipathi on Oct 31, 2011 5:49 PM
    Thread Locked - Reason Duplicate Post

    Hi,
    Instead to going for user exits, you can control this by
    1. Field VBAK-NETWR (Net Value) as a part of incompletion procedure.
    2. In VUA2 check u201CIC boxu201D
    3. Create a Customer discount condition ZDIS with scales. In V/06 maintain scale basis as B=value, Check value B= Ascending and Scale type as B= to scale. Calculate it on the Price condition
    4 .In VK11 Maintain record as -100% up to say Value INR1000/-
    You can fine tune according to your requirement by adding tables with relevant fields.
    The idea is simple. As long as the PR00 condition value is below INR1000/- discount condition type ZDIS will calculate discount as 100% and Document net value will become Zero.
    If the document value is Zero Incompletion log will not allow saving the document.
    You can maintain records for ZDIS as per your requirement (for genuine customers). Or you can close the condition record by changing the validity when it is not necessary for other customers.
    Hope this helps.
    Regards,
    Sharan

  • Sales order locked

    Hi,
        How do we know whether a sales order is locked or not. Will the status be stored in any table?
        I have tried using function module 'sd_sales_document_enqueue' which gives exception 'Foreign_lock' if the sales order is already open (locked). But, when the sales order is not locked, it is throwing shortdump.
    Please advice.
    Regards,
    Vishnu Priya

    okay locking..
    now if using sales order in change mode ,
    the document is locked ..means other user cant navigate teh same ..
    ithis can be seen in t-code SM12
    look at these FM's
    ENQUEUE_ARRAY    
    ENQUEUE_READ     
    ENQUEUE_REPORT   
    ENQUE_DELETE     
    ENQUE_READ       
    ENQUE_REPORT     
    ENQUE_REPORT_TEST
    vijay
    Message was edited by: Vijay

Maybe you are looking for

  • HP Officejet Pro 8500 A - where's my fax?

    Hello, I have updated to Mountain Lion and now have a printer issue with my HP 8500 A: Irrespective of whether I install the printer as an "Airprint" printer or via "HP Driver", the printer works flawlessly. What is now gone, however, is my the 8500

  • Getting this JS Assert Error in Google Chrome

    "MuseJSAssert: Error calling selector function:TypeError: Object #<Object> has no method 'toBrowserWidth'" I am also seeing sometimes when I preview a page on my Mac. If I try a second time, it goes away.

  • How to use Jdeveloper 10g (10.1.3.4.0) or 11g to create J2ME apps?

    I can't find any tutorials or documentation in how to do this in the current version of Jdeveloper 10g or 11g. All I could find was the Jdeveloper Wireless Extension 9.0.5 but this doesn't work in either versions. Also I don't want to do browser apps

  • Playing movies in Front Row one after another automatically?

    I have a number of short video clips that I can watch with Front Row. However, every time a clip ends, I have to go and click "play" on the next clip and this is annoying. I am wondering if there is a way to make movies play one after another without

  • Can't recover exchange 2013 server using recoverserver switch

    CU5 crashed while installing on one of our 4 DAG members.  I was able to coax it back to life with some manual steps and doing a repair of sp1, but was unable to get cu5 to install or to cleanly uninstall sp1 despite repeated tries. Finally I decided