cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when call rfc using function control

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

To change all definition of parameters of the function from type to like may be solution.

Former Member
0 Kudos

I has resolved this problem by re-install the sap to new version.