cancel
Showing results for 
Search instead for 
Did you mean: 

How to open System Form? The Form don't have MenuItemID

Former Member
0 Kudos

I want to open 'Sales Orders' Form

Sales-A/R --> Delivery --> Copy From --> Sales Orders

The Form Type = 10016

I can't open Form via SBO_Application.ActiveMenuItem()

thanks for any reply

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Tony,

Please attach a CFL to the Button from which you want to open that form.

Use this code to create CFL

Dim oCFL As SAPbouiCOM.ChooseFromList

Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams

oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)

' Adding 2 CFL, one for the button and one for the edit text.

oCFLCreationParams.MultiSelection = False

oCFLCreationParams.ObjectType = "17"

oCFLCreationParams.UniqueID = "CFL1"

oCFL = oCFLs.Add(oCFLCreationParams)

' Adding Conditions to CFL1

oCons = oCFL.GetConditions()

oCon = oCons.Add()

oCon.Alias = "CardCode"

oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL

oCon.CondVal = "C001"

oCFL.SetConditions(oCons)

AND Then as usual you add the code of CFL in Item Event.the rest will be done by SBO

Hope it helps,if it helps please reward points

Regards

Vishnu

Former Member
0 Kudos

thank you!

Answers (0)