Skip to Content
0
Former Member
Jan 04, 2005 at 08:17 AM

DBDataSource binding and matrix

87 Views

Hello SBO programmers

It is the idea to fill up the field(s) of the business partner menu identified by debug info as follows:

Send to [Form=134 Item=178 Column=1 Row=1 Variable=14 CRD1,Address]

(Column=45,44,2 and so on ...)

As far as I know is, that an item of class matrix

has to be accessed with using datasources.

Now I have the idea, that the table CRD1 is

such a datasource.

{

Dim oForm As SAPbouiCOM.Form

Dim oDBDataSource As SAPbouiCOM.DBDataSource

Dim sNewValue, sActualValue As String

Dim i As Integer

oForm = SboAppl.Forms.GetFormByTypeAndCount(134, FormTypeCount)

oDBDataSource = oForm.DataSources.DBDataSources.Item("CRD1")

i = oDBDataSource.Size

i = i - 1

' with this statement the value "Send to " results

sActualValue = oDBDataSource.GetValue("Address", i)

' -> sActualValue == "Send to "

sNewValue = "Send to another address"

' <i>but this following statement is not executed, the program runs out</i>

oDBDataSource.SetValue("Address", i, sNewValue)

}

WHY is the address not overwritable ?

Is it the right way or must be choosed another way ?

Thank You very much for feedback.

Best regards

Guido Baumeler

IVM Engineering AG