TRANSFER ( SAP ABAP Keyword)

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 .

Most readed SAP Tutorials

Latest Added SAP documents

Custom Search
ABAP Tutorials ABAP Syntax BAPI SAP Jobs SAP Glossary SAP Netweaver SAP XI SAP Download SAP Interview questions

Complete SAP Study materials | SAP JOBS | PDF Tutorials   List of SAP Companies India

Google-Translate-Chinese (Simplified) BETA Google-Translate-English to French Google-Translate-English to German Google-Translate-English to Italian Google-Translate-English to Japanese BETA Google-Translate-English to Korean BETA Google-Translate-English to Russian BETA Google-Translate-English to Spanish

All of the product names here are trademarks of their respective companies. The site sapbrainsonline.com no way affiliated with SAP AG. Use information on this site at your own risk. Information furnished in the site is collected from various sites and posts from users. This site does not host any files on its server. If any compliants about the posts please contact us at sapbrain.support@gmail.com

Sitemap
web counter