Skip to Content

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

create master matrix form

HI,

IS IT POSSIBLE TO CREATE A MASTER FORM HAVING A MATRIX LIKE PURCHASE ORDER WHERE ITEM DETAILS CAN BE ENTERED ?

AND WHEN I CREATE A MATRIX, ROW CAN'T BE SELECTED. I WROTE CODE AS FOLLOWS WHEN MATRIX DEFINED-------

'//***************************

'// Adding a Matrix item

'//***************************

oItem = oForm.Items.Add("Matrix1", SAPbouiCOM.BoFormItemTypes.it_MATRIX)

oItem.Left = 5

oItem.Width = 550 '350

oItem.Top = 80

oItem.Height = 320 '150

oMatrix = oItem.Specific

oMatrix.SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single

oColumns = oMatrix.Columns

Former Member
Former Member replied

Subrata,

Did i get u r not i dont knw. I think u want to add the data's from matrix to database.

For that u have to do is

If it is Predefined Screen u have to write in FormDataEvent.

If u add any fields and add to database mean u write as follows

If (BusinessObjectInfo.FormTypeEx.Equals("141")) And ((BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD) Or (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE)) And (BusinessObjectInfo.ActionSuccess = True) Then

Try

BubbleEvent = False

Dim Doc As SAPbobsCOM.Documents

Doc = com.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)

Doc.Browser.GetByKeys(BusinessObjectInfo.ObjectKey)

Doc.UserFields.Fields.Item("U_Gpno").Value = CStr(API_Frm.DataSources.UserDataSources.Item("grno").Value)

Doc.Update()

BubbleEvent = True

Catch ex As Exception

app.MessageBox(ex.Message)

End Try

End If

Here instead of using oPurchaseInvoice u use the Purchase Order

If this helps give reward points,

Regards,

Anitha

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