Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

get street address from Business Partner (Matrix problem)


I want to get the street value (address) in Business Partner, that is just entered by a user (but not yet saved), because I have to do some comparison before it's saved.

Here is the system info for street in Business Partner:

Item: 178

Columm: 2

Row: 1

And, here is my code (VB):

Dim mtx As SAPbouiCOM.Matrix = SBOapp.Forms.Item(pVal.FormUID).Items.Item("178").Specific
Dim street As String = mtx.Columns.Item("2").Cells.Item("1").Specific.ToString

As the program executes the second line (street As String...), the following error comes up:


On part Cells.Item(), I have tried with 0 and pVal.Row, both don't work.

Does anyone have a clue? Really appreciate for any hints! Thanks!

Former Member
Former Member replied


try this:

Dim mtx As SAPbouiCOM.Matrix = (SAPbouiCOM.Matrix)SBOapp.Forms.Item(pVal.FormUID).Items.Item("178").Specific

Dim street As String = ((SAPbouiCOM.EditText)mtx.Columns.Item("2").Cells.Item(1).Specific).ToString


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question