Skip to Content
author's profile photo Former Member
Former Member

Access to matrix system item

Hi everybody,

I'm trying to access to an item (ItemCode field) in a system matrix (delivery notes lines). My code is:

oMat = oForm.Items.Item("38").Specific

strValor = oMat.Columns.Item(1).Cells.Item(pVal.Row).Specific.value

But I get an error, "Item - Invalid item", in the fisrt line (oMat = oForm.Items.Item("38").Specific)

What's wrong in my code????


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 03:41 PM


    i think the error is in the second line... you can't use "Specific.Value", so you must use an "EditText", try this:

    oEdit = oMat.Columns.Item(1).Cells.Item(pVal.row).Specific

    strValor = oEdit.Value

    Hope it works


    Fabio Salucci

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member



      Dim oMat As SAPbouiCOM.matrix

      Dim strValor as EditText

      Set oMat = frm.Items("38").Specific

      Set strValor = oMat.Columns(1).Cells.Item(pVal.Row).Specific

      'to access the value : strValor.String

      by the way this is for SBO 6.5....i'll be doing my first SDK for SBO 2004A tomorrow. tell me if this works.

      tell me if this works with you.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.