Skip to Content
author's profile photo
Former Member

Predefined Screen Choose From List

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 29, 2007 at 10:15 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 20, 2007 at 06:17 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 20, 2007 at 05:54 AM

    Hi ani,

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

    Regards,

    Lalit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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