Service commands in Import and export scenarios
For more information: Manage import scenarios (SM206025), Manage export scenarios (SM207025).
For key fields and the first field that has a commit among the fields of a detail table, the system adds service commands on the Mapping tab of the scenario you are creating in the Manage import scenarios (SM206025) window or the Manage export scenarios (SM207025) window. Service commands are commands that invoke hidden actions in the system, such as searching for the record by the key field, refreshing the window, and adding a new line to the detail table. The system automatically adds service commands to the scenario immediately before the commands that invoke them.
For example: Suppose that in the Manage import scenarios (SM206025) window, you are mapping the
Type field of the Sales invoices (AR301000) window.
The
system automatically inserts a set of service commands before the mapping of the
Type field: The <Key: DocType> and <Key: RefNbr> commands invoke search by the key fields, and the <Action: Cancel> command restores the default settings for the selected document type.
In the table toolbar of the Mapping tab of the Manage export scenarios (SM207025) window or the Manage import scenarios (SM206025) window, by default, the Show all commands option is selected in the drop-down list, which means that you can view the service commands that the system automatically adds to the import scenario.
You can replace service commands with your own commands to change the default behaviour of the
system.
For example: If you map the first field that has a commit among the fields of a detail
table, the system adds the <Line number>=-1 service command.
That means that
a new row is added for each new detail line.
You can specify the needed line number in the
<Line number> command to modify the value of the previously imported detail
line. Line numbering starts with 0.
If you search for a detail line by a custom key, you have to delete the instruction that sets the <Line Number> to -1 from the mapping so that the system does not add a new detail line but instead searches for a detail line.
Parent topic: