How To Fix FL059 - LIKE as typing for parameters is obsolete


SAP Error Message - Details

  • Message type: E = Error

  • Message class: FL - Function Builder messages

  • Message number: 059

  • Message text: LIKE as typing for parameters is obsolete

  • 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 FL059 - LIKE as typing for parameters is obsolete ?

    The SAP error message FL059 indicates that the use of the "LIKE" operator for typing parameters in function modules or methods is considered obsolete. This message typically arises when you are trying to define a parameter in a function module or method using the "LIKE" keyword, which is no longer recommended in newer versions of ABAP.

    Cause:

    The use of "LIKE" for parameter typing is outdated and has been replaced by more modern practices in ABAP. The error suggests that the code is using an older syntax that is not compliant with current best practices or standards in ABAP programming.

    Solution:

    To resolve this error, you should replace the "LIKE" keyword with the appropriate data type or structure. Here are the steps you can take:

    1. Identify the Parameter: Locate the parameter in your function module or method definition that is using "LIKE".

    2. Determine the Correct Data Type: Instead of using "LIKE", you should specify the actual data type or structure that the parameter should use. For example, if you were using LIKE <table_field>, you should replace it with the actual data type of that field, such as TYPE <data_type> or TYPE REF TO <class> for reference types.

    3. Update the Code: Modify the parameter definition in your function module or method. For example:

      PARAMETERS: p_field TYPE <data_type>.
    4. Test the Changes: After making the changes, activate the function module or method and test it to ensure that it works as expected without any errors.

    Related Information:

    • ABAP Documentation: Refer to the official SAP documentation for guidelines on parameter typing and best practices in ABAP programming.
    • Code Review: If you are maintaining legacy code, consider conducting a code review to identify other instances where obsolete syntax is used.
    • SAP Notes: Check for any relevant SAP Notes that may provide additional context or solutions related to this error message.

    By following these steps, you should be able to resolve the FL059 error and update your code to comply with current ABAP standards.

    • 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