Setting Reference Fields with Currency and Amount Units

The attributes of displayed fields (for example, headers or formats) are taken from the ABAP Dictionary whenever possible. For different reasons, these attributes may have to be changed later if the information from the ABAP Dictionary is not sufficient or appropriate for the list view. For example, the currency reference could either be missing or incorrect for a quantity field. In this way it is no longer possible to display the correct number of decimal places. You can set a new reference field for the currency or amount unit in the field catalog.

Interface Method
IF_SALV_GUI_FIELD_CATALOG_IDA

This interface provides a range of methods with which various fields of the field catalog can be edited.

In this way you

  • set the currency reference (assignment of a currency field) or a fixed currency for a field
    • set_currency_reference_field
    • set_fixed_currency
  • set the amount unit reference (assignment of a amount field) or a fixed amount unit for a field
    • set_unit_reference_field
    • set_fixed_unit

Examples of reports: SALV_IDA_SET_CURRENCY_FIELD, SALV_IDA_SET_FIXED_CURRENCY und SALV_IDA_SET_FIXED_UNIT