Showing results for 
Search instead for 
Did you mean: 

Can I open Payment terms form ?

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


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...



Former Member
0 Kudos

Thanks Deepak It is working

Answers (0)