Skip to Content
avatar image
Former Member

How to get cell from ChooseFromList in SAP?

HI, I want to get any data from ChoosefromList in SAP. I drag ChooseFromList and DT from toolbox and join them to my Matrix which was added by me from ToolBox. In running time choosefromlist appears but when I select any data it doesn't add to my Matrix. How can I solve it? Thank you

img1.png (14.1 kB)
img3.png (20.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 15, 2017 at 09:57 AM

    Hi,

    You need to write the CHOOSE_FROM_LIST Event for the same as below:

    SAPbouiCOM.ChooseFromListEvent cflevent = (SAPbouiCOM.ChooseFromListEvent)pVal;
    SAPbouiCOM.ChooseFromList oCFLEvento = default(SAPbouiCOM.ChooseFromList);
    string strUid = cflevent.ChooseFromListUID;
    oCFLEvento = this.m_SBO_Form.ChooseFromLists.Item(strUid);
    SAPbouiCOM.DataTable oDataTable = cflevent.SelectedObjects;
    SAPbobsCOM.Recordset oRecSet = (SAPbobsCOM.Recordset)SBO_Company.GetBusinessObject(BoObjectTypes.BoRecordset);
    
    
    if (oDataTable == null)
    {
        m_SBO_Form.Freeze(false);
        return;
    }
    for (i = 0; i <= oDataTable.Rows.Count - 1; i++)
    {
        string ItemCode = oDataTable.GetValue("ItemCode", i).ToString();
    }

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 15, 2017 at 11:38 AM

    Friend Thank you very much I will check now

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 15, 2017 at 11:43 AM

    Friend I am sorry what is it?

    this.m_SBO_Form
    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      m_SBO_Form is the form that is being referenced or the form on which you want to perform an action. For you it can be anything like oForm, SBO_Form etc.

      Kind regards,

      ANKIT CHAUHAN

      SAP SME Support