Problem with freeze on Document forms

Hi all,
i've a problem with freeze on document's forms (like invoice) when i make changes on matrix.
For example i've an addon that calculate discounts for items and update the information in the matrix. But when I update the info in the Matrix I see the cursor run across the matrix.
This create two problems. The first one is the orrible aspect that the operation assume, the second is that sometimes some cells turn to black and remain ofthis color.
Can someone help me?
Here I post a piece of my code:
    Dim oForm As SAPbouiCOM.Form = SBOApplication.Forms.Item(FormUID)
    Dim oMatrix As SAPbouiCOM.Matrix = oForm.Items.Item("38").Specific
    Dim oRefLine As Integer = 0
    oForm.Freeze(True)
    Dim Cnt As Integer = 1
    Try
      While Cnt <= oMatrix.RowCount
        If oMatrix.Columns.Item("U_RefLineId").Cells.Item(Cnt).Specific.Value <> "" Then
          Dim apDouble As Double = oMatrix.Columns.Item("15").Cells.Item(Cnt).Specific.Value.ToString.Replace(".", ",")
          If apDouble <> 100 Then
            SetMatrixValue(oMatrix, "U_RefLineId", Cnt, "")
            SetMatrixValue(oMatrix, "11", Cnt, oMatrix.Columns.Item("U_OrigQtyMN").Cells.Item(Cnt).Specific.Value)
            SetMatrixValue(oMatrix, "U_OrigQtyMN", Cnt, 0)
            Cnt = Cnt + 1
          Else
            oMatrix.Columns.Item("15").Cells.Item(Cnt).Click()
            SBOApplication.ActivateMenuItem("1293")
          End If
        Else
          SetMatrixValue(oMatrix, "15", Cnt, 0)
          Cnt = Cnt + 1
        End If
      End While
    Catch ex As Exception
      SBOApplication.StatusBar.SetText("Error: " & ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
    End Try
    oForm.Freeze(False)

Hi Daniele,
I use a little different approach because the Freeze on a Form is like parenthesis on formula. You must be sure that the Freeze(true) are balanced by a Freeze(false).
So my pattern is:
Try
    oForm.Freeze(True)
    ' the operation you need to do with the freezed form
Catch Ex as Exception
    ' Menage the errors here
Finally
    oForm.Freeze(False)
End Try
The Finally statement is executed in both case when an Exception is raised or when the code is right executed.
But I think this is not the problem in your code.
If you still having problem, probably we need to examine your sub-routine "SetMatrixValue".
It is also important to know your SAP Business One version because in the past there was a version with a problem in the refresh of matrix.
I use SAP Business One 2007A SP01 PL06 HF1 and I do not have problem with the freezing.
Hope it helps.
Carmine

Similar Messages

  • Problems with filling out PDF forms

    We have problems with filling out PDF-forms. Aotomatic filling of forms is deactivated and we use the Adobe Reader 11.0.05. The problem is: After some time the inputs are wrong put down in the form. For example: I write 120 and in the form stands 125. We have already extinguished the cache. Thanks for your help in advance.

    You will get that first message when the document has been changed in a way that invalidates the internal digital signature that's applied when a document is Reader-enabled. Certain changes are allowed (e.g., filling fields, commenting, signing) and will not invalidate the signature, but others are not. The exact cause of the change is often hard to track down, but it can be due to font problems, some type of file corruption, or something that Acrobat/Reader attempts to correct when the file is opened/saved. You will also get the message if the users system time is not correct and is currently set to some time before the document was Reader-enabled. It seems best to use the most recent version of Acrobat to enabled the documents and recent versions of Reader to work with them.
    It problem is probably not related to the user using anything in the Sign pane.

  • Problem with Assign reference document.

    Hi all,
    I defined transaction input parameter type Xml.
    I used Reference Document Loader to load document (structure.xml) below.
    <?xml version="1.0" encoding="UTF-8"?>
    <SO_VALIDATION>
        <L4_SO_ID/>
        <L4_SOI_NO/>
        <PPC_STATUS/>
        <PPC_INFO/>
    </SO_VALIDATION>
    I used menu command Assign Reference Document, to assign above document to transaction input.
    I tryed to use this transaction in vs.net application as a web service.
    But there is no xml structure in InputParams in web service.
    I tryed alot but i did not achieve.
    What must i do?
    Thanks.

    cml_bzl,
    I'm using version 12.04 and I have not had any problems with assigning reference documents and using .NET.
    You should not have to do anyting special to get the transaction inputs to show up in .Net. To map the output I do the following:
    1. Create an output transaction variable and assign it's type as XML
    2. Using a XML document block to create and XML document for your output transaction variable
    3. Assign the XML document as the reference for the output transaction variable.
    THis works for me every time. If you change the transaction parameters, make sure you update the web service form the .NET side.
    Glenn

  • Oracle Text - Problem with filtering binary documents (.doc, .pdf, etc...)

    Hi, I have a problem with filtering binary documents (.doc, .pdf, etc...). I use SQL*PLUS for remote access to Oracle 10.2 on Linux and I create table:
    CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    I insert to this table:
    INSERT into test values(1, 'PATH/text1.doc‘);
    INSERT into test values(2,'PATH/text2.doc‘);
    and then:
    CREATE INDEX test_index ON test(text) indextype is ctxsys.context
    parameters (’datastore ctxsys.file_datastore
    filter ctxsys.auto_filter’);
    Message "Index created" is displayed, but objects: DR$test_index$I, DR$test_index$K, DR$test_index$N, DR$test_index$R and DR$test_index$P are empty => index wasn´t created probably.
    I don´t know, where is bug, either bug is somewhere in this code or on the server (wrong installation oracle or constraint privileges). Do you know in what is bug?

    The following is an excerpt from the 10g online documentation. Note the items that I have put in bold.
    "FILE_DATASTORE
    The FILE_DATASTORE type is used for text stored in files accessed through the local file system.
    Note:
    FILE_DATASTORE may not work with certain types of remote mounted file systems.
    FILE_DATASTORE has the following attribute(s):
    Table 2-4 FILE_DATASTORE Attributes
    Attribute Attribute Value
    path path1:path2:pathn
    path
    Specify the full directory path name of the files stored externally in a file system. When you specify the full directory path as such, you need only include file names in your text column.
    You can specify multiple paths for path, with each path separated by a colon (:) on UNIX and semicolon(;) on Windows. File names are stored in the text column in the text table.
    If you do not specify a path for external files with this attribute, Oracle Text requires that the path be included in the file names stored in the text column.
    PATH Attribute Limitations
    The PATH attribute has the following limitations:
    If you specify a PATH attribute, you can only use a simple filename in the indexed column. You cannot combine the PATH attribute with a path as part of the filename. If the files exist in multiple folders or directories, you must leave the PATH attribute unset, and include the full file name, with PATH, in the indexed column.
    On Windows systems, the files must be located on a local drive. They cannot be on a remote drive, whether the remote drive is mapped to a local drive letter."
    With accessible paths and files, you get something like:
    SCOTT@orcl_11g> CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    Table created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> INSERT into test values(1,'c:\oracle11g\banana.pdf');
    1 row created.
    SCOTT@orcl_11g> INSERT into test values(2,'c:\oracle11g\cranberry.pdf');
    1 row created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> CREATE INDEX test_index ON test(text) indextype is ctxsys.context
      2  parameters ('datastore ctxsys.file_datastore
      3  filter ctxsys.auto_filter');
    Index created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> select count(*) from dr$test_index$i
      2  /
      COUNT(*)
           608
    SCOTT@orcl_11g> In the following, I used a non-existent path and non-existent file name, which produces the same results as when you use a remote path that does not exist locally.
    SCOTT@orcl_11g> CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    Table created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> INSERT into test values(3,'c:\nosuchpath\nosuchfile.pdf');
    1 row created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> CREATE INDEX test_index ON test(text) indextype is ctxsys.context
      2  parameters ('datastore ctxsys.file_datastore
      3  filter ctxsys.auto_filter');
    Index created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> select count(*) from dr$test_index$i
      2  /
      COUNT(*)
             0
    SCOTT@orcl_11g>

  • Problem with PJC (Print Dialog) - Forms 10g

    I have a problem with my PJC for Forms 10g r2. When I try to connect and run my PJC (raise Print dialog and put printer name in some text item) I get following message:
    oracle.forms.net.ConnectionException: Forms session <2> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    When I started application, on Java console I saw this message, so I think the server configuration is fine (I change everything I need in Default.env and FormsWeb.cfg files):
    Loading http://devsrv/forms/java/jESPrintDialog.jar from JAR cache
    What can I change with server configuration or deploying my project to this PJC can work normaly?
    Thanks....

    Hi and thanks!
    I resolve one part of my problem. Tt was about diferent compiler (in JDeveloper 10.1.3 compiler is 1.5 and in my oc4j server JRE is earlier version, so it can`t work normaly).
    I comiled PJC in 1.4 version of compiler and now I can start and run my PJC.
    But, there is another problem:
    this is my part of java code (note: everything work fine except one line when I want to get printer name from select printer dialog):
    try {
    boolean b;
    PrinterJob job = PrinterJob.getPrinterJob();
    b = job.printDialog();
    try {
    return job.getPrintService().getName();
    catch (Exception e) {
    System.out.println("Error: "+e.getMessage());
    return "My error:";
    } catch (Exception e) {
    System.out.println("ERROR: " + e.getMessage());
    return "Problem with PJC [esoft]";
    So, when pjc want to get back printer name
    return job.getPrintService().getName();
    i get following error (on Java console):
    java.lang.NoSuchMethodError
         at happypjc.PDialog.getProperty(PDialog.java:50)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Can you give me some hint about it. Everything is OK now, except this (very important) peace of code!
    best regards
    mret

  • Problem with opening odf document

    Hello,
    I have some problem with opening pdf document (attached image). Any idea why ?
    Regards,

    Any idea why ?

  • I'm having problems with 7.1 update my flash "flashes" now when I receive txt's and notifications! And I'm also having problems with freezing and wifi problems! How do I solve this?

    I'm having problems with 7.1 update my flash "flashes" now when I receive txt's and notifications! And I'm also having problems with freezing and wifi problems! How do I solve this?

    Doh! Rectified flash!
    But when face timing 2 seconds after it connects wifi disconnects? Any thoughts

  • Problems with Apple Preview filled forms and compatibility with Windows?

    Anyone else having problems with Apple Preview filled out forms and compatibility with Microsoft Windows after Lion?
    I've had it happen recently with two different people, where the data I had entered on a fillable PDF form could not be seen by Microsoft Windows, but I saw my data just fine.
    I don't know what version of Adobe Acrobat they were running.
    Thanks,
    kt

    You will get that first message when the document has been changed in a way that invalidates the internal digital signature that's applied when a document is Reader-enabled. Certain changes are allowed (e.g., filling fields, commenting, signing) and will not invalidate the signature, but others are not. The exact cause of the change is often hard to track down, but it can be due to font problems, some type of file corruption, or something that Acrobat/Reader attempts to correct when the file is opened/saved. You will also get the message if the users system time is not correct and is currently set to some time before the document was Reader-enabled. It seems best to use the most recent version of Acrobat to enabled the documents and recent versions of Reader to work with them.
    It problem is probably not related to the user using anything in the Sign pane.

  • Problem with material and document date in sales order

    Hi All,
    I am working in ECC 6.0 .I am facing problem with two fields when in enter in to sales order(tcode:va01)
    1.A material comes automatically in line item.
    2.Document date also comes as 27.03.2008 instead of todays date in each order i create.
    I think its not related to configuration.I think its related to some modifications through exits or enhancement points.could someone suggest me a where to check and solve that.
    Your's suggestion is appreciated.

    Hi Sharad,
    Check MV45AFZZ include in se38..It is a user exit for basic validation on sales...We may be able to find some code there (if screen data is predefined by code as mentioned)
    Hope it helps
    Regards
    Byju

  • Problem with Grouping in Interactive Forms by Adobe

    Hey Guys!
    I have a problem using the group function for a table in Interactive Forms by Adobe and I have not found a solution yet, so I hope anybody can help me.
    I've created the table in the LiveCycle Designer using subforms and I want to use the group function for a specific field of my table. Now the problem is that the entries of the table are not shown grouped for the same values of my specific field but there is still one row for each entry. How do I have to edit binding, flow etc. for the subforms of a group?
    I hope anybody can help me or provide me a better solution.
    Thanks in advance.
    Martin

    Hi Otto,
    thanks for your reply.
    I'm sorry the 'grouping function' I've announced is called 'control levels' in English I can set this function for a field of a table in the context of the form in the transaction SFP in SAP. Then in the hierarchy the field is displayed above the group of the other fields of the table. Usually in the form this should lead to a 'grouping' for the specific field so if you have identical values there is just one entry in the form and all the rows that have this value should appear behind. My problem is that there is still one entry in the form for every row.
    Right now I'm using the solution you mentioned with the nested tables but i have some problems with the layout and page breaks (pagination).
    Thanks for your help.
    Martin

  • Problem with custom Reports and forms in R12

    Hi All,
    we are upgrading from 1103 to R12. In R12 we are facing a peculiar problem with Reports. All seeded reports are running perfectly. But no data is coming while running the custom reports. The operating unit field in the SRS window is getting populated automatically while running the seeded reports but getting greyed off while running custom reports.
    We are facing the same problem with forms even, data is not getting retrieved in custom forms. Can any one suggest wether there is any profile option which is being missed out by us. ..
    Thank you,
    Regards
    Raj

    Add SRW.USER_EXIT('FND SRWINIT') in the afterPForm trigger.
    This will set the org context for reports.
    ~Sukalyan Ghatak

  • Problem with linking PDF documents using named destinations

    Linking from one PDF document to another PDF document using named destinations viewed in Reader works great but once the documents are viewed inside a browser environment the link will only open the go to document and will not go to the named destination.
    If I make the links using the page number - yes they will work perfectly in the browser. But my problem is that the documents may change in the future and the links may be on differnt pages, so I need to use named destinations to bring me to the page of the PDF they are on.
    Any suggestions? I need them to work in IE.
    Thanks

    You can link to a named destination with a URL. This might work better in
    your case... To do it use the following format:
    http://example.org/doc.pdf#nameddest=Chapter6

  • ITunes 6.0 problem with freezing HELP ME

    I just downloaded iTunes 6.0 today for Windows. I have up to date Windows and I've never had a problem with iTunes before. But now, when I attatch my iPod, or open iTunes when my iPod is already attatched, iTunes freezes almost immediately - or it freezes the instant I try to put any songs from my library on to it. I don't know what to do!

    By chance, I've found a solution.
    I have Sysinternals's Process Explorer, which is a more powerful alternative to the Windows Task Manager. It's available at http://www.sysinternals.com/Utilities/ProcessExplorer.html.
    While iTunes was frozen, I brought up Process Explorer, did a right click on the iTunes process, and selected "Bring to Front." After a few moments, it brought iTunes up, and it was no longer frozen.
    I haven't so far needed to do it more than once.

  • Problem with open Word Documents and Quark Documents

    Hi,
    I am getting a strange problem with OS X Server 10.4.6, running on a G4 Xserve 1Ghz.
    When working on files in Microsoft Word X and 2004 after having the file open for a few minutes if you try and save we get an error "Word failed reading from this file", or "Bad network connection".
    Also in Quark 6.52 and Quark 6.1 when trying to save a file to the server we get "File not found [-43]". It is possible to open files, and it is also possible to move files onto the share using finder without any problems. To work on documents we are having to work on them locally on the desktop then copy across once done.
    The only thing that i can think has changed is the power went off last night, which casued the Xserve to restart. These problems are occuring across all client computers so i am assuming it can only be a problem with the server.
    Does anyone have any idea what this could be, or any tests that i can do to detmine what is up with it
    Many Thanks
    Tim Pearson

    Hi David,
    I have just tried power-cycling the switches, still getting the same problem.
    I will run disk utility on the shares at lunch. I don't think this will help as it is happening on both data drives.
    I have now also updated the OS X server to 10.4.7, and have turned the access log and error log on, it is showing no errors in the error log, and i can't see anything in the access log that looks out of the ordinary.
    With Quark i can replicate the same problem every time by creating a new project, saving it, altering it and saving it again (this works), then if i alter it again and try and save it comes up with "Duplicate File Name [-48]". It is also not deleting the temporary files, for example "QXP-1055966280.qxp".
    Regards
    Tim Pearson
    Grafika Ltd

  • Problem with output in smart forms

    Hi All,
    I am getting some problem with the field list in smartforms. When i tried to drag and drop some fields its not allowing me drop in text editor. So i hard code some of the fields and some systems fields. But in ouput i am getting every thing like in the top its showing "Print Preview of page 001 of 007. Its showing all the Filed descriptions and every thing. But its displaying all the field values and system values as &wtab-vebln&  &wtab-erdat&  &wtab-ernam&
                   &wtab-vebln&  &wtab-erdat&  &wtab-ernam&
                   &wtab-vebln&  &wtab-erdat&  &wtab-ernam&
    Untill end of loop for all pages. In the same way for each end of the page i am trying to print out &sy-pagno& but for evry page i am getting only the &sy-pagno& but not the page number.
    When i debug the internal table itab is populated with the data.I dont know why the field list is not allowing me to drag and drop fields and when i hard code why i am getting output like that.
    Some where i read that the we have to change in cofiguration of smartform in order to drag and drop is it right?
    Suggest me how to correct this error.

    Hi Ben..
    You cannot drag&Drop the Fields into Text Editor ..
    You have to do this in Graphical PC Editor (This will be the default editor Generally)
    Otherwise you have to use the Icons INSERT FIELD(+) DELETE FIELD ( - )
    On the Toolbar above the PC Editor.
    Remember your field should be displayed with Gray shade. then only the Value of the Symbol is displayed. Otherwise it will be displaying the Symbol name as it is.
    For page no You have to use the System field of Smartforms &SFSY-PAGE&
    not &sy-pagno&.
    <b>Reward if Helpful</b>

Maybe you are looking for

  • TS4001 iCloud bookmark syncing just doesn't work.

    I've tried all of the disconnect, purge, wait and merge scenarios on on this and other web platforms and iCloud still keeps causing my bookmarks to revert to a long obsolete setup from weeks ago. It's clear I'm not the only one with the problem. Anyo

  • Still images exported to DVD look deinterlaced and flicker on TV monitor

    Hi, I have tried tried almost everything and I still have issues with the still images exported to DVD as sequencefrom FCP 7.0 by using Compressor are deinterlaced and flicker on TV monitor. Please help remove the annoying flicker. My FCP Timeline Se

  • EA6400: Port forward two Netgear ReadyNAS FTP servers

    I have a new EA6400 router with the latest May 2014 firmware. I also have two Netgear ReadyNAS network attached storage devices that are set up as FTP servers. With my old Netgear WNDR3700 with DD-WRT firmware (after the last thunderstorm, may she re

  • Documentation on activesync email client

    Hi, Does anyone know where I can get documetation on the activesync e-mail client on the iPad? I need to find out exactly how this client behaves. ex: Is there a limit to how much e-mail it can download/folder? Does the e-mail get downloaded to a fol

  • Connector Specific Error

    I am trying to sync with my Outlook and I keep getting an error that says "Connector specific error"  I get this same error using the USB cable and my bluetooth.  Can someone please help?!