ABAP – F4_FILENAME

The Function Module F4_FILENAME is used for browing a file from the local system. The syntax is as follows:

CALL FUNCTION ‘F4_FILENAME’

EXPORTING

PROGRAM_NAME        = SYST-CPROG        “Current Program name you are working

DYNPRO_NUMBER       = SYST-DYNNR      ” Current Screen Number

FIELD_NAME                 = ‘<field name> ‘      ” Field name for which you want the file browse option

IMPORTING

   FILE_NAME           = <variable for file>.                         ”  Will contains the file name after selection

 

If you want to upload some file for a particular field you can use the above function. The name of the file will present in the variable <variable for file>.

 

0 Comments

Leave A Reply