SAP Community Network Forums » SAP NetWeaver » SAP NetWeaver Platform

Thread: Best practice for Web Dynpro for Java to connect to SAP HR

This question is not answered.


Permlink Replies: 3 - Pages: 1 - Last Post: Nov 4, 2009 1:08 PM Last Post By: Olivier CHRETIEN
sajid_321

Posts: 6
Registered: 8/20/09
Forum Points: 0
 
Best practice for Web Dynpro for Java to connect to SAP HR  
Posted: Nov 3, 2009 1:20 PM
Click to report abuse...   Click to reply to this thread Reply
What is best way to connect Web Dynpro for Java application deployed in SAP portal to connect to SAP HR ?

Is it good practice to connect to underlying SAP database ( eg oracle) directly to get the data or is there a better way ?

This below article describes to connect to external DB, however Is there any other way for SAP HR ?

http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynpro+Applciation+with+Database+MS+Access

Olivier CHRETIEN

Posts: 2,581
Registered: 3/31/04
Forum Points: 3,764
 
Re: Best practice for Web Dynpro for Java to connect to SAP HR  
Posted: Nov 3, 2009 2:37 PM   in response to: sajid_321 in response to: sajid_321
Click to report abuse...   Click to reply to this thread Reply
Hi,

There are 2 supported ways :

First is to use JCO connections to call abap RFC enabled function modules. (BAPIs for example)

Second is to call SOAP web services (HR enterprise services for example)

You should never access directly database tables...

Regards,

Olivier

sajid_321

Posts: 6
Registered: 8/20/09
Forum Points: 0
 
Re: Best practice for Web Dynpro for Java to connect to SAP HR  
Posted: Nov 4, 2009 9:48 AM   in response to: Olivier CHRETIEN in response to: Olivier CHRETIEN
Click to report abuse...   Click to reply to this thread Reply
Thanks, I agree, but if we have a custom table created in HR for customization purpose and need to access that table
Olivier CHRETIEN

Posts: 2,581
Registered: 3/31/04
Forum Points: 3,764
 
Re: Best practice for Web Dynpro for Java to connect to SAP HR  
Posted: Nov 4, 2009 1:08 PM   in response to: sajid_321 in response to: sajid_321
Click to report abuse...   Click to reply to this thread Reply
Hi,

if we have a custom table created in HR for customization purpose and need to access that table

Then you create a custom RFC enabled function module (or web service) to access this custom table.

Regards,
Olivier

Point your RSS reader here for a feed of the latest messages in all forums