In the following steps, you will modify the workflow to use the custom action Query XQL instead of the Call web service action to create the material record in SAP. Navigate to the Material Maintenance Requests list and from the workflow Settings select Manage Workflows with Nintex Workflow.

Nintex-Material-XQL-WF1

Select the Product Approval Workflow for editing.

Nintex-Material-XQL-WF2

Delete (or Disable) the Call web service activity.
Add a Query XQL action as shown below.

Nintex-Material-XQL-WF3

Configure the Query XQL activity:
Application Name = (ERPConnect Services Application that is configured in your SharePoint system)
XQL Query = (XQL Query to create the material record in SAP)

In this example: EXECUTE FUNCTION ‘Z_ECS_MATERIAL_MAINTAIN’ EXPORTING MATERIALBASE-MATNR=’{ItemProperty:Material_x0020_Number}’, MATERIALBASE-MATDESC1=’{ItemProperty:Material_x0020_Name}’, MATERIALBASE-MATL_TYPE=’{ItemProperty:MaterialType}’, MATERIALBASE-IND_SECTOR=’{ItemProperty:Industry}’, MATERIALBASE-BASE_UOM=’{ItemProperty:UnitofMeasure}’, MATERIALBASE-OLD_MAT_NO=’{ItemProperty:Old_x0020_Material_x0020_Number}’

Nintex-Material-XQL-WF4

Save and then Publish the workflow.
Repeat the other steps described in the first scenario to verify the functionality of the updated workflow.

Create a new Material and approve the Material request.

Nintex-Material-XQL-WF-Completed

Verify the result in SAP.

Nintex-Material-XQL-SAP