Good evening.
Following my previous question about the drill-down for the STP module, I would like help to be able to drill-down to a sales invoice in ERP PRIMAVERA 9. I could not find any help from PKB.
Good evening.
Following my previous question about the drill-down for the STP module, I would like help to be able to drill-down to a sales invoice in ERP PRIMAVERA 9. I could not find any help from PKB.
Good evening
You can do this using the following code.
Private Sub DrillDownDocumento()
Dim objCampoDrillDown As StdBESqlCampoDrillDown
Dim objParam As StdBEValoresStr
Set objCampoDrillDown = New StdBESqlCampoDrillDown
With objCampoDrillDown
.ModuloNotificado = "GCP"
.Tipo = tddlEventoAplicacao 'Necessita referência para StdBESql900.dll
.Evento = "GCP_EditarDocumento"
End With
Set objParam = New StdBEValoresStr
With objParam
.InsereNovo "Modulo", "V"
.InsereNovo "Filial", "000"
.InsereNovo "Tipodoc", "FA"
.InsereNovo "Serie", "A"
.InsereNovo "NumDocInt", 22
End With
PSO.DrillDownLista objCampoDrillDown, objParam
Set objCampoDrillDown = Nothing
Set objParam = Nothing
End Sub