Do you have any question about this error?
Message type: E = Error
Message class: AD - Data Dictionary application messages
Message number: 059
Message text: Format CURR/QUAN requires you to specify a reference field
You have defined a field that has format CURR or QUAN and, thus,
contains currencies or quantity units.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Assign a field containing currency amounts a reference field with the
CUKY format
Assign a field containing quantity data a reference field with the UNIT
format
Error message extract from SAP system. Copyright SAP SE.
AD059
- Format CURR/QUAN requires you to specify a reference field ?The SAP error message AD059 ("Format CURR/QUAN requires you to specify a reference field") typically occurs when you are trying to use a currency or quantity field in a report or a data structure without specifying a reference field that defines the context for that currency or quantity. This is particularly relevant in the context of ABAP programming or when defining data elements in the Data Dictionary.
Cause:
- Missing Reference Field: The error arises when a currency (CURR) or quantity (QUAN) field is defined without a corresponding reference field that indicates the unit of measure or currency type.
- Incorrect Data Element Definition: If you are defining a data element for a currency or quantity field, you must specify a reference field that provides the necessary context.
- Inconsistent Data Structure: If you are working with a structure or table that includes CURR or QUAN fields, and the reference field is not defined, this error will occur.
Solution:
Define a Reference Field: Ensure that the currency or quantity field has a corresponding reference field defined in the Data Dictionary. This reference field typically indicates the currency type (for CURR) or the unit of measure (for QUAN).
- For example, if you have a currency field
AMOUNT
, you should also have a reference field likeCURRENCY
that specifies the currency type (e.g., USD, EUR).Check Data Element Settings: If you are creating or modifying a data element, make sure that the "Reference Field" property is set correctly. This can be done in the Data Element definition in the ABAP Dictionary (transaction SE11).
Review Table/Structure Definitions: If the error occurs in a table or structure, check the definitions of the fields to ensure that all CURR and QUAN fields have appropriate reference fields defined.
Use Correct Data Types: Ensure that you are using the correct data types for currency and quantity fields. For example, CURR should be defined with a reference to a currency field, and QUAN should be defined with a reference to a unit of measure.
Related Information:
By ensuring that all currency and quantity fields have the necessary reference fields defined, you should be able to resolve the AD059 error.
Get instant SAP help. Start your 7-day free trial now.
AD058
Reference field &-& not in format &
What causes this issue? A reference field does not have the correct format. A currency reference field must have the format CUKY A quantity reference...
AD057
&-& (Specify a reference field)
What causes this issue? You have specified a field containing a quantity unit or currency.System Response The system issues an error message and wil...
AD060
& (Specify a data type)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
AD061
& (Output length shorter than calculated (&) )
What causes this issue? The output length is the sum of the maximum field length and the required formatting characters (for example, commas and peri...
Click on this link to search all SAP messages.