cancel
Showing results for 
Search instead for 
Did you mean: 

Databind in User Table

Former Member
0 Kudos

When using a user table in the "DataBind" does not come any records. Only in SAP's own tables. What do I do? Here my code.

odbDataSource = oForm.DataSources.DBDataSources.Add("@TB_USER");

oNewItem = oForm.Items.Add("txt_edit", SAPbouiCOM.BoFormItemTypes.it_EDIT);

oNewItem.Top = oItem.Top + 35;

oNewItem.Height = 17;

oNewItem.Width = 80;

oNewItem.Left = 25;

oNewItem.FromPane = 10;

oNewItem.ToPane = 10;

oEditItem = ((SAPbouiCOM.EditText)(oNewItem.Specific));

oEditItem.DataBind.SetBound(true, "@TB_USER", "column_user");

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If You are Using UDT Then you can insert data through coding by using the Insert statement

If You are Using UDO Then Sap Will Handle The Add functionality if ur fields is bind to udo

Thanks

Shafi

Former Member
0 Kudos

I do not want to add data. I want to show in my field (TextBox) registration database.

Former Member
0 Kudos

Hi Harley,

You have added the DBDataSource, but you haven't called the Query method to fill it.

Regards,

Cristian Rivero

Former Member
0 Kudos

With the SAP tables, it is not necessary to call a query method to fill in, because with user tables need to do this?

Former Member
0 Kudos

Hi

Try with this change in your code

oEditItem.DataBind.SetBound(true, "@TB_USER", "U_column_user");

Regards

Vivek

Former Member
0 Kudos

Even including the "U" in the name of the column, it does not work.