ABAP/4   ОКМ   ДМ   экономическая информатика   4GL   Теория и практика обработки информации

Компьютерный язык ABAP/4 - ключевые слова

SUBMIT TO SAP-SPOOL

Basic form

SUBMIT rep ... TO SAP-SPOOL.

Additions



1. ... DESTINATION dest
... COPIES cop
... LIST NAME name
... LIST DATASET dsn
... COVER TEXT text
... LIST AUTHORITY auth
... IMMEDIATELY flag
... KEEP IN SPOOL flag
... NEW LIST IDENTIFICATION flag
... DATASET EXPIRATION days
... LINE-COUNT lin
... LINE-SIZE col
... LAYOUT layout
... SAP COVER PAGE mode
... COVER PAGE flag
... RECEIVER rec
... DEPARTMENT dep
... ARCHIVE MODE armode
... ARCHIVE PARAMETERS arparams
... WITHOUT SPOOL DYNPRO

2. ... SPOOL PARAMETERS params
... ARCHIVE PARAMETERS arparams
... WITHOUT SPOOL DYNPRO

Effect

Calls the report rep with list output to the SAP spool database.

Additions



... DESTINATION dest (output device)

... COPIES cop (number of copies)

... LIST NAME name (name of list)

... LIST DATASET dsn (name of spool dataset)

... COVER TEXT text (title of spool request)

... LIST AUTHORITY auth (authorization for display)

... IMMEDIATELY flag (print immediately ?)

... KEEP IN SPOOL flag (keep list after print ?)

... NEW LIST IDENTIFICATION flag (new spool request ?)

... DATASET EXPIRATION days (number of days list retained)

... LINE-COUNT lin ( lin lines per page)

... LINE-SIZE col ( col columns per line)

... LAYOUT layout (print format)

... SAP COVER PAGE mode ( SAP cover sheet ?)

... COVER PAGE flag (selection cover sheet ?)

... RECEIVER rec ( SAP user name of
recipient)

... DEPARTMENT dep (name of department)

... ARCHIVE MODE armode (archiving mode)

... ARCHIVE PARAMETERS arparams (structure with archiving
parameters)

... WITHOUT SPOOL DYNPRO (skip print control screen)
With the parameters IMMEDIATELY , KEEP IN SPOOL , NEW LIST IDENTIFICATION and COVER TEXT , flag must be a literal or character field with the length 1. If flag is blank, the parameter is switched off, but any other character switches the parameter on. You can also omit any of the sub-options of PRINT ON . mode with SAP COVER PAGE can accept the values ' ' , 'X' and 'D' . These values have the following meaning:

' ' : Do not output cover sheet
'X' : Output cover sheet
'D' : Cover sheet output according to printer setting

armode with ARCHIVE MODE can accept the values '1' , '2' and '3' . These values have the following meaning:

'1' : Print only
'2' : Archive only
'3' : Print and archive

arparams with ARCHIVE PARAMETERS must have the same structure as ARC_PARAMS . This parameter should only be processed with the function module GET_PRINT_PARAMETERS .

Effect

Output is to the SAP spool database with the specified parameters. If you omit one of the parameters, the system uses a default value. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
... TO SAP-SPOOL WITHOUT SPOOL DYNPRO

This you could use this option if all the spool parameters have already been set!

Note

When specifying the LINE-SIZE , you should not give any value > 132 because most printers cannot print wider lists.

Addition 2



... SPOOL PARAMETERS params (structure with print
parameters)
... ARCHIVE PARAMETERS arparams (Structure with archive
parameters)
... WITHOUT SPOOL DYNPRO (skip print parameters
screen)

Effect

Output is to the SAP spool database with the specified parameters. The print parameters are passed by the field string params which must have the structure of PRI_PARAMS . The field string can be filled anf modified with the function module GET_PRINT_PARAMETERS . The specification arparams with ARCHIVE PARAMETERS must have the structure of ARC_PARAMS . This parameter should only be processed with the function module GET_PRINT_PARAMETERS . Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
... WITHOUT SPOOL DYNPRO

Example

* Without archiving 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.

Example

* With archiving DATA: PARAMS LIKE PRI_PARAMS, ARPARAMS LIKE ARC_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' SAP_OBJECT = 'RS' AR_OBJECT = 'TEST' ARCHIVE_ID = 'XX' ARCHIVE_INFO = 'III' ARCHIVE_TEXT = 'Description' NO_DIALOG = ' ' IMPORTING OUT_PARAMETERS = PARAMS OUT_ARCHIVE_PARAMETERS = ARPARAMS VALID = VALID. IF VALID <> SPACE. SUBMIT RSTEST00 TO SAP-SPOOL SPOOL PARAMETERS PARAMS ARCHIVE PARAMETERS ARPARAMS WITHOUT SPOOL DYNPRO. ENDIF.


Index
© SAP AG 1996
ABAP/4   ОКМ   ДМ   экономическая информатика   4GL   Теория и практика обработки информации

НОВОСТИ ФОРУМА

Форум Рыцари теории эфира


Рыцари теории эфира
 10.11.2021 - 12:37: ПЕРСОНАЛИИ - Personalias -> WHO IS WHO - КТО ЕСТЬ КТО - Карим_Хайдаров.
10.11.2021 - 12:36: СОВЕСТЬ - Conscience -> РАСЧЕЛОВЕЧИВАНИЕ ЧЕЛОВЕКА. КОМУ ЭТО НАДО? - Карим_Хайдаров.
10.11.2021 - 12:36: ВОСПИТАНИЕ, ПРОСВЕЩЕНИЕ, ОБРАЗОВАНИЕ - Upbringing, Inlightening, Education -> Просвещение от д.м.н. Александра Алексеевича Редько - Карим_Хайдаров.
10.11.2021 - 12:35: ЭКОЛОГИЯ - Ecology -> Биологическая безопасность населения - Карим_Хайдаров.
10.11.2021 - 12:34: ВОЙНА, ПОЛИТИКА И НАУКА - War, Politics and Science -> Проблема государственного терроризма - Карим_Хайдаров.
10.11.2021 - 12:34: ВОЙНА, ПОЛИТИКА И НАУКА - War, Politics and Science -> ПРАВОСУДИЯ.НЕТ - Карим_Хайдаров.
10.11.2021 - 12:34: ВОСПИТАНИЕ, ПРОСВЕЩЕНИЕ, ОБРАЗОВАНИЕ - Upbringing, Inlightening, Education -> Просвещение от Вадима Глогера, США - Карим_Хайдаров.
10.11.2021 - 09:18: НОВЫЕ ТЕХНОЛОГИИ - New Technologies -> Волновая генетика Петра Гаряева, 5G-контроль и управление - Карим_Хайдаров.
10.11.2021 - 09:18: ЭКОЛОГИЯ - Ecology -> ЭКОЛОГИЯ ДЛЯ ВСЕХ - Карим_Хайдаров.
10.11.2021 - 09:16: ЭКОЛОГИЯ - Ecology -> ПРОБЛЕМЫ МЕДИЦИНЫ - Карим_Хайдаров.
10.11.2021 - 09:15: ВОСПИТАНИЕ, ПРОСВЕЩЕНИЕ, ОБРАЗОВАНИЕ - Upbringing, Inlightening, Education -> Просвещение от Екатерины Коваленко - Карим_Хайдаров.
10.11.2021 - 09:13: ВОСПИТАНИЕ, ПРОСВЕЩЕНИЕ, ОБРАЗОВАНИЕ - Upbringing, Inlightening, Education -> Просвещение от Вильгельма Варкентина - Карим_Хайдаров.
Bourabai Research - Технологии XXI века Bourabai Research Institution