cancel
Showing results for 
Search instead for 
Did you mean: 

Enterprise Service to R/3

Former Member
0 Kudos

Hi

I have a web service programmed in Java language and would like it to retrieve information / call function from R/3 system.. how anI going to do about it?

Please kindly advise.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rayden,

You have created a web service client and want to fetch some data by calling a function module in R/3. Fine.

Well do you know , if we have any BAPI (RFC enabled function module readily available in SAP) that suits your requirement ?

If yes, all the BAPIs are exposed as web service. so you can find the WSDL for that in WS Browser through the following link.

http://<hostname>:<portno>/sap(bD1lbiZjPTk1MA==)/bc/bsp/sap/WebServiceBrowser/search.html

If you do not have any BAPI available, you need to create a function module using ABAP coding and that needs to be RFC enabled (can maintain that in attribute) and you need to expose that as a webservice using wizard.

And now you can consume this service using your java application.

Let me know if you need any more input on this topic.

n dont forget to award sdn points

Regards

Pushkar

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks All

Former Member
0 Kudos

Hi, Rayden

> web service programmed in Java language

You mean, you have web service client(consumer) program in Java?

And you want to retrieve info from R/3?

If so, refer to this "Creating a Web Service".

http://help.sap.com/saphelp_nw04s/helpdata/en/0d/2eac5a56d7e345853fe9c935954ff1/frameset.htm

Basic idea is like the following.

- create BAPI or RFC-enabled function module in ABAP

- create Web Service from the above functions via Service Definition Wizard.

Good Luck.

Sejoon

Former Member
0 Kudos

Hi Sejoon

Thanks for the information. As you mention :

Basic idea is like the following.

- create BAPI or RFC-enabled function module in ABAP

- create Web Service from the above functions via Service Definition Wizard.

Does that mean that I have to create BAPI in order to retrieve/store information on R/3?

Is there any way that I can just use java to create instead of picking up new language (ABAP)?

Former Member
0 Kudos

Hi, Rayden

> Does that mean that I have to create BAPI in order to retrieve/store

> information on R/3?

Well, R/3 has standard BAPIs and RFC-enabled function modules. So,

if standard BAPIs meet your requirements, you don't need to code ABAP.

Here, you can find standard BAPIs and function modules.

Another option is to use Enterprise Services.

https://www.sdn.sap.com/irj/sdn/esworkplace

But the basic idea is same. Find the function that meets your requiremnets,

or you have to create with ABAP.

Good Luck.

Sejoon