Do you have any question about this error?
Message type: E = Error
Message class: PT - Messages for ABAP print functions
Message number: 021
Message text: The parameter OUT_PARAMETERS is mandatory
The function module GET_PRINT_PARAMETERS is responsible for
ascertaining and returning print parameters. Because the parameter for
the return of the print parameters (OUT_PARAMETERS) was not specified,
the current call is pointless.
A short dump was triggered to avoid followup errors.
Add the IMPORTING parameter OUT_PARAMETERS to the call of
GET_PRINT_PARAMETERS.
Error message extract from SAP system. Copyright SAP SE.
PT021
- The parameter OUT_PARAMETERS is mandatory ?The SAP error message PT021, which states "The parameter OUT_PARAMETERS is mandatory," typically occurs in the context of using the SAP Process Integration (PI) or Process Orchestration (PO) when dealing with function modules or methods that require specific output parameters to be defined.
Cause:
The error indicates that a required output parameter,
OUT_PARAMETERS
, has not been provided in the function call or method invocation. This can happen due to:
- Missing Output Parameter: The function module or method you are trying to call expects an output parameter that has not been defined or passed.
- Incorrect Function Call: The function call may be incorrectly structured, leading to the omission of required parameters.
- Configuration Issues: There may be issues in the configuration of the process or the mapping that leads to the absence of expected parameters.
Solution:
To resolve the PT021 error, you can take the following steps:
Check Function Module/Method Definition: Review the definition of the function module or method you are calling. Ensure that you understand which parameters are required, especially the
OUT_PARAMETERS
.Provide Required Parameters: Make sure that you are passing all mandatory parameters, including
OUT_PARAMETERS
, in your function call. If you are using a mapping or transformation, ensure that the output parameters are correctly mapped.Review Mapping Configuration: If this error occurs in a mapping scenario, check the mapping configuration to ensure that all necessary output fields are defined and correctly mapped.
Debugging: If you have access to debugging tools, you can set breakpoints and step through the code to see where the parameters are being set and identify why
OUT_PARAMETERS
is not being populated.Consult Documentation: Refer to the SAP documentation for the specific function module or method to understand the expected parameters and their usage.
Check for Updates: Ensure that your SAP system is up to date, as sometimes bugs or issues are resolved in newer versions or patches.
Related Information:
By following these steps, you should be able to identify the cause of the PT021 error and implement a solution to resolve it.
Get instant SAP help. Start your 7-day free trial now.
PT020
Specify printer name
What causes this issue? The field for the printer name is blank.System Response The system issues an error message and will not allow you to continu...
PT019
No archive information found for object type &1 and document type &2
What causes this issue? No information was found about optical archiving. This may be due to either of the following reasons: No valid archiving para...
PT022
The parameter VALID is mandatory
What causes this issue? Function module GET_PRINT_PARAMETERS determines whether the user dialog has been canceled, making the print parameters (OUT_P...
PT023
The printer parameters specified here might be changed dynamically.
What causes this issue? Program &V1&, for which the user has specified the print and archiving parameters, contains statements that could cha...
Click on this link to search all SAP messages.