Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

spool for alv

Former Member
0 Likes
472

Hi All,

'A spool for GRID type ALV cannot be generated.'

Going by this, does it mean that when a grid type ALV is submitted for a spool, it wud give just a ALV list display?

OR, just that the spool will not take a grid type ALV at all.

Thanks.

Hi All,

'A spool for GRID type ALV cannot be generated.'

Going by this, does it mean that when a grid type ALV is submitted for a spool, it wud give just a ALV list display?

OR, just that the spool will not take a grid type ALV at all.

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
435

In spool you can not get the Grid ALV ...

it is basically meant for the external communication...

Hope this gives you the perfect answer,

Assign reward points if it helps.

-Gaurang

Read only

Laxmana_Appana_
Active Contributor
0 Likes
435

Hi,

Change your code like below , it will work in background case also.


DATA :o_grid  TYPE REF TO cl_gui_alv_grid,
          o_container          TYPE REF TO cl_gui_custom_container,
          o_dock_container     TYPE REF TO cl_gui_docking_container.
           
*  IF sy-batch IS INITIAL.   "Foreground Option

*      CREATE OBJECT o_container
*                 EXPORTING
*                       container_name = 'CONTAINER'.
*      CREATE OBJECT o_grid
*              EXPORTING
*                    i_parent = o_container.
*                    i_appl_events     = 'X'.
*
*  ELSE. "Background
*
*    CREATE OBJECT o_grid
*        EXPORTING
*          i_parent = o_dock_container.
*    IF sy-subrc NE 0.
*    ENDIF.
*
*  ENDIF.

Regards

L Appana