New Matrices on System Forms

Is it possible to create an additional matrix on a system form?  If so, how?  I would greatly appreciate a code sample for doing this.  Thank you.

hello Scott,
You need to catch the et_Form_Load event of your form, and then you can add the matrix the same way you add matrix on user form.
Public Sub Handle_SBO_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles oApplication.ItemEvent
If pVal.BeforeAction = False Then
  If pVal.FormTypeEx="FormType of the system form" then
    If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD Then
      Dim oFom as SAPbouiCOM.Form
      oForm = oApplication.Forms.Item(FormUID)
      Dim oItem As SAPbouiCOM.Item
      Dim oMatrix As SAPbouiCOM.Matrix
      Dim oColumns As SAPbouiCOM.Columns
      Dim oColumn As SAPbouiCOM.Column
      oItem = oForm.Items.Add("UMatrix", it_Matrix)
      oItem.Top=100
      oItem.Left=100
      oMatrix = oItem.Specific
      oColumns = oMatrix.Columns
      oColumn = oColumns.Add("#", it_EDIT)
      oColumn.TitleObject.Caption = "#"
      oColumn = oColumns.Add("A", it_EDIT)
      oColumn.TitleObject.Caption = "A"
      oColumn = oColumns.Add("B", it_EDIT)
      oColumn.TitleObject.Caption = "B"
    End if
  End if
end if
End Sub

Similar Messages

  • Matrices on System Forms

    When will we have the ability to add matrices to system forms?
    I have been asked to produce an activity management system as a tab on the Sales Opportunity screen with ticklers/alerts tied to the alert management screen to notify staff when to revisit the oppportunity.  This will be used to manage work associated with an opportunity both before and after the sale.  They also want template activities to apply to this management tab.  Therefore, I would like to create my own line-level data model and then implement the system with a matrix without having to recode all the functionality contained within and supporting the system Sales Opportunity screen.
    Maybe there is an alternative way to consider doing this.  Any ideas?  Or, am I stuck....?
    Scott

    In my testing, I was unable to add a new matrix to a system form and, once I re-read the UI API documentation, resigned myself to this limitation.  Maybe I shouldn't have?  Can you help me better understand the limits to what I "am" capable of doing?  This is a snippet from the UI API documentation ...
      RESTRICTIONS ON SYSTEM FORMS
      Form Object
        Restricted properties and methods: DataBrowser,
        SupportedModes, AutoManaged, EnableMenu and
        ResetMenuStatus
      Matrix Object
        You cannot control the selection mode for system
        Matrix object. The SelectionMode property will
        always return ms_NotSupported.
        Restricted methods SetLineData, SelectRow,
        LoadFromDataSource, FlushToDataSource.
      DBDataSource
        You cannot access a DBDataSource used by a
        system form.  You can add a DBDataSource only if
        the database table does not exist already in the
        system form's DataSources collection.
        Query method is not supported.
      Folder, OptionBtn, Column, CheckBox Objects
        You cannot change the value for ValOn/ValOff
        properties.
      Item Object
        You cannot change AffectsFormMode, Enabled,
        and Visible from False to True.
      ValidValues Collection
        You cannot add or remove values from the collection.
      Columns Collection
        You cannot add or remove a column from the
        collection.
    What were you able to do?  Would you send me some code as an example?  Thank you for your response!
    Kind Regards,
    Scott

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • I created new table in database and want to bind with system form

    Hi All,
    1) i created new table in database and want to bind with system form .
    2) How i bind this field to system form sale order where i added new folder tab in that i added some fields that fields i want to bind with database. when i click on the next ,previous ,first and last button
    bind value should change.
    Awaiting soon reply
    Rajkumar G.

    hi,
    try this
    Public Sub BindDataToForm()
            Dim oItem As SAPbouiCOM.Item
            Dim oEdit As SAPbouiCOM.EditText
            Dim oComboBox As SAPbouiCOM.ComboBox
            '// getting the matrix column by the UID
            'oItem = oForm.Items.Item("docname")
            'oComboBox = oItem.Specific
            'oComboBox.DataBind.SetBound(True, "OSRI", "BaseType")
            'oItem = oForm.Items.Item("docno")
            'oEdit = oItem.Specific
            'oEdit.DataBind.SetBound(True, "OSRI", "BaseEntry")
            oColumn = oColumns.Item("Code")
            'oColumn.DataBind.SetBound(True, "", "DSCardCode")
            oColumn.DataBind.SetBound(True, "OSRI", "ItemCode")
            oColumn = oColumns.Item("Serial")
            oColumn.DataBind.SetBound(True, "OSRI", "IntrSerial")
            Try
                oColumn = oColumns.Item("Inspection")
                oColumn.DataBind.SetBound(True, "OSRI", "U_Inspection")
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
            oColumn = oColumns.Item("Quality")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Quality")
            oColumn = oColumns.Item("Status")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Status")
            oColumn = oColumns.Item("Finish")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Finish")
            oColumn = oColumns.Item("Thickness")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Thickness")
            oColumn = oColumns.Item("uom")
            oColumn.DataBind.SetBound(True, "OSRI", "U_NetUOM")
            oColumn = oColumns.Item("length")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Length")
            oColumn = oColumns.Item("height")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Height")
            oColumn = oColumns.Item("sqf")
            oColumn.DataBind.SetBound(True, "OSRI", "U_sqf")
            oColumn = oColumns.Item("sqm")
            oColumn.DataBind.SetBound(True, "OSRI", "U_sqm")
        End Sub

  • I want add new column in matrix in "Inventory Transfer" Form (System Form)

    hai,
    i want to add new column in Matrix in "Inventory Transfer" Form (System Form)
    Is it possible or not?
    bye
    gopinath

    hai,
    i want coding how to add columns in the matrix ( system form)
    plz....
    bye
    gopi
    Edited by: Rui Pereira on Dec 23, 2008 4:45 PM

  • How to show system form with a new button

    Hi experts,
         I created a new button on the sales order system form, I need that the new button calls other system form, How can I show a system form with my new button?
    Thaks.
    César Lemus.

    Hi César,
    On the Item Pressed Event of the button, Write the code to show the other system form. The sample for this is as follows.
    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                          If pVal.ItemUID = "URButtonID"
                                    SBO_Appln.ActivateMenuItem("Menu ID of ur system form.")
                          EndIF
    Hope this is helpful. If yes reward points.
    Regards,
    Vasu Natari.

  • Resizing problems - system form

    Hi everyone,
    I am new at SBO SDK but 'm using the 2004 release.
    I've added five buttons and a Matrix to a System Form and thought everything was great, but later I realised I need to specify how much a matrix can resize in order to not get some part of it behind my buttons.
    I wish I could make these buttons move to the right as I resize the form.
    I've seen the SDK example called "UseMatrix" where there is a Text Edit item which can move as I resize but don't know how to do it. I also tried using the item property "Right justified" but didnt work.
    I hope anyone can help me.
    Thanks in advance,
    Percy.

    SBO does do some automatic placement/resizing of items when a form is resized.  Most items like buttons and edit texts automatically move and stay a fixed distance from the nearest corner.  Matrices normally stretch with the form.
    Its hard to tell exactly what you need to do without seeing your form, but there are a couple of things that might be of use to you:-
    - The columns themselves have a 'left' property.  You could use this to force the first column to stay at a certain size eg. sboMatrix.Columns(0).Width = 20
    - A matrix has an 'autoresizecolumns' method that can be called.  This should automatically make each column wide enough to view its contents, and introduce a scroll bar if the overall column widths are too big to view.
    John.

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

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

  • !0.5.8 How do I copy the 'system' form one internal Hard drive to an other (BY CD Packed up) Thank you

    !0.5.8 How do I copy the 'system' form one internal Hard drive to an other (BY CD Packed up)  I have tried but it will no show 'live' system folder - do and how can I bless it ? Thank you

    Carbon Copy Cloner will allow you to de-select directory trees, so you could use it to copy over everything EXCEPT the /Users directory tree.
    Mac OS X is NOT just the System Folder.  If you do not copy over the rest of Mac OS X, it will not boot.  So better to exclude Users and take everything else, then it is to try and pick and choose.
    The other approach is to install a New Mac OS X, and then copy over the stuff you want from the home folder(s) and reinstall any apps you want.

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

  • Matrix x System Form x UDO

    Hey all,
    I´m asking for some help to deal with the following:
    I want to show a new Matrix in a System Form.  The data is from a UDO (line data - detail).
    How should i do that ?  Can i use UDO methods ? Anyone can help me ?

    Hi Christiano,
    If you are modifying a System Form then you cannot use the UDO methods to save everything automatically. How you will add your matrix to the system form? Are you adding a new folder?
    If you want to use the UDO methods then you need to create a separate form linked to your UDO. In this case you can add a button to the system form opening your form.
    Hope it helps
    Trinidad.

  • 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

  • System form resizing problem

    Hi,
    I expanded the width of the Sales Quotation system form and move fields to the right to allow space for new fields in the centre.
    I used the oForm.Width to adjust this.
    If I load the form, expand to full screen, everyhting is in the right place and looks good. However, if i adjust the form dimensions slightly and then expand to full screen the form items, system and user defined, overlap or get lost under the central tab area etc etc. To recover I have to resize the form so both X and Y scroll bars appear, close the form, and then load the form so that it appears with its system minimum dimensions.
    Has anyone else experienced this? I also notice that another parameter for forms is oForm.Clientwidth, what is the difference as I can't make this work either???
    I can release my addon if someone wishes to try this and see what I am experiencing or I can upload photos.
    I think it just that the addon need to take care of dynamic form sizing - cater for resizing events?
    Any Ideas???

    Right, Iam in the middle of my new version but this is the snippet of code that causes the problem, if not clear from this then I'll email code out later.
    Private Sub oApp_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles oApp.ItemEvent
            If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.FormType = 149 And pVal.Before_Action = True Then
                Try
                    Dim oItem As SAPbouiCOM.Item
                    Dim oForm As SAPbouiCOM.Form
                    Dim oCombo As SAPbouiCOM.ComboBox
                    Dim oEdit As SAPbouiCOM.EditText
                    Dim oLabel As SAPbouiCOM.StaticText
                    Dim oXplaneItem As SAPbouiCOM.Item
                    Dim oYplaneItem As SAPbouiCOM.Item
                    Dim iUnitMove As Integer
                    Dim iCentralLocation As Integer
                    Dim iBottomCentralLoc As Integer
                    oForm = oApp.Forms.Item(FormUID)
                    'Constants
                    iCentralLocation = 75
                    iBottomCentralLoc = 40
                    iUnitMove = 350
                    'Add fields to Table for new Editbox fields
                    oForm.DataSources.DBDataSources.Add("OQUT")
                    'Rename "Owner" static text to "FSE"
                    oItem = oForm.Items.Item("230")
                    oLabel = oItem.Specific
                    oLabel.Caption = "FSE"
                    'Move Top RIght Fields to create space in middle for new date fields
                    oForm.Width = oForm.Width + iUnitMove
                    oForm.Items.Item("9").Left = oForm.Items.Item("9").Left + iUnitMove
                    oForm.Items.Item("88").Left = oForm.Items.Item("88").Left + iUnitMove
                    oForm.Items.Item("8").Left = oForm.Items.Item("8").Left + iUnitMove
                    oForm.Items.Item("60").Left = oForm.Items.Item("60").Left + iUnitMove
                    oForm.Items.Item("81").Left = oForm.Items.Item("81").Left + iUnitMove
                    oForm.Items.Item("11").Left = oForm.Items.Item("11").Left + iUnitMove
                    oForm.Items.Item("10").Left = oForm.Items.Item("10").Left + iUnitMove
                    oForm.Items.Item("86").Left = oForm.Items.Item("86").Left + iUnitMove
                    oForm.Items.Item("46").Left = oForm.Items.Item("46").Left + iUnitMove
                    'Move bottom right fields to create space in middle for new fields
                    oForm.Items.Item("23").Left = oForm.Items.Item("23").Left + iUnitMove
                    oForm.Items.Item("22").Left = oForm.Items.Item("22").Left + iUnitMove
                    oForm.Items.Item("25").Left = oForm.Items.Item("25").Left + iUnitMove
                    oForm.Items.Item("24").Left = oForm.Items.Item("24").Left + iUnitMove
                    oForm.Items.Item("283").Left = oForm.Items.Item("283").Left + iUnitMove
                    oForm.Items.Item("42").Left = oForm.Items.Item("42").Left + iUnitMove
                    oForm.Items.Item("90").Left = oForm.Items.Item("90").Left + iUnitMove
                    oForm.Items.Item("91").Left = oForm.Items.Item("91").Left + iUnitMove
                    oForm.Items.Item("89").Left = oForm.Items.Item("89").Left + iUnitMove
                    oForm.Items.Item("99").Left = oForm.Items.Item("99").Left + iUnitMove
                    oForm.Items.Item("27").Left = oForm.Items.Item("27").Left + iUnitMove
                    oForm.Items.Item("30").Left = oForm.Items.Item("30").Left + iUnitMove
                    oForm.Items.Item("29").Left = oForm.Items.Item("29").Left + iUnitMove
                    'Move "Copy From" & "Copy To" buttons
                    oForm.Items.Item("10000330").Left = oForm.Items.Item("10000330").Left + iUnitMove
                    oForm.Items.Item("10000329").Left = oForm.Items.Item("10000329").Left + iUnitMove
                    'Expand Grid in Contents Tab to fit form again
                    oForm.Items.Item("115").Width = oForm.Items.Item("115").Width + iUnitMove
                    oForm.Items.Item("116").Width = oForm.Items.Item("116").Width + iUnitMove
                    oForm.Items.Item("38").Width = oForm.Items.Item("38").Width + iUnitMove
                    oForm.Items.Item("118").Left = oForm.Items.Item("118").Left + iUnitMove
                    oForm.Items.Item("65").Left = oForm.Items.Item("65").Left + iUnitMove
                    oForm.Items.Item("75").Left = oForm.Items.Item("75").Left + iUnitMove
                    'Move Items in Logisitcs Tab
                    oForm.Items.Item("233").Left = oForm.Items.Item("233").Left + iUnitMove
                    oForm.Items.Item("223").Left = oForm.Items.Item("223").Left + iUnitMove
                    oForm.Items.Item("238").Left = oForm.Items.Item("238").Left + iUnitMove
                    oForm.Items.Item("224").Left = oForm.Items.Item("224").Left + iUnitMove
                    oForm.Items.Item("234").Left = oForm.Items.Item("234").Left + iUnitMove
                    oForm.Items.Item("234").LinkTo = "224"
                    'Move Items in accounting tab
                    oForm.Items.Item("156").Left = oForm.Items.Item("156").Left + iUnitMove
                    oForm.Items.Item("157").Left = oForm.Items.Item("157").Left + iUnitMove
                    oForm.Items.Item("119").Left = oForm.Items.Item("119").Left + iUnitMove
                    oForm.Items.Item("120").Left = oForm.Items.Item("120").Left + iUnitMove
                    oForm.Items.Item("124").Left = oForm.Items.Item("124").Left + iUnitMove
                    oForm.Items.Item("123").Left = oForm.Items.Item("123").Left + iUnitMove
                    oForm.Items.Item("135").Left = oForm.Items.Item("135").Left + iUnitMove
                    oForm.Items.Item("134").Left = oForm.Items.Item("134").Left + iUnitMove
                    'Hide system predicted closing date as picks 1 month later if not completed
                    oForm.Items.Item("12").Visible = False
                    oForm.Items.Item("13").Visible = False
               Catch ex As Exception
                    MsgBox(ex.Message)
                End Try
            End If
        End Sub
    If you try this in debug mode, you will still see the system forms items affected in the way I have described.
    Edited by: David Alexander on Oct 14, 2008 1:32 PM

  • New value in system Edittext

    HI!
    I use:
    SBO 2004C
    VB 6.0
    I have problem with input new value in system Item (Edittext).
    Modul: Banking ->Incoming Payments->Incoming Payments->Payment Means-> Cash-> G/L Account.
    This is link Editext field.
    I use this code:
    Private oBusinessForm As SAPbouiCOM.Form
    Set oBusinessForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType,pVal.FormTypeCount)
    kpkonto.Value = "100"
    I get message:
    Run-time error '-3006 (fffff442)'
    Form - Invalid Form Item
    Can You help me?
    regards
    Krzysztof Sala

    Try this
    Private oBusinessForm As SAPbouiCOM.Form
    Set oBusinessForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType,pVal.FormTypeCount)
    ''Initialize kpkonto item here as
    kpkonto=oBusinessForm.Items,Item("UID").specific
    kpkonto.Value = "100"
    Regards,
    Mahendra

Maybe you are looking for

  • How to send chr$(195) in Labview (MAX)

    I have an elderly Philips DMM that needs re-calibrating, using the GPIB commands.  I need to send it a character string starting with CHR$(195).  I have a GPIB-USB-HS interface and run Labview 9.  To get me going I have been using the Measurement and

  • Small network

    Probably not the best place for this post, but probably where I'll find the best people to answer my question. The problem... I wish to set up a very small network to use a printer and external drive with a wireless MacBook. without spending too much

  • Save Message as Mime problem

    I would like to save the current message as Mime from within code. I have tried using the ItemSaveMessage() Token, but keep getting an invalid parameter error. Do you have any ideas on what could be causing this, I have tried many different ways and

  • Events or attributes triggered by data coming from a data file

    Without using scripts, is there any way to have rectangles or textboxes act on values coming from a data file? If not, does anyone know or have some scripting suggestions to do that. For examplle if the value in a textbox was greater than 10 coming f

  • Unable to update to iOS 8.0 Error says - "The iphone MyIphone could not be updated. An unknown error occurred (3004) "

    Although i am able to connect to iTunes store, when i run Network Connectivity Tests in diagnostics in iTunes, it shows as follows - The latest version of the OS has been downloaded on my system but whenever I try to update, the error message pops up