on 2021 Mar 17 1:39 PM
I have developed a sample web application which call BAPI function of S4Hana system available from SAP cal application library.
Following are the installation details:
1. A web Application running on SAP cloud foundry.
2. A RFC destination is set up connected to Cloud connector.
3. Another web application which is running on non-sap jvm.
4. SAP on-premise system is available from SAP cal library.
Problem:
What is working: Sample web application is calling BAPI function from a servlet. sample code below:
JCoDestination destination =JCoDestinationManager.getDestination(destinationName);
JCoRepository repo = destination.getRepository();
JCoFunction bapiFunction = repo.getFunction(functionName);
What is not working.
When same code is getting called from application which is deployed on same Cloud found account, This application uses AdoptJDK jvm. I am getting below error:
2021-03-12T18:07:37.73+0530 [APP/PROC/WEB/0] ERR {"msg":"Error while executing function:: BAPI_BUPA_CENTRAL_GETDETAIL","stacktrace":["com.sap.conn.jco.JCoException: Destination mx-cal does not exist","\tat com.sap.conn.jco.rt.DefaultDestinationManager.update(DefaultDestinationManager.java:216)","\tat com.sap.conn.jco.rt.DefaultDestinationManager.searchDestination(DefaultDestinationManager.java:432)","\tat com.sap.conn.jco.rt.DefaultDestinationManager.getDestinationInstance(DefaultDestinationManager.java:109)","\tat com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.java:56)","\tat sapbapiconnector.actions.CallBAPI.executeBAPI(CallBAPI.java:78)","\tat sapbapiconnector.actions.CallBAPI.executeAction(CallBAPI.java:54)","\t
Both of the applications are calling same destination using same code
JCoDestination destination =JCoDestinationManager.getDestination(destinationName); but second one not able to look up.
Will you please help
Request clarification before answering.
User | Count |
---|---|
91 | |
11 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.