How To Fix DD_MT_SHARING079 - Line &1, Field &2: LIKE condition is used with non character-like field


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DD_MT_SHARING - DDIC Multi Tenancy Sharing: Messages

  • Message number: 079

  • Message text: Line &1, Field &2: LIKE condition is used with non character-like field

  • 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 DD_MT_SHARING079 - Line &1, Field &2: LIKE condition is used with non character-like field ?

    The SAP error message DD_MT_SHARING079 indicates that there is an issue with the use of the LIKE condition in a query or selection where the field being referenced is not a character-like field (i.e., it is not of type CHAR, STRING, or similar). This typically occurs in ABAP programs or SQL queries when trying to perform a pattern match on a field that does not support such operations.

    Cause:

    The error arises when:

    • You are trying to use the LIKE operator on a field that is of a non-character type, such as numeric (INT, DEC, etc.) or date fields.
    • The field specified in the error message is not compatible with the LIKE condition, which is intended for string comparisons.

    Solution:

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

    1. Check Field Types: Review the data types of the fields involved in your query or selection. Ensure that the field you are using with the LIKE operator is indeed a character-like field.

    2. Change the Condition: If the field is not character-like, consider using a different comparison operator that is appropriate for the field type. For example:

      • For numeric fields, use = or <> for equality checks.
      • For date fields, use comparison operators like =, <, >, etc.
    3. Convert Data Types: If you must perform a pattern match, consider converting the non-character field to a string type using appropriate conversion functions (e.g., CONCATENATE, WRITE, etc.) before applying the LIKE condition. However, this should be done with caution, as it may not always yield the desired results.

    4. Review the Logic: Ensure that the logic of your program or query is correct. If you intended to use a character-like field, double-check that you are referencing the correct field.

    Related Information:

    • ABAP Documentation: Refer to the SAP ABAP documentation for more details on data types and operators.
    • Debugging: Use the ABAP debugger to step through your code and identify where the error occurs. This can help you understand the context of the error better.
    • SAP Community: If you are still having trouble, consider reaching out to the SAP Community forums for additional support and insights from other developers who may have encountered similar issues.

    By following these steps, you should be able to resolve the error and ensure that your queries and selections are correctly structured.

    • 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