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

Can I open Payment terms form ?

Hello friends,

I want to add new payment terms through my user defined form

but how can I open the form because this form is not associated with menu item

so i cannot use SBOApplication.ActivatemenuItem("") function

Note:The payment term form can be opened via purchase order form after choosing define new.

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 Sep 20, 2007 at 12:03 PM


    You can use choose from list for payment terms...

    for this u have to use document object of payment terms

    that is

    CTG 40 Payment terms types

    and use this code

    For this you have to use choose from list method.. this is the sample of code... and set this code for payemnt terms object..

    SAPbouiCOM.ChooseFromListCollection oCFLs = null;

    SAPbouiCOM.Conditions oCons = null;

    SAPbouiCOM.Condition oCon = null;

    oCFLs = oForm.ChooseFromLists;

    SAPbouiCOM.ChooseFromList oCFL = null;

    SAPbouiCOM.ChooseFromListCreationParams oCFLCreationParams = null;

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

    oCFLCreationParams.MultiSelection = false;

    oCFLCreationParams.ObjectType = "4";

    /// here use have to use object type="40" for payemnts types

    //Object type="4" for ItemMaster Data

    oCFLCreationParams.UniqueID = "CFL1";

    oCFL = oCFLs.Add( oCFLCreationParams );

    //Add Column to user data source and then assign the CFL UID to the column.

    oColumn.ChooseFromListUID = "CFL1";

    if u r facing again problem feel free to ask...and

    if get help... please give rewards 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.