SAP Function RSPO_INSERT_SPOOL_CONCATENATE - Concatenation of Several Files for SAPLPD and Call of PC Command

Parameter Reference Type Length Default Optional Text
COMMAND 0 Command Being Called
DATATYPE 0 'RAW' X Type of Transferred Data
DEVICE TSP03-PADEST C 4 ' ' X Device to be Output to
FILE1_NAME 0 ' ' X Name of First File
FILE1_SIZE 0 0 X Size of First File in Bytes
FILE2_NAME 0 ' ' X Name of Second File
FILE2_SIZE 0 0 X Size of Second File in Bytes
IMMEDIATELY PRI_PARAMS-PRIMM C 1
PARAMETER 0 ' ' X Parameter for the Command
REQ_PAGES RSPOTYPE-PAGES I 4 '1' X Number of Pages Generated
REQ_TITLE TSP01-RQTITLE C 68 ' ' X Print Request Title

Parameter Reference Type Length Text
SPOOL_REQ_ID TSP01-RQIDENT I 4 Number of Generated Spool Request

Parameter Reference Length Optional Text
TABLE1 0 Data for First File (or Empty)
TABLE2 0 Data for Second File (or Empty)

Exception Text
BAD_FILESIZE Table Size Does Not Match File Size
SPOOL_REQ_FAILED Spool Request Could Not be Created

Functionality
This function module uses the ESC-R command of SAPLPD to send raw data(delivered in 0 to 2 internal tables) to a formatting program on thePC. You must specify a printer which sends its data via SAPWIN on aSAPLPD (Version >= 2.42) as the output device. There must be aG_ format (with empty actions) defined in the formats fordevice type SAPWIN. However, there should be a \e%SAPWIN% in theinitialization so that printing can be carried out not only with accessmethod S.
Function module RSPO_OUTPUT_DEVICEDATA is used. For detailedinformation, refer to the documentation. Only the new parameters aredescribed here.

Optional tables
TABLE1
The data of this table is stored on the PC under .
TABLE2
The data of this table is stored on the PC under .

Required input parameters
COMMAND
Command name of the file to be called on the PC. A maximum of 255characters (incl. path name) are available.

Optional input parameters
PARAMETER
Character chain that is given to the command to be called. 4095characters are possible.
FILE1_NAME / FILE2_NAME
Name of file (max. 255 chars. incl. path) to be created on the PC.Specification is only necessary if TABLEx (x=1,2) is not empty.
FILE1_SIZE / FILE2_SIZE
Size of this file (in Bytes). The size of the corresponding table mustmatch.

Output parameters
SPOOL_REQ_ID
Spool number received by the request.

Notes
In TST05 you must define type TEXT (e.g. TEXTSAPWIN).
If the customer is using a modified device type, an appropriate
TST05 entry must be generated.

Further information
Function module RSPO_OUTPUT_DEVICEDATA