Skip to Content

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

AddRow on Matrix does not Save


I am having a problem saving Rows from a Matrix with a User Defined Object. The following is the code I am using.

Private Sub applic_ItemEvent(ByVal FormID_Sap As_

String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef_ BubbleEvent As Boolean) Handles applic.ItemEvent

Dim FormUID1 As String

FormUID1 = FormID_Sap

If ((formuid1 = "MyForm") And (pVal.ItemUID = "AddRow")_

And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK)_

And (pVal.Before_Action = False)) Then

Dim oMatrix1 As SAPbouiCOM.Matrix

Dim SBOForm1 As SAPbouiCOM.Form

SBOForm1 = pApp.Forms.Item(formuid1)

oMatrix1 = SBOForm1.Items.Item("20").Specific


End If

I know AddRow has 2 parameters I can send it, but they all seem to give me the same result in trying the following.



Row 1 is being duplicated to Row 2 when I click on the button. It also does not save the data from Row 2.

BTW: I did try the Sample UDO Code for the MealOrder Sample and it gave me the same problem.

Thank you in Advance for any help.


Former Member

Helpful Answer

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