Choose Function GroupLooking to integrate SAP with an external system? Thankfully, there are numerous ways to integrate external systems with SAP.

One of the most common integration methods is using RFC (Remote Function Call). However, using RFC can be challenging when the integration platform is not SAP PI/PO.

In this blog, you will learn we can convert the RFC module in SAP into a webservice that can be consumed easily by external systems.

 

Prerequisites

Before we get started on the Inbound Web Service, we need to make sure to complete the following three steps:

1.     Activate Solution Manager in SAP (Trasanction SOA Manager).

2.     Activate webservice instance in transaction SCIF

3.     Create a custom function group and assign three or more function modules. 

 

Steps Create an Inbound Web Service

With those requests completed, we can now follow the steps needed to create a webservice from a function group with multiple function modules. Let's get started:

 

1. First, navigate to the transaction SE80 (Object Navigator) and then to the Repository Browser.

Transaction SE80 (Object Navigator)

 

2.     Choose 'Function Group' in the dropdown list below and specify the function group to be exposed as a webservice.

Choose Function Group

 

3.     Right-click on the function group folder and choose Create > Other objects > Enterprise Service. A pop-up window will appear to create the webservice. Specify the 'Service Definition' name: ZSD_RFM_SALESORDER

Enterprise Service

 

4.     Create an Endpoint Function Group. The Function group will be automatically selected, but make sure the correct function group was selected in Step 2. Function group: ZFGSD14

Create Endpoint Function Group

 

5.     Next, select the function modules that need to be included as operations of the web service.

Step is select the function modules

 

 

6.     Now you need to Configure Service. The SOAP Application should be filled automatically by the standard application. But for the profile, select 'Authentication with User and Password' and 'Transport Guaranteed.' Currently, in HMN K2, we are not using certificates as a method of authentication.

Web Service Configuration

 

7.     Click 'Next' and specify the Package and Request/Task and click finish. Service Definition (Web Service) should be created.

Web Service Definition

 

8.     After successfully creating the service definition, go to the transaction 'SOAMANAGER.' SOA MANAGEMENT will open in a web browser. Find on the screen and choose 'Web Service Configuration.'

Web Service Configuration

 

9.     Choose 'Service Definition' in the object type and specify the Service Definition ZSD_RFM_SALESORDER created in Step 8.

Service Definition

 

10.  Click on the created Service and specify the Service Name and Binding Name.

Service Name and Binding Name

 

11.  Click 'Next' and configure Provider Security. In this case, we will be using HTTPS (port 8081) and message authentication using USER ID/Password. We also have the possibility to use signature and encryption for a more complex level of security.

Provider Security

12.  Click 'Next' and configure soap protocol. Specify an alternative Access URL if your SAP system is using a load balancing system.

Configure Soap Protocol

 

13.  Click 'Next' and verify that all operations (function modules) are correct. If operations are correct, click 'Finish.' If these operations are not correct, you need to cancel the configuration and regenerate the webservice from Step 1.

ABAP - Inbound WebService

 

14.  Once you've verified everything, the service and binding should be created and in Active Status. You can click on the button with webservice logo below to get your WSDL.

ABAP - Inbound WebService

 

And that's it! You've now successfully converted the RFC module into a webservice that can be consumed easily by external systems.

Want to learn more helpful SAP development skills or refresh what you already know? Check out our SAP ABAP Programmer and SAP Web Application Developer Learning Paths, or browse our SAP Training Course Library


Author Photo

Michael Management Corporation (MMC) is an award-winning provider of hands-on SAP training simulations for global enterprises, government agencies and medium-sized businesses. MMC enables organizations to maximize business performance and minimize financial reporting errors through a combination of SAP eLearning content and SAP sandbox systems.
More Blogs by Michael Management:
sap networking
SAP Networking 101: A Blueprint to Getting Noticed

SAP has garnered a positive, ambitious, and exciting community around itself in terms of professionals who are always looking for the next step. This makes becoming an SAP expert an excellent opportunity ...

4 Reasons to Start Creating Online SAP Courses

Online SAP training courses have become a staple of professional education throughout the last few years. The sudden shift in the worldwide working culture created a workforce that was much more keenly ...

converting your ecc system to s/4hana
All about converting your ECC system to S/4Hana

SAP S/4Hana brought about a revolution in terms of SAP system architecture, creating a faster and better user experience through various tools like Fiori and Analysis for Office. At the same time, it ...