Skip to Content

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

Error Binding Data !

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 !

Former Member
replied

Hello Hung,

Please Register a UDO for this UDT through:

Tools=>Configuration Tools=>Object Registration Wizard

Or refer to the pps to see how to register UDO <<C:\Program Files\SAP\SAP Business One SDK\Help\Creating a UDO of document type.pps>>

then set the UDO type to your form.

Kind Regards

-Yatsea

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