Automating a Web Service Login for SAP Business Objects in VBA -
is possible automate login sap business objects web services using analysis microsoft excel com add-in in excel? when run code, presented below "logon sap businessobjects bi platform" window requiring user manually enter web services credentials (note: these not same sap credentials). ideally, able set fields (user, password, web service url, system, , authentication) without user interaction.
i attempting automate refresh of excel workbooks connected sap business objects using vba code. reviewing developer documentation available on sap (see here), able automate commands. there command "saplogon", able provide sap logon credentials, not web service ones.
a sample of code below:
'refresh dashboard lresult = application.run("sapexecutecommand", "pausevariablesubmit", "off") lresult = application.run("sapsetrefreshbehaviour", "on") lresult = application.run("sapexecutecommand", "refresh") if lresult = 0 'refresh failed. exit error. strmsg = "unable retrieve variables or refresh data; script exit. please close excel, open new instance of analysis microsoft excel, , try again." logmsg strmsg msgbox strmsg goto exit_updatedashboard end if
prior executing block of code, hoping automate user login. have extensively researched , cannot find examples of automating web service login through vba. of links i've tried far are:
i don't think it's possible since provided libraries connect web services .net , java. i've tried build soap envelops wsdl, never managed make work. it's relatively easy use libraries sdk. once built addin excel in cshap manage , refresh reports directly excel: https://code.google.com/archive/p/bo-utils/
Comments
Post a Comment