cancel
Showing results for 
Search instead for 
Did you mean: 

Total Of UDF in Matrix In Serial & Batch Number Window

former_member465537
Participant
0 Kudos

Hi Experts ,

I Made a UDF Chese In SERIAL & BATCH NUMBER OBJECT and i want to calculate total of this field...

IS it Possible ? If Possible then Guide Me how can i do it.....

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Veer,

For this you need to Loop Through the matrix and read the value in Each Cell at Every Row. And add that value to the field.

for (int k = 0; k <= oMatrix.Rows.Count; k++)

{

     //// Write your Log Here.

}

Because as far as I know, you can not use oColumn.ColumnSetting.SumType on the System Matrix,

also cannot use DataSources.

Hope it helps.

Thanks & Regards

Ankit Chauhan

former_member465537
Participant
0 Kudos

Hi,Ankit

  Thanks For reply

          int i;

            int Count = 0;

            SAPbouiCOM.Matrix m = new SAPbouiCOM.Matrix();

            for (i = 0; i < m.RowCount; i++)

            {

                SAPbouiCOM.EditText textbox = (SAPbouiCOM.EditText)m.Columns.Item("U_Chese").Cells.Item("i").Specific;

                Count = Count + Convert.ToInt32(textbox.Value);

            }

            EditText1.Value = Convert.ToString(Count);

>>>>

i tried this but its not work .

i am new in sap so help me how can i do it ...

regards,

VEER

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Veer,

Where you have initialized the matrix ?

SAPbouiCOM.Matrix m  = (SAPbouiCOM.Matrix)oForm.Items.Item("MatrixUID").Specific;



Now loop through your matrix and reply accordingly.



Hope it helps.



Thanks & Regards


Ankit Chauhan

Answers (2)

Answers (2)

former_member465537
Participant
0 Kudos

Hii,Pari

YES,... I am going through the samples but i confiused ..........

former_member465537
Participant
0 Kudos

Hi , Thank u For Reply

I  tried but i don't  Know how to start developing form would you like to Help Me ..

viralprajpati02@gmail.com

regards,

VEER

Former Member
0 Kudos

Hi Veer,

Did you go through the Samples that are provided by SAP . These samples are really very useful .

Thanks