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

Executing a program in background is failed

Former Member
0 Likes
1,521

Hi Experts,

i am having a program while executing it in foreground its executing perfectly but while executing it in background, it is failed in job log its showing: this error:-Control Framework: Fatal error - GUI cannot be reached

ABAP/4 processor: RAISE_EXCEPTION.

While debugging i found the job is getting canceled at the statement

SUBMIT rs_display_variant WITH SELECTION-TABLE i_params

EXPORTING LIST TO MEMORY

AND RETURN.

RS_DISPLAY_VARIANT is not executimg while executing it in background. So if anybody knows how to resolve this or what i need to use instead of RS_DISPLAY_VARIANT . Please let me know.

Thanks

9 REPLIES 9
Read only

Former Member
0 Likes
1,373

It is not possible to call that in Background. since it is using the ALV GRID Control. It will fail in Background.

In the Program it is calling the Function RS_VARIANT_DISPLAY

in side the Function it is calling ALV control.

call method grid8->set_table_for_first_display

Read only

0 Likes
1,373

Hi Vijay,

How to resolve this. Is there any way to resolve it, if i want to execute it in background.

Read only

former_member761936
Active Participant
0 Likes
1,373

Hi Pankaj,

I run the program in back ground . It is working for me.May be the parameters you are passing , it may require any user interaction or any Fornt end function it is calling.Can you specify what parameters you are passing to that

Read only

0 Likes
1,373

Hi vijay,

i am passing the parameter RSVAR-REPORT and RSVAR-VARIANT. on the selection screen.

Read only

0 Likes
1,373

This message was moderated.

Read only

0 Likes
1,373

Hi vijay,

Program name is RSEXARCA and variant according to archive object.

Read only

Former Member
0 Likes
1,373

Pankaj,

Just refer:

[Executing a program in background is failed|;

Amit.

Read only

Former Member
0 Likes
1,373

Hi,

Use Offline method of CL_GUI_ALV_GRID

Refer following documentation of the method.

http://help.sap.com/saphelp_nw70/helpdata/EN/bf/3bd1369f2d280ee10000009b38f889/frameset.htm

Regards,

Mohaiyuddin

Read only

Former Member
0 Likes
1,373

Hi Experts,

This is solved by using FM RS_VARIANT_CONTENTS and formating the output that i want and passing the ouput to spool to generate a list and from spool to memory.