Issue / Problem Statement?
The issue occurs after code remediation is done as part of the S/4 HANA 2020 Upgrade activities. When we try to Print Preview Purchase Order ( ME2N Transaction ) and then after preview when we navigate back to Purchase Order Display then it dumps.
Category ABAP programming error
Runtime Errors RAISE_EXCEPTION
ABAP Program CL_PO_HEADER_HANDLE_MM========CP
Application Component MM-PUR
Error analysis
A RAISE statement in program “CL_HANDLE_MANAGER_MM==========CP” has raised exception condition “FAILURE”. Since the exception was not caught by a program higher up in the call hierarchy, processing was terminated.
Short text for exception condition:
You can find detailed documentation about the exception condition in transaction SE37 (Function Library). You can find the name of the| function module called from the display of active calls.
How to correct the error
If the error occurs in a non-modified SAP program, you might be able to find a solution in the SAP Notes system. If you have access to the SAP Notes system, check there first using the following keywords:
“RAISE_EXCEPTION” , “CL_HANDLE_MANAGER_MM==========CP”, CL_HANDLE_MANAGER_MM==========CM005 “GET”, “CL_HANDLE_MANAGER_MM==========CP” FAILURE , or “RM_MEPO_GUI” “FAILURE”
Analysis
A dump occurred due to the replacement of the obsolete function module BAPI_PO_GETDETAIL with a new one BAPI_PO_GETDETAIL1 inside the PDF (Adobe) Interface logic.
Solution
The short dump was a result of the work area “cleanup” procedure within the function called BAPI_PO_GETDETAIL1.
It can be resolved by inserting the below line before the BAPI Call.
cl_mmpur_bapi_po=>put_repid( im_repid = sy-repid )