Do you have any question about this error?
Message type: E = Error
Message class: SAP_GUIDELINES - SAP ONLY: Check internal guidelines
Message number: 136
Message text: RETURNING parameter in method: (&1) violates naming convention
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.
SAP_GUIDELINES136
- RETURNING parameter in method: (&1) violates naming convention ?The SAP error message SAP_GUIDELINES136 indicates that a returning parameter in a method does not adhere to the naming conventions defined in the ABAP programming guidelines. This is a common issue when developing ABAP classes and methods, especially when following best practices for naming conventions.
Cause:
The error occurs when the name of a returning parameter does not conform to the expected naming standards. In ABAP, naming conventions typically require that:
- Names should be meaningful: They should clearly indicate the purpose of the parameter.
- Naming format: Returning parameters often follow a specific format, such as starting with a lowercase letter and using underscores to separate words (e.g.,
result_data
).- Avoiding reserved words: The name should not conflict with reserved keywords in ABAP.
Solution:
To resolve this error, you should:
- Check the Naming Convention: Review the naming conventions for returning parameters in your development environment or project guidelines.
- Rename the Parameter: Change the name of the returning parameter in the method definition to comply with the naming conventions. For example, if your parameter is named
Result
, you might rename it toresult_data
or something similar that follows the guidelines.- Recheck the Method Signature: After renaming, ensure that the method signature is updated accordingly and that all references to the parameter in the method body are also updated.
Related Information:
By following these steps, you should be able to resolve the SAP_GUIDELINES136 error and ensure that your ABAP code adheres to the required standards.
Get instant SAP help. Start your 7-day free trial now.
SAP_GUIDELINES135
EXPORTING parameter in method: (&1) violates naming convention
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SAP_GUIDELINES134
IMPORTING parameter in method: (&1) violates naming convention
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SAP_GUIDELINES137
EVENT definition: (&1) violates naming convention
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SAP_GUIDELINES138
EVENT EXPORTING parameter: (&1) violates naming convention
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.