Slow when fill batch numbers in matrix

Hi,
I am using the following code to fill a matrix in the batch numbers windows, this codes come from other windows where the user set his batch numbers and click ok.
My problem is this routine is slow based in the user simulation clic and I need this become more fast.
I use the .Freeze(true) command to get more speed, but doesnt work.
Actually this give me 18 codes per minute. My problems is when the user set 6.200.000.
Can provide me some tips to do it? or other way to get the goal.
Thanks.
EDIT: sorry when I want to mean is "Slow" is when my code write on the matrix (the batch number window) how can I get more speed in the process?
oBultosForm.Freeze(true);
                    z = 1;
                    foreach (var item in seriales)
                        SAPbouiCOM.EditText oEditTex3 = (SAPbouiCOM.EditText)oGrid.Columns.Item(2).Cells.Item(z).Specific;
                        oEditTex3.Value = item.Serial;
                        SAPbouiCOM.EditText oEditTex4 = (SAPbouiCOM.EditText)oGrid.Columns.Item(5).Cells.Item(z).Specific;
                        oEditTex4.Value = item.Cantidad;
                        oGrid.Columns.Item(20).Cells.Item(z).Click(BoCellClickType.ct_Regular);
                        SBO_Application.Menus.Item("5888").SubMenus.Item("5963").Activate();
                        oBultosForm = SBO_Application.Forms.GetForm("1470000006", 0);
                        oBultosForm.Freeze(true);
                        oGrid1 = (SAPbouiCOM.Matrix)oBultosForm.Items.Item("1470000019").Specific;
                        SAPbouiCOM.EditText oEd4 = (SAPbouiCOM.EditText)oGrid1.Columns.Item(1).Cells.Item(1).Specific;
                        oEd4.Value = item.Ubicacion;
                        SAPbouiCOM.EditText oEd5 = (SAPbouiCOM.EditText)oGrid1.Columns.Item(2).Cells.Item(1).Specific;
                        oEd5.Value = item.Cantidad;
                        SBO_Application.Forms.ActiveForm.Items.Item("1470000001").Click(BoCellClickType.ct_Double);
                         z++;
                    oBultosForm = SBO_Application.Forms.ActiveForm;
                    oBultosForm.Freeze(false);

hi Maik, the Active Form is a Form  created by with visual designer this is called "Gestion de bultos" is used for pack management,
1.- you insert your goods receipt PO and clic add
2.- this open a batch setup windows. here you select the document and later clic in "bultos button".
3.- this open a pack management window (Gestion de bultos) where you insert how you can distribute the quantities, ex. I want 6 pack of 100 and the location is A-01-2-3.
When you clic ok. this close the window (Gestion de bultos) and in the Batch - Setup window insert the batch generated based in the requirement.
my problem is this is slow due at use a GUI for this. I dont know how to do it with DI API, I think in some Transaction Notifications. But is only ideas.
Thanks for your time

Similar Messages

  • Overdelivery with batch numbers

    hi,
    is there a way to handle overdeliveries in Business One when using batch numbers.
    For example:
    Order: 100 g
    select charges 100,9g
    Deliver 100,9g
    Without batch numbers its no problem. But the batch number controlling in business one has a maxinum limit (order quantity). For me its a bug !
    Has anybody a solution? Or will this feature be implemented soon?
    regards
    Markus
    Edited by: Markus Rewak on Dec 3, 2008 3:47 PM

    Hi,
    we have the same Problem. I think this is a bug, too.
    Will this issue be fixed in a further Patch?
    Kind Regards
    Andreas

  • After upgrading from acrobat 9.5 to XI pro my users have complained on slow typing when filling in form that were created in version 9.5?

    After upgrading from acrobat 9.5 to XI pro my users have complained on slow typing when filling in form that were created in version 9.5?
    The issue is they type but there is 2 second delay when it appears in the field.
    Windows 7 64bit

    I see, I misread your reference to Reader 11 to mean you were using Acrobat 11, but it looks like it worked out anyway.
    The base-14 fonts are special in PDF because they are guaranteed to be available even if they are not embedded. If you select a non-base-14 font for use with a form field, the entire font usually gets embedded, since each glyph it contains has to be available for use with the field. This can take up a lot of space if you do this a lot, and the space isn't reduced if you change back to a base-14 font later because the internal reference to it is not removed. This is caused by the bug I mentioned.
    In your case, however, the entire font doesn't get embedded because fonts like it (e.g., large asian fonts with a lot of glyphs, Arial Unicode) would take up too much space if fully embedded. If it did, a 100KB PDF could bloat to 20MB with that one change. Instead, users are expected to have such fonts installed on their system, which is why you were prompted to install the font pack. This despite the fact that the font was not actually used by anything in your document, it was simply the orphaned reference to it that triggered this. This should get fixed in Acrobat eventually so this type of thing doesn't happen again.

  • Error when seelcting serial numbers - Matrix - invalid row number

    When selecting serial numbers in the Inventory posting screen, we are getting the following error.  can you please assist.
    HDserialselection:0: Matrix - invalid row number

    The error message sounds like from Add-on, not B1.  Do you have any add-on installed?
    Thanks,
    Gordon

  • Batch numbers - eliminating batches in form

    Hi,
    I have some items with Batch Numbers. When Im creating invoice (through UI or user entry) and after click to Add button, the form with batches will be shown. In bottom left corner is there a matrix with list of disponibile batches. Is it possible to eliminate this list of batches only for batches I need (through some filter, query, ...)?
    Or - is it possible to assign batch number for line level of main matrix before I click to Add button?
    I spent on this whole day without any idea...
    thanks

    Hi Petr,
    it won't be very helpful but maybe you're interested how iam doing this.
    i trigger the "add button", the serial number form opens and i assign the serial numbers automatically.
    the user just have to watch how the "serial numbers" walk from left to right
    i don't think you can "filter" the list of avaible serials.
    lg David

  • PL/SQL procedure is 10x slower when running from weblogic

    Hi everyone,
    we've developed a PL/SQL procedure performing reporting - the original solution was written in Java but due to performance problems we've decided to switch this particular piece to PL/SQL. Everything works fine as long as we execute the procedure from SQL Developer - the batch processing 20000 items finishes in about 80 seconds, which is a serious improvement compared to the previous solution.
    But once we call the very same procedure (on exactly the same data) from weblogic, the performance seriously drops - instead of 80 seconds it suddenly runs for about 23 minutes, which is 10x slower. And we don't know why this happens :-(
    We've profiled the procedure (in both environments) using DBMS_PROFILER, and we've found that if the procedure is executed from Weblogic, one of the SQL statements runs noticeably slower and consumes about 800 seconds (90% of the total run time) instead of 0.9 second (2% of the total run time), but we're not sure why - in both cases this query is executed 32742-times, giving 24ms vs. 0.03ms in average.
    The SQL is
    SELECT personId INTO v_personId FROM (            
            SELECT personId FROM PersonRelations
            WHERE extPersonId LIKE v_person_prefix || '%'
    ) WHERE rownum = 1;Basically it returns an ID of the person according to some external ID (or the prefix of the ID). I do understand why this query might be a performance problem (LIKE operator etc.), but I don't understand why this runs quite fast when executed from SQL Developer and 10x slower when executed from Weblogic (exactly the same data, etc.).
    Ve're using Oracle 10gR2 with Weblogic 10, running on a separate machine - there are no other intensive tasks, so there's nothing that could interfere with the oracle process. According to the 'top' command, the wait time is below 0.5%, so there should be no serious I/O problems. We've even checked JDBC connection pool settings in Weblogic, but I doubt this issue is related to JDBC (and everything looks fine anyway). The statistics are fresh and the results are quite consistent.
    Edited by: user6510516 on 17.7.2009 13:46

    The setup is quite simple - the database is running on a dedicated database server (development only). Generally there are no 'intensive' tasks running on this machine, especially not when the procedure I'm talking about was executed. The application server (weblogic 10) is running on different machine so it does not interfere with the database (in this case it was my own workstation).
    No, the procedure is not called 20000x - we have a table with batch of records we need to process, with a given flag (say processed=0). The procedure reads them using a cursor and processes the records one-by-one. By 'processing' I mean computing some sums, updating other table, etc. and finally switching the record to processed=1. I.e. the procedure looks like this:
    CREATE PROCEDURE process_records IS
        v_record records_to_process%ROWTYPE;
    BEGIN
         OPEN records_to_process;
         LOOP
              FETCH records_to_process INTO v_record;
              EXIT WHEN records_to_process%NOTFOUND;
              -- process the record (update table A, insert a record into B, delete from C, query table D ....)
              -- and finally mark the row as 'processed=1'
         END LOOP;
         CLOSE records_to_process;
    END process_records;The procedure is actually part of a package and the cursor 'records_to_process' is defined in the body. One of the queries executed in the procedure is the SELECT mentioned above (the one that jumps from 2% to 90%).
    So the only thing we actually do in Weblogic is
    CallableStatement cstmt = connection.prepareCall("{call ProcessPkg.process_records}");
    cstmt.execute();and that's it - there is only one call to the JDBC, so the network overhead shouldn't be a problem.
    There are 20000 rows we use for testing - we just update them to 'processed=0' (and clear some of the other tables). So actually each run uses exactly the same data, same code paths and produces the very same results. Yet when executed from SQL developer it takes 80 seconds and when executed from Weblogic it takes 800 seconds :-(
    The only difference I've just noticed is that when using SQL Developer, we're using PL/SQL notation, i.e. "BEGIN ProcessPkg.process_records; END;" instead of "{call }" but I guess that's irrelevant. And yet another difference - weblogic uses JDBC from 10gR2, while the SQL Developer is bundled with JDBC from 11g.

  • Duplicate entries (Batch numbers) in printout

    Hi experts,
    we are using Inventory Transfer for Consignment Stock in B1. When we print the document we get an inventory transfer document and a Delivery Note/Packing List that shows the batch numbers ("Batch Report in Document Structure").
    However, the line with the batch number always shows up twice. It just duplicates it as it would grab the information from two different tables. But this is confusing and makes no sense at all to have a double entry.
    I'm using a customized template. There are three fields in the repetitive area that show up twice in the printout:
    - OIBT - Batch No. for Item: Batch Attribute 1
    - OIBT - Batch No. for Item: Quantity
    - OIBT - Batch No. for Item: Location
    Thanks in advance for your help.
    Please let me know in case you need more information. I spent several hours to figure out why it duplicates the entries, but I couldn't find a solution.

    With customization I mean that it's different from the system template. I deleted some fields we don't need etc.
    I changed it to the system template (Batch Report (System)), but with this template I get the same. The line from the repetitive area shows up twice in the printout.
    I thought there is only one table where the template grabs the information, but it looks like there are two separate sources.

  • How to config the batch numbers internally from remaining?

    Hi All
    Firsr i followed the path and activated the internal batch number assignment(IMG ---> Logistics - General ---> Batch Management ---> Batch Number Assignment ---> Activate Internal Batch Number Assignment)
    then i have maintained the number ranges for the batches
    Still when I do MIGO the batch tab appears but the system is not generating the batch numbers internally instead its asking to enter the batch number.
    Please suggest if I have missed any other config or any master data towards the settings for Batch Management and also to have the system create the batch numbers at the GR stage.
    Thanks&Regards
    SRK

    Hi SRK,
               You may miss to confing this thing......
               IMG ---> Logistics - General ---> Batch Management ---> Creation of New Batches > Define...
    you can find the solution
    Regards
    Madhu

  • Need tables for tracking Invoice Items back to the Batch Numbers/Item codes

    Trying to build report to show the Inventory movement from a Sales Invoice Item back to the source items and the Batch Numbers for assigned along the way.  Having problems finding all the tables to connect the Batch information to the Invoice information.
    In B1 under batch management I can see fields that belong to tables RBTN, RITL and OBTN  but I can only find OBTN in Crystal.
    Are these tables hidden for some reason or are they Temporary tables that B1 creates when opening the form/report.

    You may check this: Re: To what table are Batch# saved to with SAP 8.8

  • Error when selecting batch during prod order creation

    Hi Gurus,
    When selecting batch for production orders components, an error prompted 'Invalid batch, does not match the selection criteria in batch determinat.'
    After checking, it is because the classification is not maintained. So I need to re-create in MSC2N.
    The question is, how/where should I change back the configurations on checking the batch classification during prod ord?
    Thank you.

    Kumar,
    Please let me know how many Component items are there in the BOM? Out of which how many are Phantom assembly?
    It looks like when the BOM is copied to the order it is crossing 9999 items.
    I would suggest you to use an intermediate order/material to reduce this number.
    I think there was an OSS notes for this to extend the number of character length for BOM items numbering (POSNR).
    Hope this helps...Reward your points,
    Regards,
    Prasobh

  • Flash work slow when the page is in background of browser

    I'm developing a game during which a clock which states that every three seconds a soldier will be added to the screen , and another clock that moves the soldier from the left to the right side of screen every 20 milliseconds .
    Everything works correctly, until the game rises locate the air. If the user chooses to leave the game for a few minutes and messing with another page in browser , the watches of the Flash game starts to work very slow , which is why the soldiers are moving at low speed and thus accumulate masses of soldiers on screen, while they were supposed to be gone long .
    I'm trying to create a " self timer " , instead of dealing with flash clock ( Timer ) , but I got involved with recursion fills the cartridge and creates StackOverFlow error.
    I can not use the event Event.ENTER_FRAME etc. , because also this event work slow when the game is in the background
    What to do ? Who can help me?

    Thank you!
    I solved it, similar to what you suggested, through the ACTIVATE event is linked to the stage.  That:
                        private function stageDeactivate(e:Event)
                                  if (stage != null)
                                            stage.removeEventListener(Event.DEACTIVATE, stageDeactivate);
                                            stage.addEventListener(Event.ACTIVATE, stageActivate);
                                            stopSoldiers();
                        private function stageActivate(e:Event)
                                  if (stage != null)
                                            stage.removeEventListener(Event.ACTIVATE, stageActivate);
                                            stage.addEventListener(Event.DEACTIVATE, stageDeactivate);
                                            playSoldiers();

  • Serial/batch numbers  Problem

    Hi  All,
    I am trying to Genetate  a goods receipt  through Code .
    when i m trying to generate it gives me error like
    You should use existing serial/batch numbers for this document type
    But i have to create new serial/batch
    so what can i do over here.
    Hari

    Hi Hari,
    In 2007 version, there is a change in SystemSerialNumber Property
    When you set this property (SystemSerial Number)it means that you want
    to use an existing serial number
    If the system serial number does not exist, any action will fail.
    When you do not set this properyt (empty) it means that you want to
    create a new serial number
    You cannot provide a system number of your choice to create a new
    serial number
    Regards,
    Vijay Kumar
    SAP Business One Forums Team

  • HT201412 what do you do when your phone numbers no longer have the contact persons name just a number. Also names are missing from the address  book where contacts are.

    what do you do when your phone numbers no longer have the contact persons name just a number. Also names are missing from the address  book where contacts are.

    I, too, love everything about my phone. The other day I tried to crash my Z10 by running multiple apps and having videos running in the background. Do you think my Z10 showed any signs of slowing down? Nothing doing! It ran as smooth as silk. I'm very impressed.
    Cheers.
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • BAPI_GOODSMVT_CREATE, and automatic batch numbers

    Hello,
    I am using BAPI_GOODSMVT_CREATE and doing good receipt vs., a Purchase Order, GM 01.    The material is auto batch managed and I see the batches are generated when I go into MSEG for the good receipt line items.   However, batch numbers are not returned in the bapi return information.
    Is there a way to get the batch numbers to return in the BAPI_GOODSMVT_CREATE bapi?  If so, please let me know.  If not, please also let me know and I will do a subsequent look-up to get that info.
    Thanks

    BAPI_GOODSMVT_CREATE will return the material document number posted. Use that to get the batch number from table MSEG.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        GOODSMVT_HEADER  = LS_GOODSMVT_HEADER
        GOODSMVT_CODE    = LS_GOODSMVT_CODE
      IMPORTING
        GOODSMVT_HEADRET = LS_GOODSMVT_HEADRET
      TABLES
        GOODSMVT_ITEM    = LT_GOODSMVT_ITEM
        RETURN           = LT_RETURN.
    IF LS_GOODSMVT_HEADRET-MAT_DOC IS NOT INITIAL.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT   = GC_TRUE
        IMPORTING
          RETURN = LS_RETURN.
      SELECT SINGLE CHARG FROM MSEG INTO LV_CHARG
              WHERE MBLNR EQ LS_GOODSMVT_HEADRET-MAT_DOC
                AND ZEILE EQ '0001'.
    ENDIF.
    *Assumes single item document posted

  • Slow when open form or switch resposibilty

    hai all ,
    i face problem on ebs 12.1.1 , when open form or switch responsibilty , the response very slow,
    when i see application.log on ./logs/ora/10.1.3/j2ee/forms/forms_default_group_1
    it will saw error
    java.io.IOException: FRM-93000: Unexpected internal error.
    Details : No HTTP headers received from runform
    at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:735)
    12/09/12 12:52:18.156 formsweb: Forms session <8,761> aborted: unable to communicate with runtime process.
    12/09/12 12:52:18.156 formsweb: Forms session <8761> exception stack trace:
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:179)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:229)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:248)
    at java.io.DataInputStream.readLine(DataInputStream.java:507)
    at oracle.forms.net.HTTPHeaderTool.parseResponseHeader(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:735)
    fyi , my ebs running on ibm aix 64 bit.
    anyone ever faced this problem ? and how to solve it

    Hi;
    Pelase review:
    Form Using FlexField crashes with FRM-93000: Unexpected Internal Error in application.log [ID 1238633.1]
    How to Interpret the Oracle Forms Error - FRM-93000 [ID 255023.1]
    Regard
    Helios

Maybe you are looking for

  • F4 help for catalog search not working in shopadmin

    Hi, I am getting "JSP Compilation error" if I click on binoculars next to catalog select field under the "catalog" tab in shop admin. I get this error message although this jsp is never changed and is standard. com.sap.engine.services.servlets_jsp.se

  • Mail App Crashes When Printing

    I have a new retina display macbook pro with 16gb ram.  I preordered this shortly after announcement, so it shipped with lion, I ended up upgrading to Mountain Lion.  At work we just got a new copier, replace the old one.  Everything but Mail will pr

  • Cookies and stuff in normal application...

    I have a stand alone application that is not a servlet nor reside on a server. I need to authenticate the users, can I use cookie servlet code in my regular applicaiton? I am trying to imagine if it is possibe for me to interact with a cgi script (we

  • Module pool program with OOPS

    Hi friends, am working on module pool program i want to use oops concept in moduel pool.can any body give me an example in module pool with oops . Thanks in advance, sai.

  • How to close the command prompt

    Hi, I am new to Java. I am using Swing. i used System.exit(0) to close my frame when a condition is met. But the command prompt is not closed. How do i close that automatically