on 08-01-2006 12:56 AM
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.
Hi,
See the follwoing links which contains sample code to ceate JCO and execute BAPI.
http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
Kind Regards,
S.Saravanan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.