Other Rules

Use

In addition to the rules described above, you can also use other options for processing fields:

Other Rules:

Rule

Meaning

Translation (Reusable)

Source code is assigned to the target field. This source code uses a translation table to convert the field content. You can enter the values of this translation table in the step Maintain Fixed Values, Translations, User-Defined Routines.

Prefix

You can add a prefix of your choice to the field content of the source field.

Suffix

You can add a suffix of your choice to the field content of the source field.

Concatenation

You have the option of concatenating two or more source fields.

Transfer Left-Aligned

The field content is aligned to the left when it is transferred.

Move with Leading Zeros

With this option, the transferred values are prefixed with leading zeros until they have the maximum length of the target field.

You can use this conversion, for example, with account numbers. Before the conversion, a check is made to see whether the field value consists only of digits, possibly with blanks before or after it. If so, the string of digits is aligned to the right, and filled up with zeros. Otherwise, the character string is filled up with blanks.

Examples: (Input field and output field are both eight characters in length)

1. '1234 ' --> '00001234'

2. 'ABCD ' --> 'ABCD '

3. ' 1234 ' --> '00001234'

XFELD

This is a special function for processing IDocs. In some cases, a special 'X structure' exists alongside the data transfer structure (the data transfer structure contains the values that you want to transfer). The fields of this 'X structure' contains either an X or a blank, and specify whether a field is transferred from the data transfer structure or not.

The following source code is generated automatically:

If not <Feld der Datenübernahmestruktur> is initial.

<Feld der Ankreuzstruktur> = 'X'.

else.

<Feld der Ankreuzstruktur> = ' '.

Endif.

Procedure

To apply one of the above rules for a field, proceed as follows:

  1. Select the field in the step Maintain Field Mapping and Conversion Rules.

  2. Choose Start of the navigation pathEdit Next navigation step Insert RuleEnd of the navigation path.

  3. Select the required rule and choose Continue.

  4. Enter any required values and choose Continue.

  5. Save your entries.