Hi ,
I want to schedule the ALV GRID report in background.Has anybody is having idea how to go about it ??
Thanks in advance.
ALV-GRID control report in Background-Urgent
Moderators: Snowy, thx4allthefish, YuriT, Gothmog
ALV-GRID control report in Background-Urgent
You can but the data comes out looking a mess. The ALV grids run on the presentation server (your GUI) not on the application server as other reports do. So do not use the ALV grid for reports that run in the background.
Re: ALV-GRID control report in Background-Urgent
No. It comes out and lookes nice (like print perview or classic ALV)Nathan Jones wrote:You can but the data comes out looking a mess. The ALV grids run on the presentation server (your GUI) not on the application server as other reports do. So do not use the ALV grid for reports that run in the background.

cl_gui_alv_grid=>offline( ) does the trick....it was posted on SDN....and now I included one of my ALV Grid programs and it works fine....still not crystal clear why

Incho
Code: Select all
*&---------------------------------------------------------------------*
*& Module status_0100 OUTPUT
*&---------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'TB000'.
IF m_custom_container IS INITIAL.
*\\ For backgroung processing
IF cl_gui_alv_grid=>offline( ) IS INITIAL.
CREATE OBJECT m_custom_container
EXPORTING container_name = container_main.
CREATE OBJECT m_grid
EXPORTING i_parent = m_custom_container.
ELSE.
* If it is in backround:
CREATE OBJECT m_grid
EXPORTING i_parent = m_doc_container.
ENDIF.
*// For backgroung processing
CALL METHOD m_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'IT_MDPS'
is_layout = wa_layout
is_variant = wa_variant
i_save = 'A'
it_special_groups = it_fieldgroups
CHANGING
it_outtab = it_mdps
it_fieldcatalog = it_fieldcat.
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_hotspot_click FOR m_grid.
ELSE.
CALL METHOD m_grid->refresh_table_display
EXPORTING i_soft_refresh = 'X'.
ENDIF.
ENDMODULE. " status_0100 OUTPUT