How To Fix /SCMTMS/VSS_ABAP_ENG021 - Invalid dates/times: invalid duration


SAP Error Message - Details

  • Message type: E = Error

  • Message class: /SCMTMS/VSS_ABAP_ENG -

  • Message number: 021

  • Message text: Invalid dates/times: invalid duration

  • 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 /SCMTMS/VSS_ABAP_ENG021 - Invalid dates/times: invalid duration ?

    The SAP error message /SCMTMS/VSS_ABAP_ENG021 Invalid dates/times: invalid duration typically occurs in the context of SAP Transportation Management (TM) when there is an issue with the date or time values being processed. This error indicates that the system has encountered an invalid duration, which could be due to several reasons.

    Causes:

    1. Incorrect Date/Time Format: The date or time values provided may not be in the expected format, leading to parsing errors.
    2. Logical Errors in Dates: The start date may be later than the end date, or the duration calculated from the provided dates may not make sense (e.g., negative durations).
    3. Missing Values: Required date or time fields may be left blank or not filled in correctly.
    4. Time Zone Issues: If the system is configured to handle multiple time zones, discrepancies in time zone settings can lead to invalid durations.
    5. Data Entry Errors: Manual entry errors when inputting dates or times can lead to invalid values.

    Solutions:

    1. Check Date/Time Formats: Ensure that all date and time values are entered in the correct format as expected by the system.
    2. Validate Logical Consistency: Review the start and end dates to ensure that they are logically consistent (e.g., start date should be before the end date).
    3. Fill in Required Fields: Make sure that all mandatory date and time fields are filled in correctly.
    4. Review Time Zone Settings: If applicable, check the time zone settings in the user profile and ensure they are correctly configured.
    5. Debugging: If you have access to debugging tools, you can trace the execution to see where the invalid duration is being calculated and identify the root cause.
    6. Consult Documentation: Refer to SAP documentation or help resources for specific guidelines on date and time handling in the context of your transaction.

    Related Information:

    • SAP Notes: Check for any relevant SAP Notes that might address this specific error or provide patches or updates.
    • Transaction Codes: Familiarize yourself with transaction codes related to Transportation Management, such as /SCMTMS/ for configuration and monitoring.
    • User Forums: Engage with SAP community forums or user groups where similar issues may have been discussed, and solutions shared.

    If the problem persists after checking these areas, it may be beneficial to reach out to your SAP support team or consult 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author