How to avoid that two or more people altering the same Sales Order

I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution. So far I didn't find a standard option in Business One neither a solution in this forum.
Best regards,
Tim

Tim,
There is nothing in the application settings in Business One that could be used to prevent this.  You may post this to the SDK forum as well and perhaps there is a way to achieve this through SDK.

Similar Messages

  • How to avoid that two or more people alter the same Sales Order same time

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution.
    I've already put this thread in the Business One forum and someone suggested to put it in the Business One SDK forum, as there isn't a solution in Business One itself.
    So if someone can give me a direction for a solution I would be very pleased.
    Best regards,
    Tim

    Hi Tim,
    The only thing that comes close to what you want in standard SBO is Data Ownership. However, this can't stop someone editing a document that is already being edited.
    You can't use stored procedures to track which document is open because the SBO_SP_TransactionNotification proc (which is the only one that you are able to customise) is triggered when a document is updated or added (or cancelled or closed) and not when the document is actually being edited in the user-interface.
    You could do this by writing an addon that uses the UI API to trap events in the sales order form. In theory, a sales order is being edited if the sales order form is in Update mode (ie in order for the form to be in Update mode, the user must have selected an existing document and changed the value of at least one field). You can trap the event of the user changing a value and then log the user and document in a table. When other users try to edit the same document, you could check the table and then prevent them changing values. When the first user clicks on the update button (or cancels the update or closes the form etc etc) you can remove the lock on the document. However, I have doubts as to how robust it would be. The problem with this kind of locking solution is that you sometimes get 'stranded' locks (eg user was editing a document when their workstation crashed) and the solution can end up being more troublesome than it is worth.
    Kind Regards,
    Owen

  • How can i get two or more people on the same call on iPhone 5

    On my blackberry I can make a call, and then call other people and add them to the call so we have several people on the same line. Is it possible to do this with an
    iphone 5?

    See page 51 of the iPhone User Manual.
    You can add folks to a call only if you use a GSM carrier.
    iPhone User Guide for iOS 8.1

  • How to put 2 kinds of material prices on the same sales order

    Hello SD Gurus,
    I have a requirement to put a one-time price (e.g. installation price ) and a recurring monthly price on the same sales order.
    I've tried the following but it is not working.
    1. I have a pricing procedure (PSER01) in which I'm using the following price types:PR00 (Defined as a "Discount or Surcharge") and PRSV.  I'm using PR00 to represent my one-time installation price.  I'm using PRSV to represent my monthly+recurring price.
    2. I used it for a material master in a sales order.  I can add PR00 and see the green traffic light.  But as soon as I add PRSV, the traffic light on PR00 turns yellow (Inactive because of subsequent price).
    I've read several posts on the forum regarding this.  Based on my understanding, I'm using two pricing conditions in one pricing procedure which is not allowed. 
    What can I do differently to enable the one-time price and monthly price to appear for my material master on the sales order?
    Thanks so much for your help!

    Hi,
    As per SAP Logic, if the condition type has condition class "C" then only one value is allowed.
    if you want to add two values ( Fixed + Variable) then you can do the following logic.
    1 ) Have one condition type  say ZFIX ( Use this for Fixed Value ) cond class = C
    2 ) another condition type Say ZVAR(Use this for  variable value ) Cond Class = C
    3 ) another condition type say Zxxx ( use this for your Final Value) cond class = C
    now do not assign any access sequence to the third condition type. write a logic in the "Alt Calculation type " routine to get the value of this condition from the sume of ZFIX + ZVAR
    i.e., ZXXX = ZFIX + ZVAR.
    Make sure that the sequence of the codition types are mentioned exactly like the above.
    this is because if you put ZXXX third then the system automatically ignores the value of ZFIX and ZVAR.
    but the values against those condition types will be stores internally. So in future if we want some information also we can trace back..
    let me know if you need further help..
    thanks..

  • Two credit control are at the same sales order.

    Hello Gurus,
    I would like to know how if you can help with the following subject:
    I have two sales area:
    XXXX YY A1
    XXXX YY A2
    And for each sales area it´s assigned two credit control areas, like:
    XXXX YY A1  to credit control area A
    XXXX YY A2  to credit control area B
    Is it possible to create a sales order with these two sales area?
    We need to have credit control limit differents for sales area (customers), but also we like two have only one sales order to manage. Is it possible?
    Many thanks in advanced.
    Luiz Geraldi

    Hi Luiz,
    In sales booking screen VA01 t-code we have the following fields as necessary input.
    Order Type        
    Sales organization
    Distribution channe
    Division          
    Sales office      
    Sales group       
    All these fields need to be unique in order to save this document.
    So we can input any number of materials provided the above details are unique.
    We can have more than 1000 line items, but all these materials need to be in a single sales organization, distribution channel and division.
    As this is a standard SAP functionality, i am afraid there is no customization by which we can change this (as far i my knowledge goes)
    Hope i am right in my approach,
    correct me if i am wrong;
    Let me know if you have further concerns;
    Regards,
    Syed Nasir

  • How can I rotate two or more photos at the same time

    That´s what I do: I select various images and then apply a rotation, but only image rotates.
    I have tried too applying it to one image and "lift and stamp" to the rest,but this doesn´t work.
    Please, how can I do it?

    You have got a good answer from Claire, but if you are using a keyboard with a standard Spanish layout, you have to use SHIFT + [ to rotate to the right.
    You can also use ´ and ` (to the right of the letter P) to rotate the image. This is the location of the [ and ] on the US layout.
    If you use a Spanish ISO Layout on your keyboard, then you have to use ´ or ` since the [ is replaced by the º in the layout.
    You can also use the buttons for rotation in the Control Bar at the bottom of the window
    Regards
    paul k
      Mac OS X (10.4.8)  

  • How can I Resize Two or More Shapes At The Same Time?

    I've got text over a rectangle over another rectangle. When I change my text, the size of the boxes needs to change and it's a drag ot have to do each one separately and constantly realign. Is there a way I can resize both of them at the same time tokeep the proportions the same?
    Or is there a way I can enter #s to resize, so I could just enter the same #s for each shape?
    Thanks,
    Amanda

    Here's an example of what Wyodor is referring to: text in shapes within another shape.. It goes one step further and adds the first shape+text into another shape but the concept is the same.
    OT

  • ERROR: MyService.jws:715:There are two or more operations with the same schema-element 'ns0:MyNameSpace' on the input message in a web service file or callback interface.

    I have two web service operations that have the same complex type as their input
    parameter. I want to map this type to an existing schema. I can successfully
    do this with the first operation using XQuery but when I attempt to do this with
    the second operation I get the following error:
    ERROR: MyService.jws:715:There are two or more operations with the same schema-element
    'ns0:MyNamespace' on the input message in a web service file or callback interface.
    ERROR:      SUGGESTION: Use different schema-element values for each of those operations.
    How can I use different schema-element values? The input parameters are to be
    mapped to the same schema and same element since they are the same for both operations....

    I am having the same problem. How did you resolve this..?? could you please tell me the solution??
    Thanks
    Shari

  • How do I set two different beat measures in the same project, e.g. 2/4 and 3/4?

    How do I set two different beat measures in the same project, e.g. 2/4 and 3/4?

    mpcsouza wrote:
    How do I set two different beat measures in the same project, e.g. 2/4 and 3/4?
    you can't, GB is restricted to a single time signature per project
    however, the time sig is really more cosmetic, it doesn't affect the way the project plays back, so you could set the project to 2/4 when working on the 2/4 parts, and 3/4 when working on the 3/4 parts

  • Is there a way to work with two or more app at the same time on iPhone or iPad

    Is there a way to work with two or more app at the same time on iPhone or iPad?

    What i am attempting to achieve is to work with at least two app at the same time. For example: select any picture from my albums to attach them in an email. Another example is get data from an app to use it with the calc app. And there are more exaples for it. And for sure I need support for an iPad air. I mencioned the other tablet just to try to be a bit clearer.

  • How do you keep two users logged in at the same time?

    How do I keep two users logged in at the same time to be able to access home sharing?

    Fast User Switching in Users & Groups or Accounts preferences in Login Options.

  • Two or more users editing the same script file in cq5, is it possible?

    In cq5 is possible two or more users editing the same jsp file? There is a lock system preventing simultaneous editing of the same file?
    Thanks,
    Gabriel

    you really should use eclipse and maven to work with multiple developers. something like [1] will be helpful
    [1] http://www.cqblueprints.com/xwiki/bin/view/Blue+Prints/The+CQ+Project+Maven+Archetype

  • How to prevent modifying the same sales order in R/3 & CRM at the same time

    Guys,
    We are using CRM 5.0& R/3 4.6C. We have the middle set up. I have noticed that its possible to open the same sales order in R/3 and CRM in the change mode. I believe this could cause inconsistenices if the users modify the same order in different systems. Is there a standar way to prevent this from happening.
    Is there something like a change lock like we have the distribution lock?
    Anirudh

    Hi,
    As per OSS Note 705200 scenario X, Y and Z are supported with R/3 4.6C. Even if you use Scenario A, SAP wont support that. I would suggest sceario Z to be implemented. This would convert all the CRM order into R/3 order as soon as they are transferred to R/3. As a result the order can now only be modified in R/3 and all the changes would flow back into CRM maintaining the integrity between the systems.
    Refer to OSS Note 541113 for details.
    Regards,
    Gaurav Gera

  • Hi, iTunes 11.1 don't tell me the duration of two or more tracks from the same album, which iTunes 10. did. How come? It is possible that the new version lacks such a possibility? Thanks

    Hi, thanks to whoever will be able to respond - which the Apple assistance on line in Italy could not do, after minutes of conversation!
    The point is that I cannot see anymore the total duration of two or more audio tracks selected from the same CD, but only the duration of the whole CD.
    With the previous version of iTunes this was very easy, as I simply clicked on the tracks the interested me and I suddenly had the total time.
    It makes no sense that Apple provides a new version which lacks one of the endless options of the program, therefore I hope it's only my faul in not being able to understand what to do. Otherwise, please tell me how can I downgrade and go back to iTunes 10....
    Paul Meadow

    Press CTRL+/
    tt2

  • FEBA - How to post two or more transactions at the same time?

    Hi,
        one of our banks sends the statemets with many lines that belongs to the same transaction. We have to post partially one line, and afterwards the other line. Any of you know how to post two lines at the same time from the bank statement?
    Thank you in advance,
    Miguel

    Hi,
    I'm sorry for replying so late.
    The solution I reached was to change the a few things in the standard.
    Now I have a new "context menu item". I select two or more transactions and I right-click the mouse. I select that "context menu item" and the next part of the code adds the total amount of the transactions to look for the correct post for the first transaction. Once posted automatically, the next transaction is posted automatically by the system.
    I hope you understand my English. I've problem with technical FI terms.
    Here you are the code:
    First I added a new contextual menu item:
    CL_FEBAN_ALV_GRID=============CCIMP
    call method e_object->add_function
        EXPORTING
            fcode = 'BS_POST_ITEMS'
            text = text-002.
    *{ INSERT DHTK904078 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        call method e_object->add_function
            EXPORTING
                fcode = 'ZBS_POST_ITEMS'
                text = text-Z02.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        call method e_object->add_function
            EXPORTING
                fcode = 'BS_KILL_ADVICE'
                text = text-004.
    CL_FEBAN_ALV_GRID=============CCIMP
    when 'BS_POST_ITEMS'.
        call method cl_feban_propagator=>raise_event
            EXPORTING
                i_event = 'POST_ITEMS'
                i_ref_to_item = l_ref_to_item.
    *{ INSERT DHTK904078 2
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        when 'ZBS_POST_ITEMS'.
            call method cl_feban_propagator=>raise_event
                EXPORTING
                    i_event = 'ZPOST_ITEMS'
                    i_ref_to_item = l_ref_to_item.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        when 'BS_LOCK_ITEMS'.
            call method cl_feban_propagator=>raise_event
                EXPORTING
                    i_event = 'LOCK_ITEMS'
                    i_ref_to_item = l_ref_to_item.
    CL_FEBAN_PROPAGATOR===========CM001
        when 'POST_ITEMS'.
            raise event post_items
                exporting i_ref_to_item = i_ref_to_item.
    *{ INSERT DHTK904078 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        when 'ZPOST_ITEMS'.
            data: zvalor(1) value '' .
                export zvalor from 'X' to memory ID 'ZFEBA01'.
                raise event post_items
                    exporting i_ref_to_item = i_ref_to_item.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        when 'LOCK_ITEMS'.
            raise event lock_items
                exporting i_ref_to_item = i_ref_to_item.
    Now, I proceed to calculate the total amount of the selected transactions to look for the correct one to post.
    LNEW_FEBAF01
    *     user parameter
            l_feban_position type c.
            field-symbols: <items> type item_tab_type.
    *{ INSERT DHTK904077 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        data: zvalor(1) value '',
            zkwbtr type kwbtr,
            kwb type kwbtr.
        import zvalor to zvalor from memory ID 'ZFEBA01'.
        if ( zvalor is not initial ).
            if not i_ref_to_item is initial.
                assign i_ref_to_item->* to <items>.
                loop at <items> into h_item.
                    select single kwbtr
                        into kwb
                        from febep
                        where kukey = h_item-kukey and
                            esnum = h_item-esnum.
                            zkwbtr = zkwbtr + kwb.
                endloop.
            endif.
            export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
        endif.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        refresh g_picked_items.
        if not i_ref_to_item is initial.
            assign i_ref_to_item->* to <items>.
            loop at <items> into h_item.
                move-corresponding h_item to h_picked_items.
                append h_picked_items to g_picked_items.
            endloop.
        endif.
        submit rfebbu00 and return
            user sy-uname
            with anwnd = r_doc->*-anwnd
            with s_kukey in s_kukey
            with s_esnum in s_esnum
            with buber = g_posting_area
            with mregel = '1'
            with function = 'C'
            with mode = g_mode
            with p_bupro = g_bupro.
    *{ INSERT DHTK904077 2
    *--> Miguel Estu00E9vez - 17/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        if ( zkwbtr is not initial ).
            select single kwbtr
                into kwb
                from febep
                where kukey = h_kukey-low and
                    esnum = h_esnum-low.
                    zkwbtr = zkwbtr - kwb.
            export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
        endif.
    *<-- Miguel Estu00E9vez - 17/06/2008
    *} INSERT
        refresh s_kukey.
        refresh s_esnum.
        clear h_kukey.
        clear h_esnum.
    endloop. "loop over all picked items
    call function 'CUSTOMIZED_MESSAGE'
        EXPORTING
            i_arbgb = 'NEW_FEBA'
            i_dtype = '-'
            i_msgnr = '110'.
    RFEBBU00
    * original transaction currency provided and posting area = 2.
            ftclear-selvon = febep-fwbtr. "INSERT - mpEURO
        ENDIF. "INSERT - mpEURO
        CONDENSE ftclear-selvon NO-GAPS.
    *{ INSERT DHTK903977 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        data: zkwbtr type kwbtr.
        import zkwbtr to zkwbtr from memory ID 'ZKWBTR'.
        if ( zkwbtr is not initial ).
            ftclear-selvon = zkwbtr.
            clear zkwbtr.
        endif.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
    APPEND ftclear.
    ** Begin of comment C5053248
    * perform druck_buzei_ftclear using ftclear-agkon.

Maybe you are looking for

  • No 3D options on Windows 8 in Photoshop CS6 Extended!

          Hello everyone! Recently, I have installed Adobe Photoshop CS6 Extended trial from Adobe.com (Yeah, I am sure it was the EXTENDED version). In the setup it says that it is installing "Photoshop CS6 Extended" and I could saw that yellow leaves -

  • Works in Tomcat but not in iPlanet Web server

    I have a servlet which first generates a form which has one input field, when user fills in the text field and submits the form it is posted to same servlet. The posted data is processed and redirected to another servlet. Everything works fine on Tom

  • After resetting devices in Netflix, Apple TV is not finding my Netflix account

    Apple TV was reporting that it couldn't connetct to Netflix and to try again later. My MacBook and Wii were fine. After several days of this, I reset my Apple TV settings and reset my devices in my Netflix account. All devices are back up, including

  • Feed is no longer updating in iTunes store

    I have been using PodPress in our Wordpress site to produce our podcasts for over a year now with no problems. I have not made any changes in settings. However, about 2 weeks ago, my iTunes feed stopped updating. When I validate the feed, it says eve

  • 'form' is not useable in bsp page?

    HI. here is only simple example in oninitialization bsp page. data:      disp_alv  type as4flag value 'X' . perform test using  disp_alv. form test  using   disp_alv  type as4flag   . endform.                  but it shows error 'statement endmethod