Skip to Content
author's profile photo
Former Member

UI :Error binding user defined field when binding to matrix


I have a Lookup consisting of matrix. I have a user defined Table @NEW. I added a DBDataSource to @NEW table


But when the User defined table is EMPTY, there seems to be error when binding the form items between the requested DB table field and the item.

oColumn.DataBind.SetBound(True, "@NEW", "U_CodeNo")

I am not able to proceed after the above line.But the same does not happen when i use standard SAP table.

Pls help me.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Jun 29, 2004 at 11:39 AM

    HI Mina:

    After creating the matrix u have to bind the data to ur matrix there is a way to do that:

    Public Sub BindDataToForm()

    Dim oMatrix As SAPbouiCOM.Matrix

    Dim oColumns As SAPbouiCOM.Columns

    Dim oColumn As SAPbouiCOM.Column

    Set oMatrix = oForm.Items.Item("Matrix1").Specific

    Set oColumns = oMatrix.Columns

    Set oColumn = oColumns.Item("CodeNo")

    oColumn.DataBind.SetBound True, "@New", "U_CodeNo"

    Set oColumn = oColumns.Item("CodeNo2")

    oColumn.DataBind.SetBound True, "@New", "U_CodeNo2"

    Set oColumn = oColumns.Item("CodeNo3")

    oColumn.DataBind.SetBound True, "@New", "U_CodeNo3"

    End Sub

    Doping this u set to each column the data u want froma your user table.

    I hope this was your question.


    Add comment
    10|10000 characters needed characters exceeded