In the following steps, we will examine the EXECUTE FUNCTION step of the GetCustomers operation more closely. Right-click on the EXECUTE FUNCTION step and select Edit.

WSD-ExecuteFunctionEdit

In the Execute Function Activity Dialog, you can see the name of the function module being executed in SAP (SD_RFC_CUSTOMER_GET). Below the name are the IMPORTS, EXPORTS, TABLES and Output parameters of the function module, with their mappings.

The EXPORTS structure has two Input parameters. Parameter NAME1 is mapped to the web service parameter namePattern. This parameter namePattern will be available when the web service is called.

WSD-FM-Exports

The TABLES structure has table CUSTOMER_T as Output parameters. The table of the SAP function module is mapped to the web service parameter customerList. This parameter customerList will be available when the web service is called.

WSD-FM-Tables

Click OK to close the Execute Function Activity Dialog.

In the ECS Web Service Designer dialog, select the Parameters button.

WSD-WebServiceDesigner2

The Parameters Dialog will display the same web service parameters that we saw in the previous step. Use this dialog to assign a default value to a parameter.

WSD-Parameters

Click OK to close the Parameters Dialog.

In the ECS Web Service Designer dialog, select the Custom Data Types button. The Custom Data Types Dialog will be displayed.

WSD-CustomerDataTypes

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

WSD-CustomDataTypesEdit

Select OK to close all open dialogs.