Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix SWDP_WB_TOOL_VD_DEPR021 - Value "hard" of property "wrapping" of "TextEdit" is deprecated


SAP Error Message - Details

  • Message type: E = Error

  • Message class: SWDP_WB_TOOL_VD_DEPR - Deprecated Objects

  • Message number: 021

  • Message text: Value "hard" of property "wrapping" of "TextEdit" is deprecated

  • Show details Hide details
  • What causes this issue?

    Enumeration value "hard" is deprecated.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    When using value "hard" line breaks might occur where you do not want
    them. Differentiate between two situations for wrapping:
    Use value "soft" if you want the text display to be wrapped. If the text
    needs to be broken for technical reasons, for example because the number
    of characters per line is limited, proceed as follows:
    Use data type "STRING_TABLE" in the context for the "TextEdit.text"
    property.
    Integrate a function for displaying the text that converts the text from
    your text data type to the "STRING_TABLE".
    Integrate a function for processing the text that converts the text from
    the "STRING_TABLE" to your text data type and thus wraps the text the
    way you want it to.

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message SWDP_WB_TOOL_VD_DEPR021 - Value "hard" of property "wrapping" of "TextEdit" is deprecated ?

    The SAP error message SWDP_WB_TOOL_VD_DEPR021 indicates that the value "hard" for the property "wrapping" of the TextEdit control is deprecated. This means that the use of this specific value is no longer recommended and may be removed in future versions of the software.

    Cause:

    The deprecation of the "hard" value for the wrapping property is likely due to changes in the underlying framework or best practices in UI development. SAP continuously updates its UI frameworks to improve performance, usability, and maintainability. The "hard" wrapping option may have been replaced with a more flexible or efficient approach.

    Solution:

    To resolve this error, you should update the property value for the wrapping attribute of the TextEdit control in your application. Instead of using "hard", you can use one of the recommended values, such as:

    • soft: This allows the text to wrap at the end of the line without inserting line breaks.
    • none: This prevents any wrapping, and the text will overflow if it exceeds the width of the control.

    Steps to Update:

    1. Open the relevant UI component or view where the TextEdit control is defined.
    2. Locate the property definition for wrapping.
    3. Change the value from "hard" to either "soft" or "none", depending on your requirements.
    4. Save your changes and test the application to ensure that the text behaves as expected.

    Related Information:

    • Documentation: Check the latest SAP UI5 or Fiori documentation for the TextEdit control to understand the available properties and their recommended values.
    • Version Compatibility: Ensure that your application is compatible with the version of SAP UI5 or Fiori you are using, as property values and controls may vary between versions.
    • Testing: After making changes, thoroughly test the UI to ensure that the text display meets your application's requirements and that there are no unintended side effects.

    By following these steps, you should be able to resolve the deprecation warning and ensure that your application remains compliant with the latest SAP standards.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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