cancel
Showing results for 
Search instead for 
Did you mean: 

getting jco details using webdynpro

Private_Member_14913
Contributor
0 Kudos

Hi ,

I am making rfc call from webdynpro via jco , so how can i get the jco details like the backend system name, client number etc details using the webdynpro.

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

>

> Hi ,

>

> I am making rfc call from webdynpro via jco , so how can i get the jco details like the backend system name, client number etc details using the webdynpro.

>

> Thanks.

Hello Sameer,

Is your query still not answered?

Regards,

Anagha

Private_Member_14913
Contributor
0 Kudos

Hi Anagha,

Not yet, still i am getting the nullpointer exception.

I have both jco's metadata,modeldata configured correctly, i tried with both but still getting exception with the above code.

Thanks

Former Member
0 Kudos

Hi,

Following is the code


try {
		IWDJCOClientConnection jConnection = WDSystemLandscape.getJCOClientConnection("<Name of the JCO>");
		jConnection.getClient();
		jConnection.getClientName();
		jConnection.getMessageServer();
		jConnection.getApplicationServer();
	} catch (WDSystemLandscapeException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}

Regards

Ayyapparaj

Private_Member_14913
Contributor
0 Kudos

Thank you Ayyapparaj, I tried with both the metada and modeldata jco names its giving me

giving me java.lang.NullPointerException .

try {

IWDJCOClientConnection jConnection = WDSystemLandscape.getJCOClientConnection("WD_MODELDATA_DEST");

String client= jConnection.getClient().toString();

String clientname= jConnection.getClientName().toString();

String ms= jConnection.getMessageServer().toString();

String as= jConnection.getApplicationServer().toString();

wdContext.currentContextElement().setClient("client");

wdContext.currentContextElement().setClientname("clientname");

// wdContext.currentContextElement().setMsgserver(ms);

// wdContext.currentContextElement().setAppserver(as);

} catch (WDSystemLandscapeException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

Thanks.

Former Member
0 Kudos

Sameer,

are you sure WD_MODELDATA_DEST is configured and able to ping,test successfully from webdynpro content administrator

Thanks

Bala Duvvuri

Former Member
0 Kudos

Hi,

There is something called JCO APIs, which could be applicable to your req, check -

Regards,

Anagha

Private_Member_14913
Contributor
0 Kudos

Thanks Anagah,

Do you know which class will return me the back end system name in webdynpro using this API.

Regards.

Former Member
0 Kudos

Not sure sameer, perhaps an SDN search would help you.