Using Logical File Names in Programs

Use

To use logical file names in your application programs, execute the following steps:

Procedure

  1. Use transaction FILE to check whether definitions are stored in the system for the logical file names. These definitions convert the logical file names to platform-specific file names. If necessary, create new definitions with transaction FILE.

    For more information, see the Implementation Guide under Start of the navigation pathSAP NetWeaver Next navigation step Application Server Next navigation step System Administration Next navigation step Platform-Independent FilenamesEnd of the navigation path.

  2. Ensure that the physical paths specified in these definitions exist in the runtime environment file system. If necessary, create the required directories, or contact your system administration.

  3. Test the file name conversion by calling the function module in the individual test of transaction SE37.

  4. Add a call of the function module to your program. To do this, you can choose Start of the navigation pathEdit Next navigation step PatternEnd of the navigation path in the ABAP Editor.

For more information about saving files on the application and presentation servers, see Using Files in the ABAP User Guide.