12-04-2007 6:29 AM
Hai,
Can any one help me out
1. Is it possible to run ALV report in Background if Yes How
12-04-2007 6:34 AM
Hi Satish,
Check these links
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
Regards,
Satish
12-04-2007 6:34 AM
Hi Satish,
Check these links
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
Regards,
Satish
12-04-2007 6:35 AM
yes...
this is what you need to include...
http://searchsap.techtarget.com/tip/0,289483,sid21_gci1086671,00.html
12-04-2007 6:36 AM
Hi,
Yes you can Run in Background but make sure it is alv list, not alv Grid FM. if you are uisng alv list not problem , but if you are using alv grid then you can code like this..
if sy-batch = ' '.
call 'REUSE_ALV_GRID_DISPLAY'.
else.
call 'REUSE_ALV_LIST_DISPLAY'.
endif.
if you are using OO alv then write this code..
CALL METHOD cl_gui_alv_grid=>offline
RECEIVING e_offline = off.
IF off IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING container_name = g_container.
ENDIF.
12-04-2007 6:49 AM
SM36 and schedule
or
Code:
&----
*& 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