cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro JCO Connection Object

Former Member
0 Kudos

Hello,

I have a Webdynpro Application with a View.

In the View I call a RFC-Function at the R3 System.

Now I want Debug the ABAP-Coding in the RFC-Function.

Do anyone know how I get the JCO Connection Object from a Model Class ?

I've checked this:

wdContext.nodeEqui().getCurrentElement().model();

It doesn't work,.....

I want set the ABAP debuging ON with the Methode setAbapDebug(true)

Thanks

Mike

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Mike,

wdContext.nodeEqui().getCurrentElement().modelObject().modelInstance().getJcoClient()

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hello,

mmh, thanks but I can't find modelObject().

modelObject is undefined in IWD_NodeElement.

Any Idea ?

Mike

former_member182372
Active Contributor
0 Kudos

Hi Mike,

Set typedAccessRequired to true for your model node or cast result of model() method to your model class.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hello,

Thanks,

now it works. I've never told you, I used a Custom Controller in der View.

	
Client myClient =
	       wdThis
	      .wdGetMyEquiController()
	      .wdGetContext()
	      .nodeBapi_Equi_Create_Input()
	      .currentBapi_Equi_Create_InputElement()
	      .modelObject()
	      .modelInstance()
	      .getJcoClient();
	
	myClient.setAbapDebug(true)

Best regards,

Mike

Answers (0)