Skip to Content
author's profile photo Former Member
Former Member

ALV

Hai,

Can any one help me out

1. Is it possible to run ALV report in Background if Yes How

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:34 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:35 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.