on 2010 Sep 28 11:09 PM
Hi Experts,
I am new to Webdynpro for Java and BW.
Currently I am working on an application which has a UI layer built using Webdynpro for Java, we have some business logic written in different Core Java package which we include as a jar file while building and running the Webdynpro application.
This application is interacting with the SAP BW system using JCo, my problem is that from UI my user is performing some action(button click) this triggers a process chain at the back end(BW system) for which I am using JCO classes and functions. If everything goes fine then its OK but if some error occurs in the process chain user does not receive any response from the backend(SAP BW system) as I am just triggering the process chain from the front end using the JCO's execute(FucntionName) method(asynchronous call).
I am not sure if there is any way by which I can receive some response from the SAP BW system(synchronous call) in case something goes wrong in that and user could see that response.
If anyone have some idea about this then please let know and provide me some example code for that as I am new to this technology and do not know much about it.
Thanks in advance.
Best Regards,
Bhupesh
Request clarification before answering.
When calling SAP BW system from Java / Third Party system,
If any failure, then JCo throws exception (com.sap.mw.jco.JCo$Exception)). You can get the exception and need to write some logic from Java side.
Check the available exception groups in http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/daea401675752ae10000000a155106/content.htm
Sample code and Logic is available in https://websmp208.sap-ag.de/~sapidb/011000358700000730362009D/SAPJCo_Doku_3.0_EN.pdf
Note:Inside the Function Module we can export some messages through Export Parameter even Sucess/Failure
Kanagaraja L
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.