Do you have any question about this error?
Message type: E = Error
Message class: 28 - Configuration
Message number: 123
Message text: Formal parameter &1 in table/function &2 is restrictable
The formal parameters which are used in tables/functions and are
accessed in object dependencies must all be single-value
characteristics. However, formal parameter &V1& for table/function &V2&
is restrictable.
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
object dependencies. Correct your entry accordingly.
Error message extract from SAP system. Copyright SAP SE.
28123
- Formal parameter &1 in table/function &2 is restrictable ?The SAP error message 28123, which states "Formal parameter &1 in table/function &2 is restrictable," typically occurs in the context of ABAP programming when there is an issue with the definition of a formal parameter in a function module or method. This error indicates that a formal parameter is defined in a way that does not comply with the expected restrictions for that parameter type.
Cause:
The error can arise due to several reasons:
- Parameter Type Mismatch: The formal parameter is defined in a way that it is expected to be non-restrictable, but it is being treated as restrictable.
- Incorrect Definition: The parameter might be defined incorrectly in the function module or method signature.
- Inconsistent Usage: The way the parameter is used within the function or method does not align with its definition.
Solution:
To resolve this error, you can take the following steps:
Check Parameter Definition: Review the definition of the formal parameter in the function module or method. Ensure that it is defined correctly according to the expected data type and usage.
Adjust Parameter Attributes: If the parameter is intended to be restrictable, ensure that it is defined with the appropriate attributes. For example, if it should be an input/output parameter, make sure it is defined as such.
Review Function Module/Method Logic: Look at the logic within the function module or method to ensure that the parameter is being used correctly. If it is being modified or expected to be modified, it should be defined as an output parameter.
Consult Documentation: Refer to SAP documentation or the ABAP programming guidelines for more information on parameter definitions and restrictions.
Testing: After making changes, test the function module or method to ensure that the error is resolved and that the functionality works as expected.
Related Information:
By following these steps, you should be able to identify the cause of the error and implement a solution to resolve it.
Get instant SAP help. Start your 7-day free trial now.
28122
Multiple-value formal parameter &1 in table/function &2
What causes this issue? The formal parameters used for tables/functions accessed in dependencies must all be single-value characteristics. However, f...
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 ...
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...
28125
Inference of default value for &1 in table/function not possible
What causes this issue? The syntax check found an error. When calling table or function &V1&, the inference of a default value was requested ...
Click on this link to search all SAP messages.