Error on Production Orders Add-on when 2 or more users at the same time.

Hi.
Our add-on creates special production orders (SAPbobsCOM.BoProductionOrderTypeEnum.bopotSpecial) with no problem when used by one user, but if there are two or more users  everyone on his own SAPBO session it starts to throw different errors, we think it may be a concurrence problem due to several transactions.
Here a short brief of the code sample and the process:
(error handling and object members not included in the sample)
oDoc.ProductionOrderType = SAPbobsCOM.BoProductionOrderTypeEnum.bopotSpecial
If the oDoc.Add() is correct, We get the last production order created and release it:
Me.sKey = Me.Company.GetNewObjectKey
oDoc = Me.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
oDoc.GetByKey(Me.sKey)
oDoc.ProductionOrderStatus = SAPbobsCOM.BoProductionOrderStatusEnum.boposReleased
oDoc.Update()
Then we go for an inventory Entry:
oDoc = Me.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
oDoc.DocDate = Date.Now
oDoc.Lines.BaseEntry = Me.sKey
oDoc.Add
And Finally to close the production order:
oDoc.ProductionOrderStatus = SAPbobsCOM.BoProductionOrderStatusEnum.boposClosed
oDoc.Update()
This works fine when only one user is using the add-on, but in the end there wil be at least eight users simultaneously  working with this add-on
The test:
We have four users creating production orders with the  add-on.
Two of them get the usual success messages and the created documents in SAPBO are all correct.
The other two users get diferrent errors messages during the process.
If they wait and try again to run the process it works fine.
Repeating the test get errors on different users depending on which one started the process first.
Our client needs to generate beetwen 900 and 1200 production orders per day, so they can't wait until the process is free for each user to work with it.
The common erros detected are:
Changing the status of the production order:
-5002 - The warehouse is not defined for the item.
-4002 - To generate this document,
           first define the numbering series in the Administration module
-1029 - Field cannot be updated
Adding the production order and inventory entry:
-2038
-1116
-5002
Regards,
Omar Fonseca

The start transaction model didn't Fit well with all the process we are doing, but the idea of locking or holding the other users seems to work pretty fine, we are now using a flag to determine if someone is doing the process and put in hold the new ones.

Similar Messages

  • 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

  • FRM: 10270 Cannot attach the library when two forms run at the same time

    I get the error message FRM: 10270 Cannot attach the library SYSLIB while opening menu BMENU but only when i try to open a second form while the first form is still running.
    Both forms are working fine as long as they ar not running at the same time.
    It seems like the second form opening does not have access to the FORMS60_PATH, because you can not open a third form because it can't find it.
    All the forms anf libraries (plx)is in the FORMS60_PATH.
    I am running developer_6i forms & reports on a HPUX 11i machine and I am trying to access them through jinitiator 1.3.1.9 on a XP machine.
    Best regards
    Macke

    Thanks a lot for the tip. I used truss and realised that it found the library but was not allowed to open it. The kernel parameter maxfiles was set to low.
    I increased it and everything works ok
    BR
    Marcus

  • Issues when Insert and Analyze at the same time

    Hi All,
    We have a weekend job that used to take 12-15 hours usually and insert around 8 millions of records to a table from external table. Last weekend the same load took 60 hours and it move to Monday and there are some business impact.
    While we investigate the same issue we identified that there is one more weekend analyze job for all the tables and indexes and took around almost same time and we noticed that the table we inserted the 8 million records alone it took around 15 hours. This table now has around 91 Core records.
    We need to identify why this jobs taken long time as almost 4 times compare to the normal scenario.
    I would like to know what exactly happen when Analyze and insert happened to the table at the same time. And What all issues can occur because this.
    Best Regards,
    Shijo

    Ok,
    It is unclear what version you are using as you forgot to post that.
    Furthermore it is unclear what 'Analyze' is, as analyze statistics was already deprecated in 9i.
    Secondly, most people is this forum speak English, and they are accustomed international units only.
    Sybrand Bakker
    Senior Oracle DBA

  • Please can someone explain how to retrieve deleted text, I was clearing old text when one came through at the same time so was also deleted.

    Can someone please tell me how to retrieve deleted text. i was clearing old texts when a new one came through at the same time and was deleted also.  My last update was  iOS 8.1.2

    You restore from a backup that was created after the text was received but before it was deleted.
    But if you literally deleted it right after it came in, then it's not recoverable.  Have the other person resend the text.

  • Does MagSafe 2 T Connector get hot when charging and using at the same time (while the light still in amber) ?

    Hi,
    Just want to check out with the other Apple Users here. I am using a Late 2013 rMBP, however the T Connector do get hot while I am charging and using the mac at the same time. Is this normal ? or do I have to drop by an Apple Store to check it out ?
    Thanks in advance

    Hello there.
    It's quite normal for the magsafe 2 connector (magnetic one) to become a bit warm while it's charging your mac. It will be warmer when your battery is low and the heat will start to dissipate as the battery charges. There is absolutely nothing to worry about. Normally your magsafe can go upto 35℃ depending your surrounding temperature. Even mine does. Just remember the warmth should not be untouchable, if that is what you feel take to a apple genius bar to get it checked.
    Hope that helps.
    Thank you.

  • Aperture cannot add GPS data to multiple images at the same time

    I am new to Aperture and have been using it for a week or so now. Today I tried to add GPS data to a number of images and found out, it appears Aperture can only add GPS data to one image at the time. When I select multiple images to add the GPS data to, it just doesn't do anything. It leaves the GPS data blank.
    Here is what I do:
    From the Info-tab I select "GPS" from the drop down menu
    At the bottom of the info tab I show the map
    In the map's search box I enter the location I want to assign to the photo(s)
    From the resulting drop down menu I select the locatiion I want and press the "assign to location" button
    As long as I choose only a single image, this works fine and the GPS Data is added. Not so when I select more than a single image. After pressing the "assign to location" button it seems as if the GPS data is added (there is no message indicating otherwise), but the GPS data in the selected images is blank.
    What am I doing wrong ?
    Additional info
    I have been testing this a bit more and the behavior is even more strange: When you select multiple images in Aperture, they get a thin white border, except the one that you touch last (normally the last image of the selection) that will have a thicker border around it. It appears that, when selecting multiple images, the GPS data is ONLY assigned to the photo in the selected setthat has the thicker border (?????)
    Message was edited by: dinky2

    Rereading your post, I think the problem is, that you are assigning the location from the Info panel and not from the Metadata menu. The Info panel and the Metadata menu ar behaving differently.
    The Info panel will always only affect the primary selection, but the Metadata menu will work on all selected images (unless "Primary only" is checked). So , if you want to assign your location to multiple images, use "Metadata > Assign location" instead of the little map in the "Info" panel.
    Or use the "Places" view. Then you can drag all images at once to the same pin on the map.
    Regards
    Léonie

  • ConnectException thrown when sockets are created at the same time

    Hi everyone,
    I have written a simple server and a simple client as follows:
    SERVER:
    import java.net.*;
    public class Server
         public static void main(String[] args)
              try
                   ServerSocket ss = new ServerSocket(1234);
                   while (true)
                        final Socket s = ss.accept();
                        Thread t = new Thread() {
                             public void run() {
                                  System.out.println(s.toString());
                        t.start();
              catch (Exception e)
                   e.printStackTrace();
    CLIENT:
    import java.net.*;
    public class Client
         public static void main(String[] args)
              try
                   int numSocket = 10;
                   Socket[] s = new Socket[numSocket];
                   for (int i = 0; i < numSocket; i++) {
                        s[i] = new Socket("localhost", 1234);
              catch (Exception e)
                   e.printStackTrace();
    }When I run the client, the following stack trace was printed after 4 or 5 sockets are created successfully.
    java.net.ConnectException: Connection refused
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
            at java.net.Socket.connect(Socket.java:426)
            at java.net.Socket.connect(Socket.java:376)
            at java.net.Socket.<init>(Socket.java:291)
            at java.net.Socket.<init>(Socket.java:119)
            at Client.main(Client.java:12)If I add Thread.sleep(500) after a socket was created, then it's fine. All sockets are created successfullly.
    I have tested this on both RedHat linux 7.2 and RHEL 3.0 AS and both fails.
    However I run on Windows XP, it's ok even without Thread.sleep
    It seems that RH linux cannot handle clients connecting to localhost that quickly. It works well even if I create 100 sockets in a row for WinXP.
    I have searched the web for similiar problems, but I couldn't find any.
    Please reply if you have the same problem or know how to solve it.
    Thanks in advanced!
    Joseph

    Hello,
    Your code is correct and should work, i'm actually quite positive it will work on at least a Windows OS. Also, it is possible you're running into backlog problems but i find it somewhat unlikely that since in most cases the backlog is larger than 10, and you're only testing 10 connections.
    Regardless of the actual problem, you seem to be running into issues with a VM implementation that isnt behaving as it should. ServerSocket.accept() is a blocking IO call, and there should be no problem with doing it in a tight loop like yours. It's worth noting that you're not testing a practical solution anyway, since in real life you'll need to do some stream setup and such to initialise your newly accepted Socket which you could do in the same thread that's accepting the connections. If you change your code accordingly there's a good change it will work right away. Also, your problem will be fixed by having your accept thread wait a number of milliseconds before accepting a new connection. Although this isnt the most clean approach imaginable it does give other threads some time to breathe if you get a large amount of simultaneous connection requests. It's a fair bet a sleep(1) will already fix your problem.
    Perhaps it's a good idea to add a little more code and move closer to your goal application, and see if the problem fixes itself. You'll need a work-around anyway since it's unexpected behaviour.
    Good luck.

  • FromPane ToPane when using 2 Forms at the same time

    Hi,
    I have built 2 forms in 1 Add-On, Form A with 4 tabs and Form B with 2 tabs.
    I open both Form A and B
    If I click on Form A tab 1, Form B display tab 1 (they work together...???)
    If I click on Form A tab 2, Form B display tab 2 (Form A has control over Form B)
    But if I click Form B tab 1 or 2, nothing change in Form A (Form B has no control over Form A)
    When I click on Form A tab 3 and 4, Form B close the GridView.
    I cannot bring back tab 1 and 2 in Form B; if I click on Form B tab 1 or 2 and go back to Form A; Form A has full control over Form B again.
    In EventItem I am using: if ( pVal.FormUID == "FormA" ) and if ( pVal.FormUID == "FormB" ) to know which form has been clicked on.
    ...This work fine. The only think I see is that my FromPane ToPane change when I click on Form A, but FormB has no effect on FormA...???
    I have named the folder movement as follow to have no name conflict: if ( pVal.ItemUID == "FolderA1" ) and if ( pVal.ItemUID == "FolderB1" )
    Any suggestion?
    For me it looks like FromPane ToPane problem…

    hi,
    In order the folder item to work appropriately, you must first group them
    ofoderitem.groupwith.
    You must group the first shown folder with the other folder.
    The FromPane toPane works as following
    0 shows everything
    In your Exmple FormA and B should always be visible and you have 6different form, thus
    From Pane 1 to Pane 6
    when you press the folder you must the correct panelevel.
    Hope this helps
    Kind Regards

  • My ipod touch burns up when it is charging or sometimes when i play games at the same time it charges. why is this and what can i do to stop it? please help!!!

    HELLO! I have an Ipod Touch thats 32 gb, and its the really old one without the camera. ( im sorry i dont know which generation it is, but i bought it in 2010. ) Anyways, I've had this Ipod for almost 3 years now, and it still works pretty good. The thing im really worried about is that recently, my Ipod has started to overheat, meaning when i touch it, its almost burning. This happens when I charge it, or when I play games on it while charging the Ipod. When i remove the charger, it stops burning/overheating and goes back to normal. Why does this keep happening? Also, what can I do to stop it? please help!!!
    Thankyou!

    J.K. ROFLing  is correct. It is normal for the iPod to get quire warm when charging and during heavy use.. If concerned make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • How to add and remove storage from ASM at the same time?

    Scenario:
    I want to drop some disks from asm
    1- Add disk to asm -----> rebalance
    2- drop disk from asm ----> rebalance
    Is there anyway to make this process faster instead of going to rebalancing twice?

    I think you could try something like this.....
    Add with a power limit of zero and then drop the disks with a powerlimit of 11.
    alter system set ASM_POWER_LIMIT=0;
    select * from v$asm_operation;
    alter diskgroup DBFILE01_GRP
    add disk 'ORCL:DB0009', 'ORCL:DB0010', 'ORCL:DB0011', 'ORCL:DB0012';
    alter diskgroup DBFILE01_GRP drop disk DB0001, DB0002, DB0003, DB0004;
    alter diskgroup DBFILE01_GRP rebalance power 11;
    select * from v$asm_operation;

  • Streaming from ipod/ipad to ATV2 interrupted when using other apps at the same time.

    Hi.  I have an Apple TV2, ipad1 and ipod touch4.  I am having trouble with music streaming to the ATV2.  I can select a song on the ipad/itouch and stream it to the ATV2 no problem using airplay.  However, if I then try to surf the net on the ipad/itouch or use any other app at the same time as listening to the music, the music hiccups.  It seems to me like the ipad/itouch need to use the wifi network at the same time and so they take over the signal momentarily.  Any ideas what I can do about this?  My wireless router is a dual band 2.4 and 5 mhz gigabit router that is brand new and should not have any problems.
    Thanks
    Julia

    Ferrell, I have done what you suggested. I clicked onto the Spaces icon in the upper control panel and assigned spaces to six apps: Mail, Safari, iPhoto, iMovie, Pages, and iWeb.
    The problem is that if I am one app and I want to put something into that app, then the minute my mouse cursor goes to get that other thing, the original application into which I want the thing put GETS WHOOSHED OFF THE DESKTOP. What I want is for the original app to remain open whilst I go to retrieve a file or folder, and stay open while I put that thing into the original app.
    How does one turn off Spaces? I don't mean to delete all the names from the settings.I mean, just turn it off for a while so I can do something which requires for two apps to be open at the same time????
    ~ Lorna in Southern California

  • 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.

  • 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

  • Despatch sequence error msg- production order

    Dear All,
    While creating production order, error message is executing "Dispatching sequence: Structure KBED is not currently supported" . Message no - 831 , Application area - CY. Plz clear me why this message is executing.
    Rgds,
    Rajesh

    Dear Pradeep,
    As per ur suggestion i had checked the OPJK transaction result is without mention error. One more thing want tell u i have assigned overall profile SAPSFCG013, but in config in capacity requirement>Evaluation>profile>Overall profile , with this path i checked the assign profile which is not maintianed in profile. This profile i assign as STD requirements. But same is given in drop down of OPJK capacity overall profile.
    But one more query, with the same order type and plant when m checking for another materials it is not giving any error. This error is executing for only one material. so what is the reason?
    Plz suggest any solution.
    Regds,
    Rajesh
    Edited by: Rajesh Sawant on Apr 3, 2008 9:47 AM

Maybe you are looking for

  • Problem in creation of transfer order

    Hi gurus, I am facing a problem while craeting a TO for multiple processing deliveries. can anyone let me correct the process what i am following Intially i am creating a group withh group of deliveries through VL06P with grou[ type has :K" (Picking)

  • Is it possible to view multiple months at one time?

    I would like to be able to see two-four months at once in one window. Is this possible?

  • End User Login Message

    Hi Folks, Our production IDM setup has 3 IDM instances sharing the same repository. The IDM End user is used for setting passwords in IDM and LDAP. Recently, couple of users have reported this error while trying to log in into IDM end user login page

  • Still problems with Apache and cgi

    I thought it was the "admin" vs "staff", but that isn't the problem. I switched everything to staff but the scripts that weren't working still aren't. I've checked everything out that I can see (basically the ls -l listing) and I cannot see anything

  • Exporting CLOB data w/Oracle 8i

    Is there a way to export CLOB data from a table to an external file in a directory of our choice??? Our application specification is asking us to build this capability but I am unable to find any way to do this. Any assistance would be useful. Thanks