How To Fix COM_ATTRFRG_GEN059 - Data type 'Currency' requires the length 5


SAP Error Message - Details

  • Message type: E = Error

  • Message class: COM_ATTRFRG_GEN - Message Class for Generating Attributes and Sets

  • Message number: 059

  • Message text: Data type 'Currency' requires the length 5

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message COM_ATTRFRG_GEN059 - Data type 'Currency' requires the length 5 ?

    The SAP error message COM_ATTRFRG_GEN059 indicates that there is an issue with the data type 'Currency' in your SAP system. Specifically, it states that the currency data type requires a length of 5, which typically refers to the format of the currency field in the database or in the data being processed.

    Cause:

    1. Incorrect Field Length: The currency field in your data structure or database table is defined with an incorrect length. In SAP, currency fields usually require a specific length to accommodate the currency code and the amount.
    2. Data Mapping Issues: If you are importing or exporting data, the mapping of the currency field may not align with the expected format in SAP.
    3. Configuration Issues: There may be configuration settings in your SAP system that are not aligned with the expected currency field length.

    Solution:

    1. Check Field Definition: Review the definition of the currency field in the relevant data structure or database table. Ensure that it is defined with a length of 5.

      • You can do this by using transaction codes like SE11 (Data Dictionary) to check the table structure.
    2. Adjust Data Mapping: If you are working with data imports or exports, ensure that the mapping for the currency field is correct and that it adheres to the required length.

      • If you are using tools like LSMW or BAPIs, verify the field mappings.
    3. Review Configuration: Check the configuration settings related to currency in your SAP system. This may involve looking at the settings in the Financial Accounting (FI) module or the controlling (CO) module.

      • Ensure that the currency settings are consistent across the relevant modules.
    4. Testing: After making the necessary adjustments, perform tests to ensure that the error does not reoccur. This may involve running the transaction or process that triggered the error again.

    Related Information:

    • Currency Data Type: In SAP, currency fields are typically defined to hold both the currency code (like USD, EUR) and the amount. The length of 5 usually accommodates the currency code and a decimal point for the amount.
    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message. SAP Notes can provide additional context or solutions for specific scenarios.
    • Documentation: Refer to SAP documentation for guidelines on defining data types and field lengths, especially for financial data.

    If the issue persists after following these steps, consider reaching out to your SAP support team or consulting with an SAP expert for further assistance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant