we have executed a report in foreground which is executed succesfully. but in background the job failed at the container object.
create container for alv-tree
DATA: L_TREE_CONTAINER_NAME(30) TYPE C.
L_TREE_CONTAINER_NAME = 'CCONTAINER1'.
CREATE OBJECT G_CUSTOM_CONTAINER
CONTAINER_NAME = L_TREE_CONTAINER_NAME
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5.
IF SY-SUBRC <> 0.
MESSAGE X208(Z0) WITH 'ERROR'(100).
Please let us know any pointers on the same.
Why a job fails if we use container/object oriented concepts in report in background?