cancel
Showing results for 
Search instead for 
Did you mean: 

Predefined Screen Choose From List

Former Member
0 Kudos

Hai To All,

Iam in Purchase Module i want to modify predefined screen "Goods Return" on that screen i added one field named Reason in grid. On that field i want to select the value from Choose From List but i cant add CFL.

If anyone had idea tell me.

Thanks,

Regards,

Anitha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi...

ur form u design or system form....

ur form means go to screen painter and create choose from list next

give corrrect object type.

u select to ur new item(field)give choose from list serial no.

Thanks...

Chiyan

Former Member
0 Kudos

Thanks Chiyan,

I got the answer for this.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi anitha...

You does not need to add any column in the Screen .. just add a column into RPD1 Database Table by DI API Code... and after that a column will be add automatically into the matrix then you need to get the item uid of that Column and use that code of choose from list

public void AddChooseFromList(SAPbouiCOM.Application oSboApplication, SAPbobsCOM.Company oCompany)

{

try

{

ChooseFromListCollection = oForm.ChooseFromLists;

SAPbouiCOM.Conditions oCons = new ConditionsClass();

oColumn = oMatrix.Columns.Item("10");

// 10 is item uid

AddChooseFromList(oColumn, "4", "ItemCode", false, oCons, oSboApplication);

// item code is the OITM field...

}

catch (Exception ex)

{

//

}

}

and Code for Choose from List ...

after this

if u have any probelm...

send me your code.. i will solved that

if u get help .. please give rewards points...

regards

deepak gaur

Former Member
0 Kudos

Hi ani,

Do u want to add a column in Matrix at Good Return Form.

Regards,

Lalit

Former Member
0 Kudos

hai lalit

i have added the column. on that i have to assign choose from list. How to assign Choose from list to that column by coding?

Former Member
0 Kudos

Hi,

U will try the following code for adding choose from list at matrix column.

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";

//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";

Regards,

Lalit