Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dump when run in background

Former Member
0 Likes
1,395

Hi All,

I have a z-report which displays a ALV report. when I run this in background it gets canceled. when i see the log , it has dump and dump is as shown below.

A RAISE statement in the program "CL_GUI_CONTROL================CP" raised the exception condition "CNTL_ERROR".

Since the exception was not intercepted by a superior

program, processing was terminated.

What could be the problem, suggest me a solution if i have to add some code into my program or is it an application error which can be solved by SAP Notes.

Regards

Divakar Goud,

Hi All,

I have a z-report which displays a ALV report. when I run this in background it gets canceled. when i see the log , it has dump and dump is as shown below.

A RAISE statement in the program "CL_GUI_CONTROL================CP" raised the exception condition "CNTL_ERROR".

Since the exception was not intercepted by a superior

program, processing was terminated.

What could be the problem, suggest me a solution if i have to add some code into my program or is it an application error which can be solved by SAP Notes.

Regards

Divakar Goud,

3 REPLIES 3
Read only

amit_khare
Active Contributor
0 Likes
849

Are you using GUI_UPLOAD or GUI_DOWNLOAD in the report then they will not work there.

Use OPEN DATASET instead to read or write.

Also, check weather there is a Container for OO ALV on the Report then use Docking Containe when SY_BATCH = 'X'.

If its an normal ALV then Change the GRID to LIST layout for Backgroud. Its not that we cannot display grid in background we can do that but we require some layout handling there.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
849

The program is using ABAP Controls. ABAP controls require interaction with the presentation server and hence cannot be run in the background. You will need to change the program to run it in the background.

Please mark points if the solution was useful.

Regards,

Manoj

Read only

Former Member
0 Likes
849

Hi,

i think you use ALV_GRID. This doesn't work in background.

Check SY_BATCH and use instead REUSE_ALV_LIST_DISPLAY'.

Regards, Dieter