Skip to Content

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

I wanna change DataTable to DBDataSource Is it possible?

I wanna change DataTable to DBDataSource Is it possible?

Here are example.

Dim DataTable01 As SAPbouiCOM.DataTable

Set DataTable01 = oForm.DataSources.DataTables("DataTable")

DataTable01.ExecuteQuery ("SELECT ItemCode,ItemName FROM OITM")

Call oMat1.Columns("ItemCode").DataBind.Bind("DataTable", "ItemCode")

Call oMat1.Columns("ItemName").DataBind.Bind("DataTable", "ItemName")

oMat1.LoadFromDataSource

in here, Data is loaded

field of itemcode is binded datatable but i wanna change to dbdatasource becaseof udo

so i tried this code

Call oMat1.Columns("ItemCode").DataBind.SetBound(True, "OITM", "ItemCode")

Call oMat1.Columns("ItemCode").DataBind.SetBound(True, "OITM", "ItemName")

but there are error "Matrix - Line Exist"

is'nt is possible?

Former Member
Former Member replied

Hi,

Its not possible.

Regards,

Siva

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