System Form BOM has property Menu = nothing always.

When system form BOM (Bill Of Material) is opening, i want add a menu with SAPbouiCOM.MenuCreationParams. But m_sboFrm.Menu is nothing, then m_sboFrm.Menu.AddEx get error.
Also during the use of the form, m_sboFrm.Menu is nothing.
Is it impossible to add a menu in form BOM?
' Menu
                Dim l_sboCreationPackage As SAPbouiCOM.MenuCreationParams
                l_sboCreationPackage = SboApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
                l_sboCreationPackage.Checked = False
                l_sboCreationPackage.Enabled = True
                l_sboCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                l_sboCreationPackage.UniqueID = mc_sSBO_MENU_ItemUpdateCost                 l_sboCreationPackage.String = "Aggiorna Costo del Finito"
'the next function get error, because m_sboFrm.Menu is nothing
      m_sboFrm.Menu.AddEx(l_sboCreationPackage)'<--Error
Note: iI use this code in other system form, and it is all ok.
Thanks, Andrea

Hi Andrea,
This is certainly because the "Goto" menu for the BOM is empty.
Did you try to add your menu through the "Goto" menu in the application object's menus collection?
Regards,
Frank

Similar Messages

  • Problem with AddRow() in custom matrix on System Form

    Hello all,
    I'm trying to add 1 row to a custom matrix on a system form (Sales Quotation).
    However I always get a RPC_E_SERVERFAULT exception when calling pMatrix.AddRow() and SBO crashes...
    My code is simple:
            [B1Listener(BoEventTypes.et_CLICK, false)]
            public virtual void OnAfterClick(ItemEvent pVal)
                Form pForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                // Add matrix line
                Matrix pMatrix = (Matrix) pForm.Items.Item("MATRIX").Specific;
                pMatrix.AddRow();
                // Set matrix line data
    The matrix shows ok in the system form, inside a new folder.
    What is the problem with my code?
    Is there any way to add rows to a custom matrix in a system form?
    This code runs ok if executed in a custom form...
    Thanks!
    Manuel Dias

    hi.
    R u facing any problem ...
    actually add row and del row both are same.
    in normal customization form and system form matrx...
    Any problem are u facing...

  • Is UniqueID form property really unique on all system forms?

    Hi all,
    We have an AddOn that controls matrix line changes on several system forms (Purchase, Sales, etc) to allow us detect article price changes made by user on matrix lines.
    The control that we have implemented is based on the assumption that the system form UniqueID property is really unique on all system forms opened by the user (he have an array where they key is based on Form.UniqueID to detect matrix line changes).
    It seems from our testes that this UniqueID is always unique across all system forms, so that when the user opens an existing standard document (sales order, invoice, etc), we always know if he has changed the price lines (event triggered at matrix level, were he set ArrayChanges[Form.UniqueID] = true)
    Is our assumption correct or it can happen that SBO internally reuses Form UniqueID?
    Thanks all,
    Manuel Dias

    Hi Manuel.
    You are correct. All system form's ID is unique.
    Regards,
    Vítor Vieira

  • Regarding Adobe form for development but the ADS always has a problem

    Hi,
    Currently we are using Adobe form for development but the ADS always has a problem in EC6 as below.
    Test Program: Version Information (for Analysis Only)
    System Error
    ERROR CODE: 100.101
    ERROR MESSAGE: SOAP Runtime exception: CSoapExceptionTransport : HTTP receive failed with exception communication_failure
    SOAP Framework error: SOAP Runtime Exception: CSoapExceptionTransport: HTTP receive failed with exception communication_failure(100.101).
    Would you pls help to figure it out?
    Thanks & Regards,
    Suneetha

    Hi,
    It seems that you ADS settings have not been maintained,
    check the note
    944221 Troubleshooting if problems occur in forms processing
    Hope this resloves your issue,if not revert back.
    Regards,
    Vamshi.

  • When I run an Utilities check on the HD. I always get a prompt-SUID System/Library/CoreS has been modified and will not be repaired. how can i access this to be repaired. Most files are corrupted by messages that they are one thing but should be another

    When I  run a system utilities check and select HD. i always get a prompt the the SUID System/Library/CoreS has been modified and will not be repaired. How can I access this file so that I may repair it? Left unrepaired . There are a lot of files that do not have the correct code. They are one thing but should be another

    Hello there, toestothenose.
    It seems that you may not have gotten the entire message into your thread here, but the following Knowledge Base article offers a good resource on which messages from Disk Utility's Repair Disk Permissions can be safely ignored:
    Mac OS X: Disk Utility's Repair Disk Permissions messages that you can safely ignore
    http://support.apple.com/kb/ts1448
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Disable Menu on System Form( like Purchase Order)

    Hi,
             I need to Change status of  Menu on System Form. Is this Possible?
    I want to disable Print Preview(Menu UID "519") And Print("520")  Menu on System Form. Please reply ASAP...
    Thnx & Warm reg
    Deepak Gaur.

    Deepak,
    tehre are 2 ways
    1. capture the menuevent for thsi and set bubble event to false
    2. directly set the icon inactive (enabled false)
    preview is pval.menuid = 519
    print is 520.
      Dim oMenuItem As SAPbouiCOM.MenuItem
    oMenuItem = SBO_Application.Menus.Item("519")
    omenuitem.enabled = false

  • When I select System Preferences in Apple menu, nothing happens. ?hat can I do?

    when I select System Preferences in Apple menu, nothing happens. What can I do?

    Try a PRAM reset:
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Opening system forms without menu

    Hi All,
    Does there exist code to open a system form, like the Production Order, without activating the menu item that calls it?  For example, I would like to open a production order form with a given instance?  The reason for this is that I need to open the form and then load it with a specific production order.  Because it is possible for there to be any number of production order forms open simultaneously at any given time, I need to know the exact form I had just opened in order to load it.
    Is this possible?
    Thanks,
    Mike

    Hi Mike,
    it's possible, I guess.
    But you have to the actual operation of opening form and finding production order by addon.
    You can use 'activate menuitem' clause, first.
    then you should enter the number of the production order which you want to open to the order number field in number field. (you can do it via handling UI items.) then use the 'click' method of the item number "1". it's generally possible. I did it sometimes.
    Hope this useful for you.

  • How to create add-on of a system form in sap b1 9.0?

    Hi all,
    I have a problem related to the creation of a system form add-on of sap b1 9.0.
    I can develop some projects in visual basic, but about sap b1 add-on, I know how to package files of to install (.ard and .exe files) and I also know how to register .ard file in sap b1 9.0, So I tried to register all projects found in SDK sample folder that was correct.
    I tried to do an example of project found in SDK Help Center.
    But the problem I have to day related to the creation of system form add-on.
    The steps I tried to do are:
    1. I opened SAP B1 Studio for Microsoft Visual Studio
    2. Right click my project and add the system form (Employee Master Data)
    3 Connection string I used in Command line arguments   0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
    4. I added one field (CFL of BPCode) to Employee Master Data.  I did n't add any reference because when I add UI API Vission 9.0 to system form or user form of sap b1 it gives errors in Menu.vb. I do know why.
    5. I converted in 32 bit and build my project
    6. I re_opened new visual studio 2010 for creating new project with SAP B1 AddOnInstaller.NET Wizard
    7. From here I did every thing according to the video of Bryan Gomez
    Creating and Registering SAP Add-on - YouTube
    8. I registered my .ard file
    9. But when I start my add-on it gives error (Add-on connection timed out)
    The questions I want to ask,
    1. If you are creating the add-on of system form Is there any other thing needed to do more than the above  I explained?.
    2. Is it necessary to go in SDK code when you are using the system form like that?.
    3. If it is necessary to add reference of UI API  in project, how to handle error occurs when we add that the reference to the project which is using a system form?.
    Please anyone who has an idea he/she can help me.

    Hi pallavi p,
    That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
    So let me give you the way you can try.
    1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
    2. Right click on your project
    3. Add new item
    4. Sap Business One
    5. System form (Employee master data) or user form
    6. Add
    And then if your form is opened
    7. Go to add the reference of UI API Version 9.0
    8. Check errors found in menu.vb (or in OutPut)
    So if it's possible try to solve that problem.
    Please anyone can help me.

  • How to register add-on of edited system form in sap b1 9.0?.

    Hi all,
    I have a problem in SAP b1 9.0.
    Actually I added one field of BPCode to Employee master data, so I want to register an add-on of that system form in SAP b1 9.0.
    When I create file of .ard as we watch it in video of 
    Bryan Gomez
    Creating and Registering SAP Add-on - YouTube     it will be created correctly, But the problem is when I register that the file of .ard it gives error (Cannot create a file when that file already exists). Again when I create a file of .ard of any other User form it gives the same error (Cannot create a file when that file already exists).
    But when I create and register the add-on of Hello World in Sample folder of SDK it will be registered correctly.
    How can I solve that problem.
    Anyone can help me please.

    Hi pallavi p,
    That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
    So let me give you the way you can try.
    1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
    2. Right click on your project
    3. Add new item
    4. Sap Business One
    5. System form (Employee master data) or user form
    6. Add
    And then if your form is opened
    7. Go to add the reference of UI API Version 9.0
    8. Check errors found in menu.vb (or in OutPut)
    So if it's possible try to solve that problem.
    Please anyone can help me.

  • Form Settings getting cleared for system form

    Hi All,
    I have added the code for setting editable=false for the following items in Updatemode and Ok mode.Then in add mode,i made the columns to editable = true .First time it is working fine.
    the next time, I got the error message as "item is not a user defined item" on ItemCodeCol.editable = true.Then i check the form settings, the Active field for the itemcode cleared.When i set to Active as checked and run my code,it is working fine.How to solve the issue and how to avoid the setting of the fields.
    This is my code :
    If oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
                    oSQItemCodeCol.Editable = True
                    oSQItemNameCol.Editable = True
                    oSQQtyCol.Editable = True
                    oSQWhsCodeCol.Editable = True
                ElseIf oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Or      oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE Then
                    oSQItemCodeCol.Editable = False
                    oSQItemNameCol.Editable = False
                    oSQQtyCol.Editable = False
                    oSQWhsCodeCol.Editable = False
                End If
    Thanx in advance
    Regards
    Mohana
    Edited by: Mohana Annadurai on Feb 20, 2009 5:28 AM

    Hi,
    This is not UDF in system form.That is , the itemcode,itemname,qty,warehouse field in the content tab of the sales quotation form.when i change the field to editable and noneditable,
    1)it is allowing to set the editable property to false and true for the first time.
    2) After adding the record,i navigate the record to check ,at that time,as per my code,in update mode,it is not allowing to edit.
    3)When i click add menu,and i chose customer, at that time it is not allowing to add a itemcode,becoz the itemcode field is disabled.
    4)when i check in form settings, in Table format, Active gets unchecked for the above fields.
    5)I want to avoid this changing of active in form settings.How to to this...
    Regards
    Mohana

  • My system disk icon has a question mark in it and does not open now

    my system disk icon has a question mark in it and does not open now
    and my devices name is gone when i click on FINDER, my favourites is there with the following listed under it-
    ALL MY FILES
    AIRDROP
    APPLICATIONS
    DESKTOP
    DOCUMENTS and under documents was the DEVICES word with my Macintosh under it, this is missing... what have i done

    Somehow you've managed to delete it.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2. Download it from the App Store to reinstall It's on your Purchases List* there.
    For older versions that have been installed from Disk you'll need these additional steps:
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 or later they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    *Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • How to add a Tab in Company Detail System Form

    Hi Experts
    I am making a new Tab in Company Detail System form In Accounting Tab after Excise tab. This is tree of Tabs. Accounting Tab has two Sub-Tabs General and Excise. Now this New Tab 'Export' will also be the sub-Tab of Accounting Tab. My code for inserting tab is given below
    If pVal.FormType = "136" Then
                        Dim sysItem As Item
                        Dim SysEdit As Item
                        Dim lbl As StaticText
                        Dim editText As EditText
                        Dim oFolder As Folder
                        sysItem = form.Items.Item("140002039")
                        oItem = form.Items.Add("ExportFD", BoFormItemTypes.it_FOLDER)
                        oItem.Left = sysItem.Left + sysItem.Width
                        oItem.Top = sysItem.Top
                        oItem.Width = sysItem.Width + 20
                        oItem.FromPane = 5
                        oItem.ToPane = 6
                        oFolder = oItem.Specific
                        oFolder.Caption = "Import/Export"
                        oFolder.GroupWith("140002039")
                        sysItem = form.Items.Item("140002040")
                        SysEdit = form.Items.Item("140002041")
                        oItem = form.Items.Add("LDrMfNo", BoFormItemTypes.it_STATIC)
                        oItem.Left = sysItem.Left
                        oItem.Top = sysItem.Top + 65
                        oItem.Width = 120
                        oItem.FromPane = 6
                        oItem.ToPane = 6
                        lbl = oItem.Specific
                        lbl.Caption = "Drug Manufacture Licence No."
                        oItem = form.Items.Add("EDrMfNo", BoFormItemTypes.it_EDIT)
                        oItem.Left = SysEdit.Left
                        oItem.Top = sysItem.Top + 65
                        oItem.Width = SysEdit.Width
                        oItem.FromPane = 6
                        oItem.ToPane = 6
                        editText = oItem.Specific
                        editText.DataBind.SetBound(True, "OADM", "U_DrMfcLNo")
    The tab is added properly It also show labels and  Edit boxes but when I select this tab General and Excise tab is disappeared.
    Plz suggest me what can be the problem
    Thanks
    Best Regards
    Jitender
    Edited by: Jitender Garhwal on Apr 5, 2010 6:28 AM

    Hello,
    Change the ToPane Property of  General and Excise  until your last panelevel (6?)
    The ToPane property of these items is less than your folders panelevel ! This is the problem.
    Regards,
    J

  • Error: Oracle Forms Designer has stopped working

    I have read a lot of different responses regarding this and related issues but none of the answers seem to be relative to my specific problem. Here is what I have done so far:
    a. I just finished loading Oracle 11g 64x enterprise on my laptop running windows 7. It loaded correctly and I was able to import my 10g data dump and set up my schema.
    b. I then installed the Oracle development suite: ds_windows_x86_101202_disk1 and disk2. There were some minor issues regarding compatibility but following the advise of one post, I checked the blocks in question and the software loaded fine.
    c. I also attempted to install the p5969392_10123_WINNT.zip file but it gave a message indicating that no updates applied. (I am not sure if this is the correct patch or not?)
    d. I also had to download and install the Sun SDK, v6.18.
    e. I also updated the ORACLE paths in the default.env and registry entries and tried different urls in the runtime preference block. Nothing helped and I stayed with the default.
    Oracle Forms seems to startup correctly and I am able to connect to the database with no problem. Although I did not build a new form completely, it appears that this would be no problem.
    The problem:
    The problem is that when I attempt to open a form that was previously developed in 10g on XP, I immediately get the "Oracle Forms Designer has stopped working" error and Forms Builder shuts down. I get the same error whether I attempt to open a library, menu, or form.
    I have tried changing the compatibility mode from XP, service pack 3 (the default after install) to XP, service pack 2 but it made no difference.
    If anyone has been able to work through this issue, please let me know how. Thanks

    Gauthier Ooms wrote:
    We've had similar problems in the past, but found a working solution (using this + other forums):
    1. Install Oracle DevSuite 10.1.2.0.2
    2. Install Patchset 5983622 to upgrade DevSuite to version 10.1.2.3 (this upgrade is needed in order to do step 3)
    3. Install Patchset 7047034 to fix the crashing problem in the Forms Builder. (installation instructions are provided in the patchset)Issue no 3
    from Patchset 7047034 readme file..
    3.1 Platforms and Components for Patch 7047034 for Oracle Database Release 10.1.0.5How this patchset goes with the form Builder?
    But according to THIS link.. It works ;)
    Hamid

  • Bubble Event and System Forms

    Hi together,
    I have a problem with using the BubbleEvent in combination with System-Form-Events:
    Target:
    If someone CLICK on the OK-Button in Systemform "134"
    (Business-Partners-Form), I want to stop the Form being closed.
    Concept:
    using the Item-Event "et_ITEM_PRESSED" and set the BubbleEvent-Flag to false.
    Sample-Code:
    If (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) And _
               (pVal.FormMode = SAPbouiCOM.BoFormMode.fm_OK_MODE) And _
               (pVal.FormTypeEx.Equals("134") = True) And _
               (pVal.ItemUID.Equals("1") = True) And _
               (pVal.BeforeAction = True) Then
                Try
                    BubbleEvent = False
                Catch ex As Exception
                    'check Errors
                End Try
            End If
    Problem and Test:
    Nevertheless the form is being closed. The BubbleEvent-Flag has no effect. As I read in other topics, the 2005 Environment only accept the Bubble-Event in BeforeAction.
    Three Events will be fired (Click on OK-Button):
    et_Click | beforeAction = true
    et_Click | beforeAction = false
    et_Item_pressed | beforeAction = true
    I have used the last Event (Item_pressed). Using the et_Click with beforeAction = true has also no effect.
    The events will always be used individually at the test, not combined.
    Maybe someone can resolve this problem...
    Best regards
    Jochen

    Strange. I implemented a very simple add-on with B1DE
    and added this listener:
        public class Button__134__1 : B1Item {
            public Button__134__1() {
                FormType = "134";
                ItemUID = "1";
            [B1Listener(BoEventTypes.et_ITEM_PRESSED, true)]
            public virtual bool OnBeforeItemPressed(ItemEvent pVal) {
                Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                Item item = form.Items.Item("1");
                Button button = ((Button)(item.Specific));
                // ADD YOUR ACTION CODE HERE ...
                return false;
    As you can read this listener set the bubble event to
    false for the button 1 in Form 134. The form cannot be
    closed, the event is handled correctly by the add-on. I am
    using 2005 SP1 but I guess it should be working the same
    for your release too.

Maybe you are looking for