cancel
Showing results for 
Search instead for 
Did you mean: 

EP 5.0 JCO Client Service

Former Member
0 Kudos

Hello,

Does anyone have a coded example of a dynpage/jspdynpage that makes multiple calls to an SAP BAPI or RFM in different methods of the dynpage/jspdynpage. I've read the SDN document and would like to ensure conceptually, I've got everything right. Mainly, ensuring that I'm optimizing the JCO client service in the following scenario:

public void onHeaderClick(Event event) {

// make call to SAP upon header click

using JCO client service... call BAPI

}

public void doProcessAfterInput() throws pageException {

// make call to SAP

using JCO client service.. call same or another BAPI while optimizing JCO client service

}

Thanks for all your help,

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

Oliver5
Advisor
Advisor
0 Kudos

dont do that.

Maybe it works, but it is an horrific desgin.

Former Member
0 Kudos

Oliver,

Thanks for responding... I'm glad I finally got a straight up answer and its good to know that the design is 'horrific'... lol. Anyway, can you point me in the right direction then?

Thanks A Million,

Mike

Former Member
0 Kudos

Oliver,

I was thinking also, when speaking of the design were you speaking of the calling of the JCO client in each method? Or were you referring to the usage of a JCO client call in the doProcessAfterInput method (which would make a call after any input event)?

Former Member
0 Kudos

LOL... another thought... just cause it took a while to get a response last time I want to make sure that I get the answer I'm looking for. My original scenario should have been as such:

public void onAnEvent(Event event) {

// make call to SAP upon header click

using JCO client service... call BAPI

}

public void onAnAnotherEvent(Event event) {

// make call to SAP upon header click

using JCO client service... call BAPI

}

My real concern with this scenario was whether or not there were any thread safety concerns/optimiztions that I should be on the lookout for. As for design, how else to go about the above scenario? THANKS AGAIN for following this dude on his path to Portal wisdom