cancel
Showing results for 
Search instead for 
Did you mean: 

REUSE_ALV_GRID_DISPLAY En proceso de Fondo

0 Kudos

Buenos días, tengo un problema con la función REUSE_ALV_GRID_DISPLAY cuando la utilizo en Job de Fondo (a traves de un programa que llama a esa funcion), no respeta los subtotales del layout, muestra todos los registros del reporte, en cambio si ejecuto la transacción on-line si respeta los subtotales del layout, el problema es que necesito ejecutarla en fondo porque demora 20.000segundos, alguno tuvo este problema?? o sabe como lo puedo solucionar???

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Puedes colocar el código para entender un poco más quizás por donde podría estar el problema?

Former Member
0 Kudos

http://help-abap.zevolving.com/2009/03/classical-alv-change-subtotal-ii-for-print/

DATA: lo_grid TYPE REF TO cl_gui_alv_grid.

  • get the global reference

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

IMPORTING

e_grid = lo_grid.

  • get the subtotal

DATA: it_01 TYPE REF TO data.

*

CALL METHOD lo_grid->get_subtotals

IMPORTING

ep_collect01 = it_01.

*

  • change the data

FIELD-SYMBOLS: <ft_tab> TYPE ANY TABLE,

<fs_tab> TYPE ANY,

<ff_field> TYPE ANY.

ASSIGN it_01->* TO <ft_tab>.

ASSIGN ('(SAPLKKBL)IT_COLLECT00[]') TO <ft_tab>.