Application Development 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: 

Spool request for ALV

Former Member
0 Kudos

Can a spool be created for ALV output when the program is run in background?

If so how do we achieve this?

4 REPLIES 4

Former Member
0 Kudos

When you execute a report in the background automatically the output is sent to spool.

I am assuming you are using one of the REUSE function modules.

If NOT, then you will have to check if if the grid's attirbute OFFLINE before creating the custom container and it will work fine.

Regards,

Ravi

dani_mn
Active Contributor
0 Kudos

HI,

Yes a spool request is created check from the transaction 'SM37'.

Regards,

Former Member
0 Kudos

I am using reuse display fm.

But when run in back ground it doesnot show the spool.

GS_LAYOUT-colwidth_optimize = 'X'.

GS_LAYOUT-zebra = 'X'.

GS_PRINT-no_print_listinfos = 'X'.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = sy-repid

IS_LAYOUT = GS_LAYOUT

IS_PRINT = GS_PRINT

IT_FIELDCAT = GT_FIELDCAT[]

IT_SORT = GT_SORT[]

I_DEFAULT = 'X'

I_SAVE = 'U'

IS_VARIANT = G_VARIANT

TABLES

T_OUTTAB = ITAB

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

IF SY-SUBRC <> 0.

  • MESSAGE ID 'SU' TYPE 'E' NUMBER 000 WITH 'No Entries'

ENDIF.

Former Member
0 Kudos

Try with minimum paramteres to this ALV FM, the alv should display in background.And then keep adding remaining parameters.