cancel
Showing results for 
Search instead for 
Did you mean: 

Call rfc from Java Web application.

Former Member
0 Kudos

Hi:

I am new to SAP Java programming.

I am developing a java web application on SAP NW SP16.

I need to call a rfc and process the data to be displayed on a jsp page.

I have few questions...

1) Can I use the JCO destination created in thru wed dynpro content administrator, to connect to sap and execute the rfc/bapi?

2) How would I create and access the model (rfc)?

3) Are the required jar and dll(rfc32.dll ... ) files available on the server?

Any help would be greatly appreciated.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
former_member182372
Active Contributor
0 Kudos

Hi shekar,

I would suggest instead of Adaptive RFC model use SAP Enterprise connector to generate typed proxies. Check http://help.sap.com/saphelp_nw04/helpdata/en/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm

and

especally Bertram Ganz`s post.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim:

Your response is very helpful.

I am developing only J2ee web application, would this class(WDSystemLandscape.getJCOClientConnection(ONE_OF_YOUR_DESTINATION) available for java applications too or just for web dynpro.

I like to use above method or api similar to the above to obtain a jco connection rather creating one by passing those parameters from resource properties file or hard coded variables.

Again thanks for your help!

Former Member
0 Kudos

I am using NWDS SP 16.

Any information on adding the plugins would be greatly appreciated.

Sample programs would be wonderful.

Thanks.