2006 Nov 06 10:20 AM
Can a spool be created for ALV output when the program is run in background?
If so how do we achieve this?
Can a spool be created for ALV output when the program is run in background?
If so how do we achieve this?
2006 Nov 06 10:24 AM
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
2006 Nov 06 10:24 AM
HI,
Yes a spool request is created check from the transaction 'SM37'.
Regards,
2006 Nov 07 2:15 AM
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.
2010 Aug 04 2:24 AM
Try with minimum paramteres to this ALV FM, the alv should display in background.And then keep adding remaining parameters.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |