Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to add data in a matrix?

Hi forum!

I'm novice in programming with SAP, and I can't add data in a matrix.

This is my code

if ((pVal.FormTypeEx == "146") & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) & (pVal.BeforeAction == true))
            if (pVal.ItemUID == "112")
                string sMonto = "3";
                oItem = oForm.Items.Item("112");
                oItem.Enabled = true;
                oMatrix = ((SAPbouiCOM.Matrix)(oItem.Specific));
                oColumns = oMatrix.Columns;
                oColumn = oColumns.Item("51");
                oColumn.Editable = true;
                oCell = oColumn.Cells.Item(1);
                oEditText = ((SAPbouiCOM.EditText)(oCell.Specific));
                oEditText.Value = sMonto; 

Why this code is not valid?, What should do I for add a static data in a matrix?


Former Member

At last....

Ok, After you input your first credit card data, you add this code to the bottom of the previous code

oItem = oForm.Items.Item("55"); 
oMatrix = oItem.Specific; 

Then you repeat the previous code for inputing the second credit card data.

That should work, again please excuse me C syntax....

Try it and let me know.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question