Writing to SAP from VB
Submitted by Anonymous on Tue, 2008-05-27 19:19.
Hi,
I have a problem when a try to write to SAP from VB, her is my code:
Set R3 = CreateObject("SAP.Functions")
Set fn = R3.Add("Z_BAPI_ZPTIME_CONFIRMATIONS")
Set orderno = fn.Exports("AUFNR")
orderno.Value = "51018700"
Set v_process = fn.Exports("PROCESS")
v_process.Value = "RUN"
p_result = fn.Call
When the program assign the first value the program stop and send the following message:
"Error 91: The type object variable is not assigned or established"
Can some help me with this issue.
Thanks
M. Roldán

Hello Mr. Roldán,you are
Hello Mr. Roldán,
you are obviously using DCOM Connector, not Rfc Connector. This support forum is for Rfc Connector, for questions about software delivered by SAP you are probably better off asking in SAP's own forum at sdn.sap.com.
Anyway, you might want to check out in your SAP system whether the function module Z_BAPI_ZPTIME_CONFIRMATIONS really exists and what its parameter names are.
kind regards,
C. Vigelius
Rfc Connector support