Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Adapter Notifications | Examples | Creating a Synchronous RFC Adapter Notification | Creating a Function Module in an SAP System
 
Creating a Function Module in an SAP System
Calling a service from an SAP system requires, at a minimum, a remotely callable function module with a defined signature (imports, exports, and tables). No ABAP coding, screen development, or other work is required.
Note:
The following steps require that you have developer-level access on your SAP system and some basic knowledge of the ABAP Workbench and function modules.
*To create a function module in an SAP system
1. Using the SAPGui, go to the ABAP Function Library. Select Tools > ABAP Workbench (SE37).
2. Create a function group, for example: Z_FG01 (Menu Goto > Function groups > Create group).
3. Enter Z_IS_PRODUCT in field Function module. This is the name of your SAP product retrieval function.
4. Select Create.
5. Complete the following dialogs in accordance with the policies governing your SAP development environment. The only aspect relevant to Adapter for SAP is the field Processing type. Select Remote-Enabled Module to allow this function to call externally to Adapter for SAP.
6. Define the import/export parameters of your function. Add an import named sku. You must provide an Reference Type field. Pick a character field with a length greater than 5. For this example, use CHAR100.
7. Add six exports: name, product_type, product_length, product_width, price, availability. Again, you must provide Reference Type fields for each of the exports. For this tutorial, use CHAR100 for these parameters.
8. Mark Pass Value for all parameters.
9. Save your function module and activate it.