Skip to Content
0
Former Member
Jan 11, 2008 at 07:22 AM

Re: Flat file validation

43 Views

Hi experts,

I am using a FM : F4_filename to obtain file from front end.(presentaion server)

And the i am using fm 's to upload into internal tables.

before that i need to validate the flat file name which i got through F4_filename.

sample code.

at selection-screen on value-request for H_FILE.

CALL FUNCTION 'F4_FILENAME'

  • EXPORTING

  • PROGRAM_NAME = SYST-CPROG

  • DYNPRO_NUMBER = SYST-DYNNR

  • FIELD_NAME = ' '

IMPORTING

FILE_NAME = H_FILE

.

MOVE P_FILE1 TO C_FILE.

Validating the file

  • IF C_FILE NE 'GLAC.TXT'.

  • MESSAGE E999 WITH 'select the valid file'.

  • ENDIF.

it is giving dump

-


Is ther any fm to obtain file from application server(al11)?