Hi.
One option is to clean the extension given by the user, and force your own extension.
You can use FM CH_SPLIT_FILENAME to get the path and file name and then put your own.
CALL FUNCTION 'CH_SPLIT_FILENAME'
EXPORTING
complete_filename = v_user_file_name
IMPORTING
NAME = v_file_name
PATH = v_file_path .
CONCATENATE v_file_path v_file_name '.csv' into v_new_file_name
Hope this helps