Skip to Content
avatar image
Former Member

How to multiply data of two columns for third column in Matrix?

multiply data of two columns for third column in Matrix in sap b1

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 15, 2017 at 09:20 AM

    Hi,

    It can be done like this:

    SAPbouiCOM.EditText oEditText1 = (SAPbouiCOM.EditText)mtx_1.Columns.Item("col_1").Cells.Item(1).Specific;
    SAPbouiCOM.EditText oEditText2 = (SAPbouiCOM.EditText)mtx_1.Columns.Item("col_2").Cells.Item(1).Specific;
    
    double value1 = Convert.ToDouble(oEditText1.Value);
    double value2 = Convert.ToDouble(oEditText2.Value);
    double value3 = value1*value2
    
    SAPbouiCOM.EditText oEditTex3 = (SAPbouiCOM.EditText)mtx_1.Columns.Item("col_3").Cells.Item(1).Specific;
    oEditText3.Value= value3.ToString();
    

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded