How can I drill down to the invoice editor in SPRING

2

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.     

asked by anonymous 21.02.2018 / 00:06

1 answer

3

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
    
21.02.2018 / 00:10