Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8430

Re: How can I force the user to select a specific file extension?

$
0
0

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


Viewing all articles
Browse latest Browse all 8430

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>