How To Fix DDLS_HIER059 - Datatype for valid_to &1 is not as data type for period_to &2


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DDLS_HIER - Used for DDL Hierarchies

  • Message number: 059

  • Message text: Datatype for valid_to &1 is not as data type for period_to &2

  • 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 DDLS_HIER059 - Datatype for valid_to &1 is not as data type for period_to &2 ?

    The SAP error message DDLS_HIER059 indicates a mismatch in data types between two fields, specifically valid_to and period_to. This error typically arises in the context of data modeling or when working with hierarchical data structures in SAP, such as when defining InfoObjects in SAP BW or when working with data definitions in ABAP Dictionary.

    Cause:

    The error occurs when the data type of the field valid_to does not match the expected data type of the field period_to. This can happen due to:

    1. Inconsistent Data Types: The two fields may have been defined with different data types in the underlying database or data model.
    2. Incorrect Field Mapping: During the creation or modification of a data model, the fields may have been incorrectly mapped or defined.
    3. Changes in Data Model: If there were recent changes to the data model or database schema, it could lead to inconsistencies.

    Solution:

    To resolve the error, you can take the following steps:

    1. Check Data Types: Verify the data types of both valid_to and period_to. Ensure that they are compatible. For example, if one is defined as a date and the other as a timestamp, you may need to adjust one of them.

    2. Modify Data Model: If you find that the data types are indeed different, you may need to modify the data model to ensure that both fields have the same data type. This may involve changing the field definitions in the ABAP Dictionary or the InfoObject settings.

    3. Recreate or Adjust Mappings: If the fields are part of a mapping or transformation process, ensure that the mappings are correctly set up to handle the data types appropriately.

    4. Check for Updates: If you are working in a development environment, ensure that all changes have been transported correctly and that there are no pending updates that could affect the data model.

    5. Consult Documentation: Review SAP documentation or notes related to the specific version you are using, as there may be known issues or additional guidance on resolving this error.

    Related Information:

    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message.
    • Data Dictionary: Familiarize yourself with the SAP Data Dictionary (SE11) to understand how data types are defined and managed.
    • Debugging: If necessary, use debugging tools to trace where the error is occurring in the data flow or processing logic.

    By following these steps, you should be able to identify the root cause of the error and implement a solution to resolve it.

    • 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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker