Вы находитесь на странице: 1из 6

Turn any SAP remote-enabled function module into a Web Service Part 1 | SAP In...

Pagina 1 di 6

Search this website...


Home About

GO

Blog

Why DataXstream History Message From The CEO Mission & Values DataXstream - FAQ Partners Becoming a Software Partner Memberships & Affilliations Media News Events Press Releases Follow On Facebook Twitter Sponsorships Download SAP Solutions & Services Virtualization SAP All-In-One ISV Certification Xstream Connector SAP Technical Consulting Integration Upgrades Basis & NetWeaver Solution Manager EDI Resume Case Studies Clients Served

SAP Technical SAP ABAP Blog SAP Basis Blog SAP EDI Blog SAP Interface Blog SAP Java Blog SAP PI Blog SAP Project Mgmt SAP Strategy SAP Live Blog Contact Us Correspondence Careers E-Mail Newsletter Locations Sales Support Technical Support Privacy Policy Becoming a Software Partner

Turn any SAP remote-enabled function module into a Web Service Part 1
Posted by Steve Park on Tuesday, September 29, 2009 5 Comments It still amazes me that not a lot of developers know that you can turn any existing SAP remote enable function module into a Web Service. It may sound like a challenging task, but it is just one of those things that you either know how to do it or you dont. And to know how to do it only takes 15min to understand. I have broken this down into 2 blogs Part 1 will show how to create the simple structured web service Part 2 will show how to configure and test the web service using SOAMANAGER and WSNAV For this scenario, I created a really simple function module with one input and one output that will send back a response of Response successful from test This will only create one operation for this service. However, if you want to create multiple operations for a Service you can also generate the service from a function group.

You will need to ensure that the attribute is set as Remote-enabled in the function module.

http://www.dataxstream.com/2009/09/turn-any-sap-remote-enabled-function-module-... 23/07/2010

Turn any SAP remote-enabled function module into a Web Service Part 1 | SAP In... Pagina 2 di 6

Now go to transaction SE80 and right-click>Create>Web Service

Since SAP will be hosting this web service we will want to select Service Provider

Select the radio button Existing ABAP Object(Inside Out) Since we are building this web service from a Function Module. The difference between and inside out vs. an outside is approach is where the structure is built. From a design perspective, it is recommended that you use an Outside-in approach whenever possible. This means that you would build out the structure in the ESR and then implement the code behind it in SAP.. However, there will be cases when you will want to turn a Standard SAP remote enable function module into a Web Service, thus using this approach, the Inside out approach..)

http://www.dataxstream.com/2009/09/turn-any-sap-remote-enabled-function-module-... 23/07/2010

Turn any SAP remote-enabled function module into a Web Service Part 1 | SAP In... Pagina 3 di 6

Give a name to what you want to call your Enterprise service and specify that the endpoint will be a function module.

Enter the name of the Function module that the web service will call in the backend.

Here you will have to specify which authentication you want this service to have. For this example I have set it to no authentication.

http://www.dataxstream.com/2009/09/turn-any-sap-remote-enabled-function-module-... 23/07/2010

Turn any SAP remote-enabled function module into a Web Service Part 1 | SAP In... Pagina 4 di 6

Now you are complete with building this web service. However at this point you have just built the Web Service but you will now need to configure it so that an external application can call this web service.

This will come in my next Blog for configuring the newly created Web Service and as well as testing this service. About: Steve: Steve Park is a SAP PI interface consultant at DataXstream. Share

Filed under Blog, SAP ABAP Blog, SAP PI Blog, SAP Technical Tagged with enterprise service, function module, SAP, Steve Park, web service

Comments
5 Responses to Turn any SAP remote-enabled function module into a Web Service Part 1

1.

Subani Shaik says: October 1, 2009 at 4:54 am

http://www.dataxstream.com/2009/09/turn-any-sap-remote-enabled-function-module-... 23/07/2010

Turn any SAP remote-enabled function module into a Web Service Part 1 | SAP In... Pagina 5 di 6

Hi Steve Park, How are you doing? I this blog is really good, Much appreciate if you can provide next blog. URL for Part 2 will show how to configure and test the web service using SOAMANAGER and WSNAV. If i can suggest, please place URL of subsequent blog to navigation easily. Please assist me. Thanks A lot. Best wishes, subani shaik

2.

Kevin O says: November 3, 2009 at 3:26 am Appreciate if you can provide the second part of the blog. It is indeed very useful. Thank you.

3.

Craig Stasila says: November 3, 2009 at 1:27 pm For completeness sake, here are links to both parts: Turn any SAP remote-enabled function module into a Web Service Part 1 Turn any SAP remote-enabled function module into a Web Service Part 2

4.

Mikey says: June 17, 2010 at 8:32 am Really good articleDo you know if this is available for SAP WAS 6.20 Ive been told it does support web services but there is no option for Web Service in SE80 and bo SOAMANAGER?

Trackbacks
Check out what others are saying about this post... 1. Changing The Function Interface of Web Service Enabled Functions : SAP Integration Experts DataXstream says: November 3, 2009 at 1:11 pm [...] Steve Park, wrote a two part blog explaining how to turn any ABAP function into a web service. (Find Part 1 here. Find Part 2 here.) But, what happens when you change the function module interface as my [...]

Speak Your Mind


Tell us what you're thinking... and oh, if you want a pic to show with your comment, go get a gravatar!
Name (required) Mail (will not be published) (required) Website

Submit Comment

Learn More Quick Search

Select category
Solutions & Services Product Development Brochures Testimonials Follow Careers Recent Posts Archives Login/Logout

Copyright 2009 SAP Integration Experts DataXstream | Privacy Policy info@dataxstream.com | 757.345.3437

http://www.dataxstream.com/2009/09/turn-any-sap-remote-enabled-function-module-... 23/07/2010

Turn any SAP remote-enabled function module into a Web Service Part 1 | SAP In... Pagina 6 di 6

loading

http://www.dataxstream.com/2009/09/turn-any-sap-remote-enabled-function-module-... 23/07/2010

Вам также может понравиться