Skip to Content
0

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

May 15, 2017 at 08:09 AM

46

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
ANKIT CHAUHAN
May 15, 2017 at 09:20 AM
1

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

Share
10 |10000 characters needed characters left characters exceeded