‎2007 Jun 11 11:36 AM
How to send report output to spool directly?
Is there any Tcode/Tables for spool requests?
‎2007 Jun 11 11:38 AM
Hi
You can genearate the spool using the code
new-page print on
line-size 160
line-count 58
no-title
no-heading
destination 'LOCL'
immediately ' '
new list identification 'X'
no dialog.
and the field <b>sy-spono</b> will give the SPOOL ID No.
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jun 11 11:38 AM
Hi
You can genearate the spool using the code
new-page print on
line-size 160
line-count 58
no-title
no-heading
destination 'LOCL'
immediately ' '
new list identification 'X'
no dialog.
and the field <b>sy-spono</b> will give the SPOOL ID No.
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jun 11 12:02 PM
‎2007 Jun 11 11:43 AM
DATA: PARAMS LIKE PRI_PARAMS,
DAYS(1) TYPE N VALUE 2,
COUNT(3) TYPE N VALUE 1,
VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING DESTINATION = 'LT50'
COPIES = COUNT
LIST_NAME = 'TEST'
LIST_TEXT = 'SUBMIT ... TO SAP-SPOOL'
IMMEDIATELY = 'X'
RELEASE = 'X'
NEW_LIST_ID = 'X'
EXPIRATION = DAYS
LINE_SIZE = 79
LINE_COUNT = 23
LAYOUT = 'X_PAPER'
SAP_COVER_PAGE = 'X'
COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
NO_DIALOG = ' '
IMPORTING OUT_PARAMETERS = PARAMS
VALID = VALID.
IF VALID <> SPACE.
SUBMIT RSTEST00 TO SAP-SPOOL
SPOOL PARAMETERS PARAMS
WITHOUT SPOOL DYNPRO.
ENDIF.