cancel
Showing results for 
Search instead for 
Did you mean: 

Verifying Backend Connection

Former Member
0 Kudos

Hi,

I am developing a WebDynpro JAVA application to establish connection with a back end R/3 system and retrieve data from it to display it in a table. I used BAPI module.When I deploy and run the application I am not getting any output.

How Can I verify in the code whether connection is established with the server? Pls help me out.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lakshmi,

Since it is clear now that this problem is related to connection check below things

1)test jco destination ( test and ping)

2)you can use debugging abap , webdynpro

Regards,

Hemant

Award pts if helpful

Answers (2)

Answers (2)

sridhar_k2
Active Contributor
0 Kudos

Hi,

You can try this simple thing.

Give messageManager.reportSuccess("Test1"); before the execute and after the execute statement.

Even you can try with the size of result Node. Check this node size, only after comparing it with null.

if(wdContext().nodeResult() != null){

messageManager.reportSuccess("Size : "+wdContext().nodeResult().size());

}

Regards,

Sridhar

Former Member
0 Kudos

Ya,

Really good Idea,

could u plz tell me the exact procedure /code to set message manager.

Former Member
0 Kudos

Hi,

use,

wdComponentAPI.getMessageManager().reportSuccess("the size");

Regards,

Saravanan K

Former Member
0 Kudos

Thanks i used /*

wdComponentAPI.getMessageManager().reportException("exception :" + e,true);

*/

In my output is shows ,

exception :com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException

How to resolve these type of exception ?

Please Help me out ....

Former Member
0 Kudos

Hi

In the Content Administrator check your JCO connection by test connection.

And try it by restart the R/3 server

Kind regards

Mukesh

sridhar_k2
Active Contributor
0 Kudos

Hi Mukesh,

I have a clarification regarding testing of the JCO Connection.

As per the Flight Example to Access BAPI, i have given all the params in SLD Data Supplier in Visual Admin. But when i try to test CIMClient Test, i am getting "Failed to generate and test CIMOMClient".

Any one have idea, why it is failing? How about HTTP Settings in SLD Data Supplier?

<b>SLD Data Supplier - Params</b>

Host : Application Server

Port : 2454

and uid and Password.

Regards,

Sridhar

Former Member
0 Kudos

Hi

1.Check the output node size.

2.Get the Bapi message from return node.

3.catch the Exception after execution

Kind Regards

Mukesh