Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

in AL11 , csv file getting error that 'it is not text file'.

0 Kudos
460

I have uploaded internal table data into CSV file in particular path, but when i open that file, it is getting error-
''it is not text file''.what should i do?

2 REPLIES 2

Tomas_Buryanek
Active Contributor
0 Kudos
296

How did you uploaded that file?

Common mistake is not using correct data size of binary file (number of bytes)...

-- Tomas --

0 Kudos
296

i have given path
my code:
CONSTANTS: lv_path2 LIKE filename-pathintern VALUE ' ' .

DATA: lv_file2 TYPE aptfd.
DATA:lv_file_dest TYPE localfile.
CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
EXPORTING
client = sy-mandt
logical_path = lv_path2
file_name = lv_file2
IMPORTING
file_name_with_path = lv_file_dest.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.