This website is not affiliated with, sponsored by, or approved by SAP AG.

ALV-GRID control report in Background-Urgent

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

ALV-GRID control report in Background-Urgent

Postby Guest » Tue Dec 16, 2003 4:01 am

Hi ,
I want to schedule the ALV GRID report in background.Has anybody is having idea how to go about it ??

Thanks in advance.
Guest
 

Postby Incho » Tue Dec 16, 2003 4:25 am

SM36 and schedule. :wink:

Or is it a customer report?
Implemented with FMs or Classes?

Please provide us details.

Incho
Incho
 
Posts: 1537
Joined: Mon Oct 21, 2002 3:32 am
Location: Belgium

ALV-GRID control report in Background-Urgent

Postby Nathan Jones » Tue Dec 16, 2003 10:37 am

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.
Nathan Jones
 

Re: ALV-GRID control report in Background-Urgent

Postby Incho » Tue Dec 16, 2003 10:49 am

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.


No. It comes out and lookes nice (like print perview or classic ALV) :wink:
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 :oops:

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

Incho
 
Posts: 1537
Joined: Mon Oct 21, 2002 3:32 am
Location: Belgium


Return to ABAP

Who is online

Users browsing this forum: No registered users and 8 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.