Sunday, September 10, 2017

OOP Report : Backgroung job cancelled in SAP ABAP


Problem : When we are running ALV OOP report as background job , Sometimes will get status as cancelled in SM37.


Solution :

Step 1 : Check the container used for holding the ALV Report . If the container used is CL_GUI_CUSTOM_CONTAINER , then it is not possible to run report in background.

Solution : Replace CL_GUI_CUSTOM_CONTAINER object reference with CL_GUI_DOCKING_CONTAINER. Now it's possible to run report as background job.


Note : If you are using CL_GUI_DOCKING_CONTAINER , no need of creating object .Just pass the referece to CL_GUI_ALV_GRID object creation.

Signature :

CREATE OBJECT obj_grid
Exporting

i_parent  = obj_docking_container
.