on 11-16-2006 12:53 AM
i try to call rfc using functin control but error "wdtfuncs error '800a03eb' Fail to call Remote Function Module" be popuped.
my code like that:
Set objSAPFunction = Server.CreateObject("SAP.Functions")
Set objSAPFunction.Connection = objSAPConn.NewConnection
IsLogOnSAP = False
If objSAPFunction.Connection.Logon(1, True) Then
IsLogOnSAP = True
'Upload Cancel Invoice
Set objFunc = objSAPFunction.Add("ZRFC_SD_BILLINGDOC_GET1")
Set objISGR1 = objFunc.exports("DOCUMENT")
Set objISGR2 = objFunc.exports("COMPANYCODE")
Set objISGR3 = objFunc.exports("YEAR")
set objOSGR1 = objFunc.imports("NETVALUE")
set objOSGR2 = objFunc.imports("CURRENCY")
set objOSGR3 = objFunc.imports("DATE")
set objOSGR4 = objFunc.imports("CUSTOMERCODE")
set objOSGR5 = objFunc.imports("CUSTOMERNAME")
objISGR1.value = cstr(doc)
objISGR2.value = cstr(companycode)
objISGR3.value = cstr(year)
bResult = objFunc.Call <<<<< Error
GetDataFromSAP = Array(cstr(objOSGR1),cstr(objOSGR2),cstr(InvDateFormat(objOSGR3)),cstr(objOSGR4),cstr(objOSGR5))
If IsLogOnSAP Then
objSAPFunction.Connection.Logoff
End If
End If
These code can run on the A machine, but do not run on the B machine. And both two machines have been installed SAP FrontEnd.
which problem about it?
To change all definition of parameters of the function from type to like may be solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I has resolved this problem by re-install the sap to new version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.