Application Development 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: 

background processing in ALV Oops

Former Member
0 Kudos

Hi all,

I have requirement to execute a report in background processing.I have to create report using classes.

Iam using class cl_gui_alv_grid for creating report.When iam executing report in background am getting Fatal errror-GUI can not be reached.

Regards,

Srilatha.

2 REPLIES 2

former_member223537
Active Contributor
0 Kudos

Hi,

The issue is bcz. in background screen container is not recognized.

Change the code as follows:

SET PF-STATUS 'SCREEN_100'.

  • SET TITLEBAR 'xxx'.

<b>*if program is run in background

CALL METHOD cl_gui_alv_grid=>offline

RECEIVING

e_offline = off.

IF off IS INITIAL.

IF container1 IS INITIAL.

CREATE OBJECT container1

EXPORTING

container_name = 'CC_ALV1' .

ENDIF.

ENDIF.

CREATE OBJECT g_grid1

EXPORTING

i_parent = container1.</b>

PERFORM prepare_field_catalog.

PERFORM exclude_button.

PERFORM display_alv.

Best regards,

Prashant

0 Kudos

Hi Prashant,

Thanks for your reply.

I had one doubt in that code.what the subroutine PERFORM exclude_button will do??

Please explain.

regards,

Srilatha.