Skip to Content
0
Mar 25, 2010 at 11:39 AM

ChooseFromLists doesn't work with service calls (FormId 60110)

32 Views

Hi,

I use this code for every marketing document and for the activities. In all Forms it works but not in the service calls. What is going wrong?

best regards

Horst

If ev.FormType = 60110 And ev.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then

If ev.ItemUID = "14" Then

If ev.InnerEvent And ev.BeforeAction = True Then

BubbleEvent = False

oForm = SBO_Application.Forms.Item(FormUID)

oCFL = oForm.ChooseFromLists.Item("2")

oCFL.SetConditions(Nothing)

oCons = New SAPbouiCOM.Conditions

oCons = oCFL.GetConditions()

If 0 = oCons.Count Then

oCon = oCons.Add()

oCon.Alias = "SlpCode"

oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL

oCon.CondVal = oSales

oCFL.SetConditions(oCons)

End If

BubbleEvent = True

End If

End If

End If