on 11-29-2007 1:43 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
7 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.