Skip to Content
0
Former Member
Oct 07, 2005 at 09:16 AM

Update User Defined Field using DBDataSource

128 Views

Hi All,

I'm trying to update the user defined field using the DBDataSource object. However an error occurred - "Item is not a User-Defined Field".

The code used is as follows:

Dim oDS as SAPbouiCOM.DBDataSource

Dim oForm as SAPbouiCOM.Form

Set oForm = SBO_Application.Forms.GetForm("139", 1)

Set oDS = oForm.DataSources.DBDataSources.Item("ORDR")

oDS.SetValue("U_Field1",oDS.Offset,"abc")

Please help.