Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 05:52 AM

    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"


    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



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.