on 04-17-2007 7:13 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks All
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)?
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
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.