In this section, we will discuss the EXECUTE FUNCTION activity in the GetCustomers operation. Right-click on the EXECUTE FUNCTION activity and choose Edit.


In the Execute Function Activity Dialog dialog partner, you see the name of the SAP function module (SD_RFC_CUSTOMER_GET).
in the Name field. These include the various parameters, that is, EXPORTS, IMPORTS, CHANGINGS and TABLES (Input and Output), of the function module (FuBa) and the corresponding assignment (Mapping).

The EXPORTS parameters consist of two simple input parameters.
The FuBa parameter NAME1 is mapped to the Web services input parameter namePattern.
The Web service input parameter namePattern is specified when the Web service operation is called.
We’ll look at the definition later.


The FuBa has a single TABLES parameter CUSTOMER_T, which we use for the output and assign to the output parameter customerList of the Web service operation.

The customerList parameter will be available when the Web service operation is called.


Click OK to close the Execute Function Activity Dialog dialog box. In the ECS Web Service Designer dialog box, click the Parameters button.


In the Parameters dialog box, you manage the input and output parameters of the operation. The following parameters are defined:
namePattern: Input parameter (Direction Input) of type String.
customerList: List-type output parameter (Direction Return) of type List of Customer. The definition of the data type Customer is shown below.

You can use the Edit button to assign a default value to the namePattern parameter, e.g. T*.


Click OK to close the window.

In the main dialog, click the Custom Data Types button. The Custom Data Types Dialog window lists the defined data types Customer.


Select the data type Customer and click Edit. The Customer data type has two properties, ID and Name.


Click OK to go to the main window.