vb.net - SAP Catching Data with RFC_CALL_TRANSACTION RFC VB -


i become errorcode 1001, sap remote error?

i've googled alot didn't find anything. maybe knows whats problem here. im using sap 720.

system.runtime.interopservices.comexception (0x000003e9): sap remote function call bei microsoft.visualbasic.compilerservices.latebinding.lateget(object o, type objtype, string name, object[] args, string[] paramnames, boolean[] copyback) bei microsoft.visualbasic.compilerservices.newlatebinding.lateget(object instance, type type, string membername, object[] arguments, string[] argumentnames, type[] typearguments, boolean[] copyback) ...

here code:

    public functionctrl object     function login_call()     try          dim conn object         functionctrl = createobject("sap.functions")         conn = functionctrl.connection           conn.system = xxx         conn.applicationserver = xxx         conn.systemnumber = xxx         conn.client = "xxx"         conn.user = xxx         conn.password = xxx         conn.language = xxx         'needed frontend dialog         conn.rfcwithdialog = true          'log on logon dialog         if not conn.logon(0, 1)             dim wsshell             dim inttext integer             wsshell = createobject("wscript.shell")             inttext = wsshell.popup("logon not succesful." & vbcrlf & _                                "will closed automatically in 1 minute...", 60)             'conn = nothing             anmeldung_call = false             exit function         end if         anmeldung_call = true      catch ex exception          anmeldung_call = false     end try     me.text = datetime.now.tostring() end function  sub open_iw73()     dim bdctable object     dim rfccalltransaction object     dim messages object     dim count integer      'call transaction iw73     rfccalltransaction = functionctrl.add("rfc_call_transaction")     rfccalltransaction.exports("trancode") = "iw73"     rfccalltransaction.exports("updmode") = "s"     bdctable = rfccalltransaction.tables("bdctable")..... 

the error comes in line: "rfccalltransaction = functionctrl.add("rfc_call_transaction") "

thank you

i've had same error. people suggested different fixes using sap.functions.unicode. did me changing "rfc_call_transaction_using". i'm not sure of exact difference between these commands, careful that. far has been working me though.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -