2006 Oct 25 7:54 AM
Hi all,
When i am trying to schedule my ALV report in background
it gives a dump saying that foreground operations cant be done in background.
How can i run my ALV report in background.
pls help.
apt points will be given
Regards,
Tarang
Hi all,
When i am trying to schedule my ALV report in background
it gives a dump saying that foreground operations cant be done in background.
How can i run my ALV report in background.
pls help.
apt points will be given
Regards,
Tarang
2006 Oct 25 8:15 AM
Hi,
i thin k you use alv-grid. its not possible to use in background.
try this:
IF SY-BATCH = ' '.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = PROGNAME
I_CALLBACK_PF_STATUS_SET = 'MAIN'
I_CALLBACK_USER_COMMAND = COMMAND
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE_GRID'
IS_VARIANT = VARIANT
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT
IT_SORT = SORT
IT_FILTER = FILTER
I_SAVE = 'A'
IT_EVENTS = EVENTS
IT_EVENT_EXIT = EVENT_EXIT
IS_PRINT = PRINT
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ELSE.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = PROGNAME
I_CALLBACK_PF_STATUS_SET = 'MAIN'
I_CALLBACK_USER_COMMAND = COMMAND
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE_GRID'
IS_VARIANT = VARIANT
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT
IT_SORT = SORT
IT_FILTER = FILTER
I_SAVE = 'A'
IT_EVENTS = EVENTS
IT_EVENT_EXIT = EVENT_EXIT
IS_PRINT = PRINT
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ENDIF.
regards, Dieter
Message was edited by: Dieter Gröhn
2006 Oct 25 9:18 AM
Hi,
Go thru this link it may help you.
http://www2.warwick.ac.uk/services/finance/sap/training/reporting4.7/output
Thanks
Sunil
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |