PO_Receipts of Invoice Object

SOLVED

Hi Forum,

I am working on an import to PO Receipts of Invoice and I cannot get the PO_ReceiptsOfInvoiceDetal_bus to work.

Actually I've tried PO_Receipts_bus and I cannot get it to work.

I am Getting an error 200 and the LastErrorMsg is showing the following on the Lookup ….

'Get Objects
' Instantiate a Purchase Order Receipts business object
oSEC = oSS.nSetProgram(oSS.nLookupTask("PO_ReceiptOfInvoiceDetail_ui"))
If oSEC = 0 Then
    MsgBox (oSS.sLastErrorMsg & vbCrLf & "Quiting")
end if
Set o = oScript.NewObject("PO_ReceiptOfInvoiceDetail_bus", oSS)  <--- Error 200 on this line...
Any suggestions? … Am I using the correct Object ?
Regards,
Manuel