Field-Related Rules

Use

This function is used to assign conversion rules referring to fields to the field assignments.

Prerequisites

Structure relationships and field relationships must have been defined.

Features

Initial Value

When you choose this function for an SAP field, it continues to have its initial value set. This means, the number 0 is set for numeric fields and blank fields are set for Character fields in the SAP system. This is the default rule in the LSMW.

The system also assigns initial values, that is, for all those SAP fields that are not being processed in the LSMW.

MOVE

When you choose this function, data is transferred from the legacy system field to the SAP field 1:1.

When you do not specify a conversion rule for an SAP field that already has a source field assigned to it, the system will automatically perform a MOVE since this is the default processing type.

MOVE - only if source field is not initial

When you choose this function, data is transferred from the LS field to the SAP field in a 1:1 relationship for all the LS fields that are not initial. Initial LS fields are skipped. For batch input programs using the no-data character, this will ensure that this character is not overwritten by the initial value in a MOVE.

Fixed Value

When you choose this function, a fixed value (that is, a variable named FV_ <fixed_value_name>) is assigned to the target field in the SAP system. If a fixed value does not exist for the name of the SAP target field, you can select a different fixed value from the list of existing fixed values or create a new fixed value.

In Migration Customizing, you assign a definite value to the fixed value.

Constant

When you choose this function, you can assign a definite value to the target field in the SAP system immediately.

ABAP code

With this function you branch to the ABAP Editor. Here you can post-process generated ABAP code or store code of your own. Furthermore, you can check whether the source code is syntactically correct.

Translation (reusable):

The default is a 1:1 translation by means of the translation table. In this case, you have the option of entering and adjusting source and target values.

User-defined routine (reusable):

You can write you own routine and store it in the field assignments. This routine can also be used for any other objects of the project.

Prefix:

You can define any prefix to precede the converted data.

Suffix:

You can define any suffix to be appended to the data converted.

Concatenation:

You have the option of concatenating two or several fields after the data has been converted.

Left-justified transfer:

Transfers the contents of the source field in a left-aligned format.

Activities

All the field-related rules mentioned above are listed in a dialog box:

  1. From the list of steps, choose Maintain Field Mapping and Conversion Rules.

  2. Position the cursor on a field to which you want to assign the field-related rule.

  3. Choose Insert Rule. A dialog box appears.

  4. Select the corresponding rule.

  5. Set the indicator.

  6. Choose Continue.

Alternatively, you can also assign most of the rules listed directly by clicking on the appropriate button.