Skip to Content
0
Former Member
Dec 04, 2006 at 11:53 AM

Matrix

28 Views

Hi All,

I want to select the ItemCode from the matrix in the Purchase Orders and also do a rowcount.

The row count remains 1 and I don't get the Item Code value from the Matrix.

Please find my code below.

PLEASE, CAN ANYBODY HELP???

Dim EditText As SAPbouiCOM.EditText

Dim oForm As SAPbouiCOM.Form

oForm = oUIApp.Forms.Item(FormUID)

Dim oMatrix As SAPbouiCOM.Matrix

oMatrix = oForm.Items.Item(38).Specific

Dim ItemCode As String

Dim count As Integer

Dim i As Integer

Dim colItem As SAPbouiCOM.Column

Count = oMatrix.RowCount

EditText = oMatrix.Columns.Item("ItemCode").Cells.Item(i).Specific

ItemCode = EditText.Value

oUIApp.MessageBox(ItemCode)