Do you have any question about this error?
Message type: E = Error
Message class: 28 - 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.
28122
- Multiple-value formal parameter &1 in table/function &2 ?The SAP error message 28122, which states "Multiple-value formal parameter &1 in table/function &2," typically occurs when a function module or method is called with a parameter that is expected to accept a single value, but multiple values are being passed instead. This can happen in various scenarios, such as when using a table parameter that is not properly defined or when the calling program does not match the expected input structure.
Cause:
- Incorrect Parameter Type: The function module or method is defined to accept a single value for a parameter, but the calling program is passing a table or multiple values.
- Data Type Mismatch: The data type of the parameter being passed does not match the expected data type in the function module or method.
- Improper Use of Structures: If a structure is expected but a table is passed, or vice versa, this error can occur.
Solution:
- Check Function Module/Method Definition: Review the definition of the function module or method to understand the expected parameters. Ensure that you are passing the correct type and number of parameters.
- Adjust Parameter Passing: If you are passing a table, ensure that you are using the correct parameter that is defined to accept a table. If a single value is expected, ensure that you are passing only one value.
- Use Appropriate Data Types: Make sure that the data types of the parameters being passed match the expected data types in the function module or method.
- Debugging: Use the debugger to trace the values being passed to the function/module. This can help identify where the multiple values are coming from and how to correct them.
Related Information:
By following these steps, you should be able to resolve the error message 28122 and ensure that the parameters being passed to the function module or method are correct.
Get instant SAP help. Start your 7-day free trial now.
28121
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 ...
28118
Duplicate entry &1 in the allowed values for characteristic &2
What causes this issue? The allowed values after the keyword IN contain duplicate entries.System Response The syntax check issues a warning.How to f...
28123
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...
28124
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.