Skip to Content

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

CFL Conditions and Edit Text

Hi ,

in my addon SRF Form i have two Edit text box(item Group, Item)

with respect to item group(CFL) selection , i will change the CFL condition of item selection CFL. dyanmically.

first time its working fine. second time item CFL is Empty.

tihs is my sample code:

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then

If pVal.ItemUID = "item edit txt" And pVal.FormUID.StartsWith("FormUid") Then

Dim val As String = oForm.Items.Item("GrpEditid").Specific.value

Dim RsGrp As SAPbobsCOM.Recordset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)

RsGrp.DoQuery("Select ItmsGrpCod From .[OITB] ItmsGrpNam = '" & val & "'")

Dim oCFLs As SAPbouiCOM.ChooseFromListCollection = oForm.ChooseFromLists

oCFL = oCFLs.Item("CFL_3")

oCons = oForm.ChooseFromLists.Item("CFL_3").GetConditions

' oCons = oCFL.GetConditions()

oCon = oCons.Add()

oCon.Alias = "ItmsGrpCod"

oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL

oCon.CondVal = Integer.Parse(RsGrp.Fields.Item(0).Value)

oForm.ChooseFromLists.Item("CFL_3").SetConditions(oCons)

End if

am getting oCon.CondVal correctly every time..

But CFL is empty..

Any Suggestion??

regards,

Ganesh k

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