Define Output External File Template Control

Explanation

Use this activity to define specific control statements that will be used when creating an output file to decide if generated transaction should be written or not to the file. A control statement can be assigned the condition Skip or Satisfy. Control statements can also be grouped together meaning that all conditions belonging to one group are considered as AND conditions.
If more than one control group is defined then following applies: <conditions_in_group_one> OR <conditions_in_group_two> etc.

If an external file type consists of more than one record type then it is necessary to define control statements, making it possible to decide the record type that each file line is associated with. This in turn makes it possible to find the detail instructions to be used when formatting the output file line.

Prerequisites

Data must have been defined in the Output Files tab in the External File Template window to be able to launch the External File Template Control window.

It is not possible to modify template control data data for a system defined file template.

System Effects

The control statements makes it possible to:

Window

External File Template Control

Related Window Descriptions

External File Template Control

Procedure

  1. Open the External File Template window.
  2. Click in the Output Files tab.
  3. Right-click and then click External File Template Control.
  4. In the detail window, click New.
  5. Supply a unique number in the Row No column.
  6. Use LOV to view and select the record type that the control statement applies to.
  7. Supply a group identifier in the Group No column. All control statements that should be grouped together are given the same group identifier.
  8. Define condition, Satisfy if the control statement refers to a conditions that must be fulfilled to consider the output transaction as valid.
    Define Skip if the control statement refers to a condition that must be fulfilled to skip the output transaction.
  9. Supply a fixed value in the Control String column that is used when testing the value in the Destination column.
    The String Evaluate column can be used to define a system defined value that is evaluated during processing. The value in the column overrides the value in the Control String column if both are specified.
  10. Define Destination Column, i.e. the external transaction column that holds the value to be used when performing the conditional test.
  11. Click Save to save the output file template control definition.