Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Remove top of page from ALV when executed in back ground

Hi All,

Is there a way that i can prevent Top of page IN ALV GRID OUT PUT WHEN EXECUTED IN BACK GROUND.

I thought we can do like this

if sy-batch eq 'X'.

ALV FM NO TOP OF PAGE

ELSE.

ALV WITH TOP OF PAGE

ENDIF.

tHIS SHOULD WORK BUT I WAS THINKING THAT I WOULD CALL FM ONLY ONE AND CLEAR THE EVENTS

IF SY-BATCH NE 'X'.

ty_events-name = slis_ev_top_of_page.

ty_events-form = 'TOP_OF_PAGE'.

append ty_events to it_events.

ELSE.

REFRESH IT_EVENTS.

ENDIF.

BUT THIS DOESN'T WORK

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE = ' '

i_callback_program = v_repid

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

i_callback_top_of_page = 'TOP_OF_PAGE'

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • is_layout = S_LAYOUT

it_fieldcat = fieldcat

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

it_sort = it_sortcat

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

it_events = it_events

  • IT_EVENT_EXIT =

IS_PRINT = gs_print

  • IS_REPREP_ID =

LET ME KNOW

Thanks

Tags:
Former Member
Former Member replied

<b>if sy-batch is initial.</b>

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE = ' '

i_callback_program = v_repid

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

<b>i_callback_top_of_page = 'TOP_OF_PAGE'</b>

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • is_layout = S_LAYOUT

it_fieldcat = fieldcat

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

it_sort = it_sortcat

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

it_events = it_events

  • IT_EVENT_EXIT =

IS_PRINT = gs_print

  • IS_REPREP_ID =

else.

call function 'REUSE_ALV_GRID_DISPLAY'

exporting

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE = ' '

i_callback_program = v_repid

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

<b>*i_callback_top_of_page = 'TOP_OF_PAGE'</b>

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

  • I_GRID_TITLE =

  • I_GRID_SETTINGS =

  • is_layout = S_LAYOUT

it_fieldcat = fieldcat

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

it_sort = it_sortcat

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

it_events = it_events

  • IT_EVENT_EXIT =

IS_PRINT = gs_print

  • IS_REPREP_ID =

endif.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question