Wednesday, December 16, 2009

FILE_GET_NAME

CALL FUNCTION 'FILE_GET_NAME'
    
EXPORTING
*     CLIENT                        = SY-MANDT
      logical_filename              =
*     OPERATING_SYSTEM              = SY-OPSYS
*     PARAMETER_1                   = ' '
*     PARAMETER_2                   = ' '
*     PARAMETER_3                   = ' '
*     USE_PRESENTATION_SERVER       = ' '
*     WITH_FILE_EXTENSION           = ' '
*     USE_BUFFER                    = ' '
*     ELEMINATE_BLANKS              = 'X'
*   IMPORTING
*     EMERGENCY_FLAG                =
*     FILE_FORMAT                   =
*     FILE_NAME                     =
*   EXCEPTIONS
*     FILE_NOT_FOUND                = 1
*     OTHERS                        = 2
            .

*------------------------------------------------
* EXPLANATION:
*------------------------------------------------
1. CLIENT => get the client specific [Physical File Name] from table {FILENAME}. If not found, get the cross-client [Physical File Name] from table {FILENAMECI}.
2. LOGICAL_FILENAME => [Logical File Name] specified via t-code FILE or SF01.
3. OPERATING_SYSTEM => Operating System of Presentation Server is used to determine the FILE_NAME.
4. PARAMETER_1 => if reserved word is used when specifying [Physical File Name], will be substituted with PARAMETER_1.
5. PARAMETER_2 => if reserved word is used when specifying [Physical File Name], will be substituted with PARAMETER_2.
6. PARAMETER_3 => if reserved word is used when specifying [Physical File Name], will be substituted with PARAMETER_3.
7. USE_PRESENTATION_SERVER => If [Logical Path] is defined for LOGICAL_FILENAME and USE_PRESENTATION_SERVER is not blank.
8. WITH_FILE_EXTESION => When ‘X’, concatenate ‘.’ And Data Format to FILE_NAME
9. USE_BUFFER => If the value of both CLIENT and LOGICAL_FILENAME match with the buffer data object, return the get the file_name from buffer
10.ELEMINATE_BLANKS => Condense FILE_NAME without gaps if it is ‘X’. (CONDENSE FILE_NAME NO-GAPS.)




*------------------------------------------------
* PLEASE TAKE NOTE
*------------------------------------------------
You may configure :
1. Cross-client logical file name or file path via T-Code: FILE

2. Client-specific logical file name via T-Code SF01





No comments:

Post a Comment