ALV-GRID control report in Background-Urgent

Question:
Hi ,
I want to schedule the ALV GRID report in background.Has anybody is having idea how to go about it ??
Thanks in advance.
Answer:
SM36 and schedule.
Or is it a customer report?
Implemented with FMs or Classes?
Please provide us details.
Incho
Answer:
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.
Answer:
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.
No. It comes out and lookes nice (like print perview or classic ALV)
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
*&---------------------------------------------------------------------*
*&      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

More Articles:

How to transfer P.O. from client to client using ALE?
Submit program with radio buttons?
Read a variable name file from Unix into ABAP Urgent ?
LIST and Colour Heading?
Can Somebody Tell Me How To Freeze A Pane in ABAP Tbl Cntrl?
How do I start a program when a certain event happens.?