TRANSFER is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
TRANSFER
Basic form
TRANSFER f TO dsn.
Addition
... LENGTH len
Effect
Transfers the field f (usually a field string) to the sequential file specified in dsn (this may be a literal or a field).
Binary mode (addition IN BINARY MODE of the OPEN DATASET statement):
Write to the file in the length of field f .
Text mode (addition IN TEXT MODE of the OPEN DATASET statement):
Write a line.
If
the specified file is not open, TRANSFER attempts to open the file dsn
FOR OUTPUT ( IN BINARY MODE or using the further specifications of the
last OPEN command for this file). If this fails, a runtime error occurs.
Example
DATA REC(80).
TRANSFER REC TO '/usr/test'.
Notes
You can read sequential datasets with READ DATASET .
The
structure of file names depends very much on the operating system you
are using. You can access portable programs with the function module
GET_FILE_NAME . This returns the relevant physical name for a given
logical file name.
Addition
... LENGTH len
Effect
Transfers the length of the record to be output in the length len .
Related 10 ABAP Syntax Tutorials
Most readed SAP Tutorials
- WRITE - Output to a list ( SAP ABAP Keyword)
WRITE ( Output to a list ) is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - List of SAP HR TABLES and Infotypes tables
Detailed full list of tables and infotypes used in SAP HR module. - List of SAP MM Transaction codes
This documentation covers the details of SAP MM Transaction codes - SELECT-OPTIONS ( SAP ABAP Keyword)
SELECT-OPTIONS is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - FI Accounts Receivable and Accounts Payable | SAP FI PDF manual
The following topics are an introduction to the Accounts Receivable and Accounts Payable application components. - SAP MM Process Flow
The typical procurement cycle for a service or material consists of the following phases: - SELECT clause ( SAP ABAP Keyword)
SELECT clause is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
Latest Added SAP documents
- 9KE9 Transaction code
Details about SAP transaction code 9KE9 - 9KE8 Transaction code
Details about SAP transaction code 9KE8 - 9KE7 Transaction code
Details about SAP transaction code 9KE7 - 9KE6 Transaction code
Details about SAP transaction code 9KE6 - 9KE5 Transaction code
Details about SAP transaction code 9KE5 - 9KE4 Transaction code
Details about SAP transaction code 9KE4 - 9KE3 Transaction code
Details about SAP transaction code 9KE3 - 9KE2 Transaction code
Details about SAP transaction code 9KE2 - 9KE1 Transaction code
Details about SAP transaction code 9KE1 - 9KE0 Transaction code
Details about SAP transaction code 9KE0