Skip to Content
0
Former Member
Oct 21, 2008 at 04:05 AM

Error Binding Data !

383 Views

Hi al,

I have a scenario, and hope u help:

I created a table: Table name: tblIncentive, Object: Document

I use UDF to create the field for that table: DocEntry, DocNum, etc., U_level1, U_Level2, U_Level3. (The fields of tblIncentive)

And then,

I created a form and binding data for the fields

Example: Binding for U_Level1 field

oItem = oForm.Items.Add("txtLevel1", SAPbouiCOM.BoFormItemTypes.it_EDIT)

oItem.Left = 65

oItem.Width = 148

oItem.Top = 60

oItem.Height = 14

oItem.LinkTo = "lblLevel1"

oEditText = oItem.Specific

oEditText.DataBind.SetBound(True, "@TBLINCENTIVE", "U_Level1")

But its error:

The message: table not found [131-183]

System.Runtime.InteropServices.COMException was unhandled

ErrorCode=-2004

Message="Table not found [131-183]"

Source=""

StackTrace:

at SAPbouiCOM.DataBindClass.SetBound(Boolean Bound, String TableName, String Alias)

at AddTextbox.AddComponents.CreateForm() in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\AddTextbox\AddTextbox\AddComponents.vb:line 395

at AddTextbox.AddComponents.SetApplication() in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\AddTextbox\AddTextbox\AddComponents.vb:line 19

at AddTextbox.AddComponents..ctor() in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\AddTextbox\AddTextbox\AddComponents.vb:line 22

at AddTextbox.Main.Main() in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\AddTextbox\AddTextbox\Main.vb:line 6

at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)

at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

Plz help me !