Getting an invalid Item error when resizing(maximizing) the form.

Hi Experts,
                  I have an error when in click sales A/R invoice...i have added some functionality in that as extra...all r working fine but some times when i minimize the window & again maximize(resize) it this error message is being displayed(only after 10-15 clicks).can anybody tell me some suggestions...
System.Runtime.InteropServices.ComException(oXFFFFF7F9):Item -Invalid
item[6600-3].form Unique id:'F_173',Item Unique ID:'100000330'
at SAPbobosCOM.ItemClass.Item(Object Index)
at SampleProject.clsARInvoice.FormResize(String FormUID,ItemEvent & pVal,Boolean&
BubbleEvent) in D:\sampleproject
Here is my coding for resizing the form
  Sub FormResize(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)
        Try
            Dim objForm As SAPbouiCOM.Form
            Dim objCopyFromBtn As Object
            Dim objBtn As SAPbouiCOM.Button
            objForm = objSBO_Application_ARINV.Forms.ActiveForm
            Select Case pVal.Before_Action
                Case False
                    If addFlag = True And bCMFlag = False And bBGFlag = False And bOAFlag = False And bCHFlag = False Then
               "<----In this line the error occurs------------------>"
                        objCopyFromBtn = objForm.Items.Item("10000330")
               "<----In this line the error occurs------------------>"
                        objForm.Freeze(True)
                        objForm.Items.Item("btnSaleQtn").Left = objCopyFromBtn.left - 5 - 200 '- 275
                        objForm.Items.Item("btnSaleQtn").Top = objCopyFromBtn.Top
                        objForm.Items.Item("txtQtnNo").Left = objForm.Items.Item("btnSaleQtn").Left - 5 - 100 '- 275
                        objForm.Items.Item("txtQtnNo").Top = objCopyFromBtn.Top
                        objForm.Items.Item("lblQtnNo").Left = objForm.Items.Item("txtQtnNo").Left - 5 - 100 '- 275
                        objForm.Items.Item("lblQtnNo").Top = objCopyFromBtn.Top
                        objForm.Freeze(False)
                    End If
                    bCMFlag = False
                    bBGFlag = False
                    bOAFlag = False
                    bCHFlag = False
            End Select
        Catch ex As Exception
            objSBO_Application_ARINV.MessageBox(ex.ToString)
        End Try
    End Sub
regards,
shangai.

okey. catch the Form_resize event for Form 133 (A/R invoice) and inside it, call FormResize procedure .
If pVal.FormType = "133" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_RESIZE And pVal.Before_Action = True Then
                Try
                    FormResize(pVal.FormType, pVal.EventType, pVal.FormTypeCount, BubbleEvent)
                Catch ex As Exception
                    MsgBox(ex.Message)
                End Try
            End If
you will  have to modify the procedure's receiving arguments accordingly.
within this procedure, as I mentioned before,
Sub FormResize(ByVal FormType As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByVal FormTypeCount As Integer, ByRef BubbleEvent As Boolean)
        Try
            Dim objForm As SAPbouiCOM.Form
            Dim objCopyFromBtn As Object
            Dim objBtn As SAPbouiCOM.Button
objForm = objSBO_Application_ARINV.Forms.GetForm(FormType, FormTypeCount)
            '---------rest of the code
        Catch ex As Exception
        End Try
    End Sub
GetFormByTypeAndCount is Deprecated so to be on safe side , use 'GetForm'. it does the same thing .
try this.
regards,
Binita
for your question about Count of the form, in SAP we can have multiple instance of standard forms and in that case, to uniquely identify each instance, it is better to refer to that form by not just its type but also with its count. so if you open three A/R invoice Form, you will have three form with Type 133 but with different count.
Edited by: Binita  Joshi on Aug 22, 2008 8:57 AM

Similar Messages

  • Why do I get an invalid handle error when debugging, on a call to ncReset?

    I am working with the example program obj2obj.c
    I have a PCI-CAN/2 card installed.
    I must call ncReset for *both* ports (CAN0 and CAN1), prior to any other commands or I will get a driver error (NC_ERR_DRIVER, Bxxx0002).
    This happens even if the program terminates properly, closing all handles, and I then remove the ncReset commands.
    Fine, I can live with the ncResets.
    However, if I then try and debug the program using Microsoft Visual C++, it immediately chokes on the second call to ncReset( "CAN1", 0 ) and complains about an invalid handle.
    If I add a status check to both of the ncResets and run the program from the DOS command line, I don't get any errors printed out
    so the calls are working fine just running the program.
    The driver updates listed do not appear to address this problem (1.4.1 uses LabView which I do not have and 1.4.2 is for Windows 2000)
    Why are the ncResets required in the first place?
    And why can't I single step through the second call to ncReset?
    Thanks in advance for your help.
    System details:
    PC running Windows NT 4.00.1381
    PCI-CAN/2 w/driver 1.4
    Microsoft Visual C++ 6.0 Professional

    bsat, thank you for helping out!
    I had tried using only one ncReset previously and was experiencing driver errors. I removed the second ncReset as you suggested and now it seems to work with only one. I cannot get it to fail like it was doing.
    However, at least one ncReset must be used or I get the following error:
    ERROR ncConfig CAN1: Driver error (qual=000b000)
    Press any key to continue
    I get this error even when the program terminates normally. For example:
    1) Build obj2obj with the ncReset command.
    2) Execute and allow to terminate normally.
    3) Edit obj2obj and remove ncReset command.
    4) Execute and the error message is displayed.
    Amazingly, I was also able to single step through most of the program this morning. I got the first three messages (of 10 total) before ge
    tting the error:
    Microsoft Visual C++
    First-chance exception in cctool.exe (NTDLL.DLL): 0xC0000008: Invalid Handle
    It seems to be more random than first appeared and perhaps more related to MSVC than to the NI-CAN card. Any insight?
    Also, having to include an ncReset is undesireable since I'd like to develop a CAN driver that could be called from multiple threads. I'd be very interested in your opinion on why I'm having trouble getting it to work without one.
    Thanks again for your help, it is greatly appreciated!

  • Why am I getting an "unsupported url" error when I click the link to find my apple id?

    When I click the link to change my password or to find my apple id, I get a blank page with only "unsupported url error".  I've tried on multiple devices and while I can log on with one apple ID, I can not get any of the links to change id or password or to find an  additonal password to work.  Any suggestions?

    When I click the link to change my password or to find my apple id, I get a blank page with only "unsupported url error".  I've tried on multiple devices and while I can log on with one apple ID, I can not get any of the links to change id or password or to find an  additonal password to work.  Any suggestions?

  • Error when back at the form root

    when i send a one format in the action form, and i back a
    this form show this message "The form data has expired, Please
    reload this page in your browser." how can do to recover the form
    with click the button reload the page?

    ok i find the solution, here show the solution:
    in the tag cfform add timeout="10" when 10 are the seconds
    that the form have the variables and the forms.
    this is the example
    <cfform name="decide" format="Flash"
    timeout="10">

  • Why am I getting an invalid signature error when I try updating my iphone 4?

    .

    yes, through Itunes.  the os hasn't been updated in awhile, if ever.  the phone is still running on 4.2.10  I can't update the new itunes, quick time, safari. 

  • When editing a PDF document with fillable forms, I get an unhandled exception error when scrolling past the first page

    The first error is "An unhandled Win32 exception occurred in Acrobat.exe [4644]"
    A debug window comes up after this and I open Visual Studio (not my area of expertise), and a couple more messages come up that may be helpful.
    Unhandled exception at 0x625628db in Acrobat.exe: 0xC0000005: Access violation reading location 0x00000044.
    Then
    [Frames below may be incorrect and/or missing, no symbols loaded for AcroForm.api]
    This is on Windows 7, running Acrobat Pro version 9.5.5
    No new updates are available either.
    Any ideas where to start? This happens with a couple of documents, but not all that are being edited.

    I am also getting the same error for fill-able PDFs. Were you able to find an answer/solution for this problem?
    I am using Acrobat X Pro on Windows 7
    Any help would be appreciated..

  • Invalid image error when saving to pdf

    I keep getting an invalid image error when saving a MS Publisher file as a pdf. Can anyone help with solving this issue?

    You need to provide system and version info and explain how you actualyl produce the PDF. Unless you use the Acrobat PDF printer, I don't see how Adobe software would be involved in any of this, as recent versions of MS Office products can save PDFs natively...
    Mylenium

  • Getting mandatory attribute validation error when the value is defaulted through customization

    Hi
    I am getting Mandatory attribute validation error when we default the value through customization.
    In the UI we have attribute called Last Name which is mandatory at EO level. Customer wanted to default Last name to some value, through page composer it is defaulted to some text and saved.
    When ever we open the page the the same value is defaulted as Last Name and appearing in the UI. But when we submit the page, EO level validation is failing. hence we are getting last name is missing.
    When i debug the code last name attribute value for EO is blank.
    In the UI the attribute last name is associated with bindings  --> #{bindings.lastname.inputvalue}
    The validation is failing if we remove the default binding associated with inputtext box.
    Can some body help what can be reason and is there any solution?
    Thanks,
    Praveen

    version 12.1.2
    I am struggling with same situation, I can't set the default value at business component because, the default value comes from a REST service at run time. In page A,  I have a field F1 that contains value from REST service. Page B has a database bound field F2, whose default value should come from F1 in Page A when a user navigates from Page A to Page B. If I set the value of F2 to be the value of F1, then it displays the value in the UI, but nothing gets submitted to EO and fails at commit.
    To make things difficult, here is my situation: Page A lives in bounded taskflow TF1, and Page B lives in bounded taskflow TF2. So I have created an input parameter P1 in TF 2, which carries over the value of F1 in Page A to Page B. When I am in Page B, I can successfully see the value of the taskflow input parameter P1. So, how do I  programmatically set the value of field F2 with the value of input parameter P1?
    I tried setting the F2.inputValue  in a method call M1 in  taskflow TF2 prior to Page B, but I get null pointer exception as it can't see field F2 yet.
    It seems like a simple thing to do, but I have spent a lot of time trying to make it work without any success.
    I would greatly appreciate any guidance.

  • Getting Invalid Directory error when saving mailbox edits

    I current have two accounts set up for two separate mailboxes (I'm using IMAP) that I had in my old AOL account. Anyway, when I try to edit one of my mailboxes through the Mailbox Behavior tab and try to save it, I get an Invalid Directory error saying that /Users/username/Library/Mail is being used by the other account and consequently, my edits cannot be saved. Any ideas?
    Curt

    Called Apple support. I basically had to recreate my mail accounts and that fixed the problem.

  • I am getting an error when resizing the Mac HD. I had a separate partition for Windows, but have deleted it and want to add the empty 50GB partition to my Mac HD.

    I am getting an error when resizing the Mac HD. I had a separate partition for Windows, but have deleted it and want to add the empty 50GB partition to my Mac HD.

    SparkchaserEd wrote:
    I am getting an error when resizing the Mac HD.
    What does this error say?

  • 'Invalid Currency' error when attempting to deliver order

    Hi Experts,
    I have a sales order which cannot be despatched or invoiced because whenever I try to convert the order into a delivery note or AR Invoice I get error message:
    Invalid Currency [Message 131-74]
    I have also tried adding a delivery note and the Copy From function with no success.
    The BP is set up to use All Currencies and the order is only in GBP.
    Thanks
    Jon

    What version of SAP Business One are you using?
    Have you had a look at SAP Note  # 1252328 ?
    Invalid currency error when copying a Sales Order
    Symptom
    You are managing an item with the FIFO valuation method. You have some open layers with zero cost. You create a Sales Order for this item and want to copy it to the next marketing document: a Delivery or an A/R Invoice. You receive the following error: Invalid currency [Message 131-74]
    Other terms
    OINM,FIFO, zero cost, sales order ,delivery ,invoice
    Reason and Prerequisites
    Application error
    example:
    1.Create item managed by FIFO.
    2.Goods Receipt for item ,quantity10, no price.
    3.Goods Receipt PO for item, quantity 10.price 5
    4.Sales Order for item ,quantity 11,
    5.e.g.copy it to Delivery or AR Invoice
    You will receive the error:Invalid Currency[Message 131-74]
    the same error message when you use the copy from function
    Solution
    SAP plans to fix this issue in a future patch. See the info.txt file on SAP Service Marketplace to verify when the fix was included.
    Apparently its affecting SAP Business One 2007 B Patch 13 and SAP Business One 2007 A Patch 47

  • Occasionally I get an "Invalid URL" message when I visit frequently used websites.

    When I visit some of my frequently visited websites, I sometimes get an "Invalid URL" error page. Then, about 15-20 minutes later, the website works fine. I tried going to Google Chrome and it works just fine. This is only happening in Firefox.

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • I am trying to install premier elements 11 that I purchased back in 2012 on a new machine with 8.1. I get "invalid serial number" when I enter the serial number I received with the original activation e-mail when I purchased the product, thanks!

    I am trying to install premier elements 11 that I purchased back in 2012 on a new machine with 8.1. I get "invalid serial number" when I enter the serial number I received with the original activation e-mail when I purchased the product, thanks!

    Error "The serial number is not valid for this product" | Creative Suite

  • Invalid Signature Error when I update in app store

    Hello,
    I uploaded the first version of my app to app store, then I tried to update my app to next version. When I choose my app file in "Upload Application" screen, I got error about invalid signature as below.
    +The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate.+
    Strange thing is I used exact same project configuration and machine when I uploaded the first one, but it will throw the error when I select the file.
    I tried these things:
    1. Create a new app id and provision file, and select the new provision file in target->Code Signing section
    2. Changing Bundle Version Number in .pinfo file.
    I'm trying some solutions people discussed here
    http://discussions.apple.com/thread.jspa?messageID=7469931&#7469931
    but I still get the same error message. Does anyone have advice for me?

    OK, this is what I got.
    Thank you for contacting the Apple Developer Connection regarding the issues you've
    experienced when attempting to upload your app to the App Store via iTunes Connect.
    We ask that you please use the following troubleshooting information to assist in re-attempting your upload:
    Your Info.plist must list your icon file with the proper .png extension. If your
    file is listed as .tiff, please update to .png
    Ensure that your icon file is the correct file size. The large Icon should be 512x512 and the
    small icon should be 57x57
    Ensure that you have a valid bundle identifier
    Detailed informaiton regarding the Upload page and uploading applications via iTunes Connect
    can be found in the iTunes Connect User Guide which is posted on the iTunes Connect site.
    If you continue to experience an issue wtih your upload, we ask that you please let us know so that we may further assist you. We would ask that you include the specific name of your application in your response to expedite this process.
    I concern about "valid bundle identifier" and my info.plist shows
    com.mycompany.${PRODUCT_NAME:identifier}
    but this value never changed since I uploaded the first version.
    Message was edited by: kiichi

  • After upgrading to iOS 7.0.6, I get intermittent "invalid SIM" error.

    After upgrading to iOS 7.0.6, I get intermittent "invalid SIM" error where the carrier strength (top left corner) should be.   Of course I loose all data and cellular connections at that time.   The only workaround is to power the device off and back on.   I have to do this at least once every 2 or 3 days since the upgrade to 7.0.6.   Anyone else having SIM related errors since the upgrade? 
    This happened once before when I first updated to iOS 7.   The next patch that Apple sent out resolved the issue, and I haven't seen it again until now.
    I hear 7.1 may be coming out as soon as next week.   Any chance this issue is resolved in that release?

    Thanks for the input.  That link shows steps that I've already taken.  I know it sounds weird, but I believe it may be software related.  Like I said before, this happened once before when I first upgraded to iOS7.   I lived with the issue, having to reboot the phone every couple of days, until the next update from Apple.  Once they sent out the next update, the problem went away. 
    If it is not software related, then it must be a corruption of the software download and installation.  I did it over the air.  Possibly downloading whatever release comes out next will fix it because it's a new installation.  The software itself may not have the fix in it, but the act of downloading and installing the new software may fix it.  Just a thought...

Maybe you are looking for

  • Lock up on recordings

    Anyone else had a problem with the Humax YouView box locking up when recording since the last update? It's difficult to reproduce the exact circumstances which cause the problem, but it always seems to occur when a second recording starts when there

  • AP Invoice interface - payment block

    Hi, Peoplesoft is our main system for finance. We are using SAP for logistics applications. I am building a interface to send AP invoice details from SAP to peoplesoft on a daily basis. This interface needs to pick up only those invoice that are free

  • Oversize A2 Paper Size value(stri​ng) for HP Designjet 500 Plus 24 (Paper Roll).

    Greetings. I am working at constructor's bureau. Recently we decided to automate drawing printing from SolidWorks program (it's a CAD software). I have written a code. SolidWorks API allows to choose for printing such settings as paper tray, scale, c

  • ECC6.0 t-code COOIS - how to get the "Profile" select-option list

    Hi  PP Gurus We are implementing ECC6.0 We upgraded one of the systems from 4.7 to ECC6.0 (and also kept data: documents, users profiles, variants,u2026etc). My question is regarding standard transaction COOIS. I do comparison in current 4.7 and ECC6

  • Does daisy chaining affect assessment results?

    I need to break a large Captivate 4 project file into smaller segments. If I daisy chain the resulting segments, what will happen to the assessment results from the first one or two segments. Currently, assessment results from all slides appear as a