Do you have any question about this error?
Message type: E = Error
Message class: COM_PME_PARSER - Configuration
Message number: 122
Message text: Multiple-value formal parameter &1 in table/function &2
The formal parameters used for tables/functions accessed in
dependencies must all be single-value characteristics. However, formal
parameter &V1& for table/function &V2& is multiple-value.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Formal parameter &V1& for table/function &V2& cannot be used in
dependencies.
You need to create a single-value characteristic and allocate it to the
table or function. You can then use this characteristic as a formal
parameter in object dependencies.
Error message extract from SAP system. Copyright SAP SE.
COM_PME_PARSER122
- Multiple-value formal parameter &1 in table/function &2 ?The SAP error message COM_PME_PARSER122 indicates that there is a problem with a formal parameter in a function or table that is expected to accept a single value but is being passed multiple values instead. This typically occurs in the context of ABAP programming or when working with function modules, methods, or procedures that are designed to handle single-value parameters.
Cause:
- Multiple Values Passed: The most common cause of this error is that a parameter defined as a single-value parameter is being passed multiple values, either from a table or a selection screen.
- Incorrect Data Type: The data type of the parameter may not match the expected type, leading to confusion in how values are being interpreted.
- Improper Function Call: The function or method may be called incorrectly, leading to the passing of multiple values instead of a single value.
Solution:
- Check Parameter Definition: Review the definition of the function or method to ensure that the parameters are correctly defined. If a parameter is meant to accept only a single value, ensure that it is not being passed a table or a range of values.
- Modify the Calling Code: If you are calling a function or method, ensure that you are passing only a single value for the parameter in question. If you need to pass multiple values, consider modifying the function to accept a table or a different data structure.
- Debugging: Use debugging tools to trace the execution of the code and identify where the multiple values are being introduced. This can help pinpoint the exact location of the issue.
- Data Type Consistency: Ensure that the data types of the values being passed match the expected data types of the parameters. If necessary, convert or cast the values appropriately.
Related Information:
By following these steps, you should be able to resolve the error message COM_PME_PARSER122 and ensure that your function calls are correctly structured.
Get instant SAP help. Start your 7-day free trial now.
COM_PME_PARSER121
Table/function does not allow inference of values
What causes this issue? If a table/function in an action is not in the conditional part of an action (after IF), the table/function is used to infer ...
COM_PME_PARSER117
Restriction not possible: expression not linear
What causes this issue? You can only use formulas to restrict a numeric characteristic if the formula in the characteristic you want to restrict is l...
COM_PME_PARSER123
Formal parameter &1 in table/function &2 is restrictable
What causes this issue? The formal parameters which are used in tables/functions and are accessed in object dependencies must all be single-value cha...
COM_PME_PARSER124
Current parameter &1 in table/function &2 is multiple value
What causes this issue? In actions, procedures, preconditions and selection conditions, you cannot use multiple-value characteristics as entry parame...
Click on this link to search all SAP messages.