The full signature can also be found here.
The script is a template for the following two use cases, which can be changed or adapted any time:
Search for a material number in SAP table MAKT and display the possible hits in the dropdown-list. If you select a hit, the material number and the material description are displayed in two separate fields.
Search for the customer number in SAP table KNA1 and display the possible hits in the dropdown-list. If you select a hit, the customer number and the customer name are displayed in two separate fields.
Carry out the following steps to implement the example in Nintex Forms:
Step 1: Define text fields
In the Nintex form, four freely nameable fields are required (for both examples, if they are to be executed in one form):
The second example in the script works analogously, but the corresponding variable names in this example (input2, combo2,…) must be used.
tableName: Name of the SAP table.
idField: Name of the field with the ID to be displayed.
textField: Name of the field with the description text. language: SAP logon language abbreviation (DE, EN, etc.)
The example is therefore adaptable and applicable for a multitude of possible scenarios, without complicated code.
Step 3: Publish and execute the Nintex form.
After you have published the form, you can execute it and use the template.