Showing results for 
Search instead for 
Did you mean: 

Link UDF to ChooseFromList

Former Member
0 Kudos


I Have a UDF on Inventory Form (form 150) and I need to show data from UserTable when i press tabKey

I´m trying but can´t success

Mi code is:

+ '1) Crear los CFL

AddCFL(oFormUDF, "cflFamilia", "Familia", False)

'2) Crear los uds

oFormUDF.DataSources.UserDataSources.Add("udsFamilia", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)

'3)Asignar cfl a los UDF

edit = oFormUDF.Items.Item("U_FGIFAM").Specific()

edit.DataBind.SetBound(True, "udsFamilia")

edit.ChooseFromListUID = "cflFamilia"+

My code get error on linet


and said tha not is an user defined item

what I wrong??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


Please check:

1) on step 2

If this control is linked to a table, it's wrong, because you are doing:

oFormUDF.DataSources.USERDATASOURCES.Add("udsFamilia", (...)

2) On step 3:

In your setbound you should have:

a) UserDataSource: oEdit.Setbound(True, "", "alias")

b) DBDataSource: oEDit.SetBound(True,"Table","U_ALIAS")

Hope this helps!


Message was edited by:

Christiano Pegorer

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry, I should clarify some things:

AddCFL: Function taht create a CFL

oformUDF: form -150

cflFamilia: Name of ChooseFromList

Familia: Name of UDO (UDO called Familia it exist in my SAP)

thanks in advanced