cancel
Showing results for 
Search instead for 
Did you mean: 

Connect to SAP from Web Dynpro Java

Former Member
0 Kudos

Hi,

Could anyone show me step by step how to connect to SAP to get data from BAPI/FM to Web Dynpro Java? (What kind of connection method, how to configure, which API I should use)

Thank you.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi kebab,

please follow these step are :

1. first create a model in your project.

2.then right click on this model and select the reimport model.

3.next screen you choose single server option and provide this details.

host name: ip of your backend system

system number:00

client :client number of your backend system.

logon name:userid

password:password.

4.next screen you choose your function module and press next and then finish.

5.after that build and deploy your project.

6.then double click on your component and open the diagram view.

7.after that right click on your component controller and choose service controller and press next.

8.then choose your backend function module and finish.

9.now click implementation tab of your component controller and you can see a method is created same name of your backend function module .

10.now just set all import parameter and call this method.you can get all backend value.

thanks,

dibyendu.

Former Member
0 Kudos

Thank you very much for your quick answers.

But I would like to know how many ways to connect to SAP (JCO, adaptive RFC, ...)? Could you give me the difference between them? Which one is prefered? And if I use that kind of connection, which steps do I need to do to configure it in Portal (for ex: adaptive RFC)

Thank you.

Former Member
0 Kudos

hai kebab,

In the case of adaptive rfc when the structure of the bapi ur using is changed and you reimport your model you need to restart your server.but as the jco directly connects to server thats not needed.

adaptive rfc is more easy to use and good compared to jco.

use this link also

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b04308ed-62d5-2910-b3a6-c26771b1...

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

hai kebab,

your just deploying your appln in portal using iview.In that case you need not configure just place ur appln as iview in portal .

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

hai kebab,

the following link will take you to a video presentation guiding you to connect to backend ,give input and get output.

go thru this link.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202f1dfb-74db-2910-e48e-a7430c31...

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

Try this link..

[Accessing ABAP Functions|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20archive/creating%20a%20web%20dynpro%20application%20accessing%20abap%20functions.pdf]

-

Shyam.

Former Member
0 Kudos

Hi

See the following link for getting data frm the backend.

(Accessing ABAP Functions in Web Dynpro)

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de1...