Hi experts,
I have added a CFL in my matrix column to choose A/R invoice "DocNum".
Can someone show me where i do the error in this code.
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
Dim oEdit As SAPbouiCOM.Column
Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent
oCFLEvento = pVal
Dim sCFL_ID As String
sCFL_ID = oCFLEvento.ChooseFromListUID
Dim oCFL As SAPbouiCOM.ChooseFromList
oCFL = oForm.ChooseFromLists.Item(sCFL_ID)
If oCFLEvento.BeforeAction = False Then
Dim oDataTable As SAPbouiCOM.DataTable = oCFLEvento.SelectedObjects
'Dim val As String
Try
With oForm.DataSources.DBDataSources.Item("@FTACT")
.SetValue("U_Fact", .Offset, oDataTable.GetValue(0, 0))
End With
Catch ex As Exception
End Try
If (pVal.ItemUID = "mtx_13") And (pVal.ColUID = "V_2") Then
Try
oEdit = oMatrix2.Columns.Item("V_2")
oEdit.Value = oDataTable.GetValue(0, 0)
Catch ex As Exception
End Try
End If
End If
End If
Regards.