Use
The Constant conversion type causes the Interface Toolbox to replace the old value of a field object by a new value during the data export. You can enter the necessary default values for the conversion of the field objects in the <name> (old) and <name>(new) fields of the Direct Value for <name> dialog box.

You want to replace the old value of the ANSSA field object, which is contained in the Addresses infotype (P0006), with a new value.
Enter the following in the Constant for "Address Record Type" dialog box.
Field: ANSSA (old) |
Field: ANSSA (new) |
1 |
Main address |
2 |
Temporary address |
* |
Holiday address |
Features
Replace Constant Generically
Use the
* (asterisk) character to replace values generically. In your selected field object, enter a * (asterisk) in the ... (old) field as the first and only character. Enter the new constant in the ... (new) field.If, when processing the data records, the Toolbox finds the character * (asterisk) for generic replacement, the system replaces all values without a suitable entry in the ...(old) field with the value from the ...(new) field for the generic lines.
See also:
Example: Replacing a Constant GenericallyLength of the Field Object for the Constant Conversion Type
You can use the Length function to redefine the field length of a field object. Normally the Toolbox uses the length in the ABAP dictionary as the length of the field object. The new field length can be either longer than, equal to, or shorter than the length in the ABAP dictionary.
Reference for the Constant Conversion Type
You can use the Reference function to refer to an existing, suitable conversion. You can define a reference to an existing conversion program without creating a new conversion program. If you modify the fields in the Constant Value for <name> dialog box then the Toolbox will also integrate these changes in the referenced fields.
If suitable references for the field object to be converted already exist in the SAP System, then they will be shown in the Reference Conversion Type dialog box and they can be used again

Your payroll result contains the table objects A and B. The LGART field object is contained in table A and table B.
You define the constant conversion type for the LGART field object from table object A.
You only define one reference from the LGART field object in table object B to the LGART field object in table A.
If you modify the Constant conversion type in one of the two fields (A-LGART, B-LGART), then the Toolbox will automatically integrate these changes in the referenced fields.
Transfer of Entries for Conversion
Once you have made all the entries for the conversion of a field object, choose Transfer.