Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: SCRL - Messages for custom resuse libraries
Message number: 562
Message text: Method &1 has more than one RETURNING parameter.
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.
SCRL562
- Method &1 has more than one RETURNING parameter. ?The SAP error message SCRL562 indicates that a method in an ABAP class has been defined with more than one
RETURNING
parameter. In ABAP, a method can only have oneRETURNING
parameter, which is used to return a single value from the method. If you attempt to define multipleRETURNING
parameters, the system will raise this error.Cause:
The error occurs when:
RETURNING
parameter in its signature.RETURNING
parameter.To resolve this error, you need to modify the method definition to ensure that it has only one RETURNING
parameter. Here are the steps to do this:
RETURNING
parameter in the method signature. If you need to return multiple values, consider the following alternatives:RETURNING
parameters, you can define additional EXPORTING
parameters to return multiple values.RETURNING
parameter.RETURNING
parameter.Here’s an example of how to correct the method definition:
Incorrect Method Definition:
METHOD my_method
RETURNING VALUE(result1) TYPE string
RETURNING VALUE(result2) TYPE string.
Corrected Method Definition:
METHOD my_method
RETURNING VALUE(result) TYPE string
EXPORTING VALUE(extra_result) TYPE string.
IMPORTING
, EXPORTING
, and RETURNING
parameters in ABAP methods.By following these guidelines, you should be able to resolve the SCRL562 error and properly define your method in ABAP.
Get instant SAP help. Sign up for our Free Essentials Plan.
SCRL561
Scale of parameter &1 in method &2 was changed in an incompat. way.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SCRL560
Length of parameter &1 in method &2 was changed in an incompat. way.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SCRL563
The parameters of the method &1 changed in an incompatible way.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SCRL564
The parameter &1 was removed from method &2.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.