Do you have any question about this error?
Message type: E = Error
Message class: FL - Function Builder messages
Message number: 059
Message text: LIKE as typing for parameters is obsolete
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.
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.
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:
Identify the Parameter: Locate the parameter in your function module or method definition that is using "LIKE".
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 asTYPE <data_type>
orTYPE REF TO <class>
for reference types.Update the Code: Modify the parameter definition in your function module or method. For example:
PARAMETERS: p_field TYPE <data_type>.
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:
By following these steps, you should be able to resolve the FL059 error and update your code to comply with current ABAP standards.
Get instant SAP help. Start your 7-day free trial now.
FL058
Function group master program for & exists without TLIBG entry
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FL057
Error when deleting enhancement information
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FL060
Saved
What causes this issue? Your work has been saved.System Response The system issues an error message and will not allow you to continue with this tra...
FL061
Inactive state saved
What causes this issue? The results of your work have been saved in the modification databaseSystem Response The system issues an error message and ...
Click on this link to search all SAP messages.