on 08-26-2005 2:59 PM
Hi,
i am using was6.40. i would like to know <b>how can i use FUNCTION MODULE as WEBSERVICE.</b> i know it is possible using se37 t.code but i don't know how to do it.
kindly help me.
Regards,
Kannan.
What exactly do you mean by "<b><u>how can i use FUNCTION MODULE as WEBSERVICE</u></b>" ? Do you want to expose a function module as web service or consume a web service based on function module.
Exposing is straight forward, like Eddy said any RFC enabled function module can be used as web service without any extra effort (use BSP application 'webservicebrowser' to generate the WSDL). With WAS 6.40 you can additionally create virtual interface by going to <i>Utility->More Utility->Create Web Service->From Function module</i> in SE37.
For consuming you need to create a client proxy from web service in question using SE80->Workbench->Edit Object->Choose Enterprise Services tab->Choose Client proxy.
Cheers,
Sanjeev
Message was edited by: Sanjeev Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kannan,
If you have SAP R/3 system as WASAS 6.20 or lower version then you might not have option to create webservice at this location. Utility->More Utility->Create Web Service->From Function module in SE37.
So, in this case, follow these steps:
1. set FM as RFC enabled
2. Go to SE80 transaction, and there open BSP application WEBSERVICEBROWSER.
3. Activate this application here.
4. Now, choose search.html page in this application, and choose teat option from the context menu
5. Now, Enter your Function module name in the page displayed.
6. Here, it will give us WSDL link for this function module
7. Use this link to call web service, which in turn calls your FM in SAP R/3.
Regards,
Bhavik
Hi Kannan,
You can create RFC enabled Function Modules and access them using JCo in Web Applications. To know more about JCo refer
http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
www.sapgenie.com/interfaces/javaconnector.htm
Thanks
Kathirvel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In principe, all you need to set it remote enabled, but starting from 6.4 to work with virtual interfaces.
See Thomas' excellent web logs
/people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices
and
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
Eddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.