To select all files if * is applied

HI
I have a requirement as below
In selection screen of a program there are  fields on selection screen as below
file path
file name
in path the path of file is specified and in file name name of file
my requirement is that uptill now the only one file is being picked up and specified in the selection screen now we want to select all files paterns just like we use in search
for eg ig user give value File_* then all files should be fetched begening with File_ same as it works in search for file names ..
please suggest how to approach for the same
regards
arora

also to add on i have defined the selection parameter as
p_file TYPE epsf-epsfilnam.
now if there are more that one file selected then it needs to be handeled in program as well ? giving the logic imlemented for any queries to explain better so first concern is that the file names should be picked according to pattern as specified in teh program
pls suggest
also further on progam I am doing below FM cll
Get files of directory
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
  EXPORTING
    dir_name               = p_path
    file_mask              = p_file
  TABLES
    dir_list               = gt_dir_file
  EXCEPTIONS
    invalid_eps_subdir     = 1
    sapgparam_failed       = 2
    build_directory_failed = 3
    no_authorization       = 4
    read_directory_failed  = 5
    too_many_read_errors   = 6
    empty_directory_list   = 7
    OTHERS                 = 8.
where gt_dir_file        TYPE STANDARD TABLE OF epsfili
then i am reading files one by one
*Read files of directory one by one
LOOP AT gt_dir_file INTO gs_dir_file.
  CONCATENATE p_path
              gs_dir_file-name
              INTO g_dataset SEPARATED BY gc_sep.
*Open file saved in Application server
OPEN DATASET g_dataset FOR INPUT IN TEXT MODE ENCODING DEFAULT.
  OPEN DATASET g_dataset FOR INPUT IN LEGACY TEXT MODE.
  IF sy-subrc = 0.
    DO.
*Read file contents
      READ DATASET g_dataset INTO gs_string_data.

Similar Messages

  • How to select all files from the application server.

    Hi all,
    I have  a requirement to select all files with the same file format I.e i have created no of files with same name but different time stamps addition , now i want to select all the fiels and read the data into an internal table and sort them on the user requirement,  I am using FM -
    /SAPDMC/LSM_F4_SERVER_FILE to get single file name, i should also give the option on the  selection screen for the user to select the file range I.e form which to which the sorting should be done.
    could anybody suggest me the function module which selects all the file names .
    Regards,
    Sre.
    Edited by: Alvaro Tejada Galindo on Mar 10, 2008 4:49 PM

    Hi,
    PARAMETER: p_fdir type pfeflnamel DEFAULT '/usr/sap/tmp'.
    data: begin of it_filedir occurs 10.
    include structure salfldir.
    data: end of it_filedir.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Get Current Directory Listing for OUT Dir
    call function 'RZL_READ_DIR_LOCAL'
    exporting
    name = p_fdir
    tables
    file_tbl = it_filedir.
    List of files are contained within table it_filedir
    loop at it_filedir.
    write: / it_filedir-NAME.
    endloop.
    Regards,
    Omkaram.

  • How to see all image types when saving an image without selecting "all files"every time

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/951766]]</blockquote>
    Hallo, and thank you for reading this.
    I am a person who saves a lot of images online and renames them in different folders in different names like B - 34 or G - 56. I have been working with firefox 10 for quite some time and it had a pretty handy bug (I guess) where I could save an image and firefox would just save the image in it's original type (JPEG,PNG etc) while "save as type" was empty.
    It also always has shown all the image types in the folder where I save the images (except for GIF) and that helpes me quite a lot by saving me the trouble of selecting "all files" every time I save or going to the folder to rename every image.
    Now this seems to be lacking in the newest firefox versions and my question is if I can set firefox to always show me all the image file types when saving an image, instead of only showing JPEG's when I try to save a JPEG.
    Thank you for your time.

    I suspect this is a Windows problem. I am surmising the FilePicker uses the Operating System or Desktop facilities. Does Windows 7 offer any other file categories like ''images'' ?
    I do not normally use Windows 7, but may the option depend upon the directory being an indexed one, I ask after finding this thread ''Bring File types tab back'' [http://www.windows7taskforce.com/view/819]
    This question is a duplicate of [/questions/951764]
    Normally I would lock the duplicate question, but in this instance I will leave it open as it is unanswered and someone may give a better reply.

  • How to select all files in a stack? Control-click doesn't work

    how to select all files in a stack? Control-click doesn't work

    Switch to list or column view. If you must use icon view, instead of Shift-clicking items, click on an empty space near one of them and drag to enclose them.
    (119467)

  • How to select all files in "user dir" (LastAccessedDirectrory) using applet

    Hi,
    Can anyone tell me " How to select all files in "user dir" (Last Accessed Directrory) using applet"?
    For this which method in applet used?
    Thanks in Advance.

    1) Do you want "user dir" (watever that is) or do you wnat the last accessed directory? Last accessed by what/whom?
    2) Applets can't access the local file sytem, and for good reason, unless they're signed and the client has given permission.

  • I cant select all files with the new update

    I cant select all files with the new itunes update

    Version 11.1.5.5 of iTunes was just released today. If you update to that, does that help with the recognition troubles?
    http://www.apple.com/itunes/download/

  • Logic 8.02 always crashes when I select all files in Audio bin

    hi, does anybody else know this prob?
    Logic 8.02 always crashes when I select all files in Audio bin. (that´s the only crash I have in 2 years work, but it happens for sure)
    thx

    How do you select them all? Via the Audio Bin menu, via keycommand or by mouse?

  • Is there a way of selecting all files within multiple folders?

    Let's say I have a folder called 'text books' and within that folder I have 100 more folders named by author.  Inside the folders are .txt files of their work.  Is there any way I can select all the .txt docs and paste them in one big folder?  In other words, is there a way of removing all the sub-folders and putting all the .txt files together in one place?
    regards
    Rob

    Thanks Niel.  Worked a treat!  Took me a short while to figure out how to get it to run in the directory I wanted it to (as the file was also on NAS)  as I have never used AppleSript before.
    So, for posterity, and if anyone else is interested in trying to do this, here is my final script:
    set pa to "/Volumes/Public/etc - whatever your path is"
    set aspa to POSIX file pa
    set tpa to "/Volumes/Public/ directory you are moving them to"
    set as2pa to POSIX file tpa
    tell application "Finder"
      move every file of entire contents of folder aspa to folder as2pa
    end tell

  • How to see all image file types when saving images without selecting "all files"

    Hallo, and thank you fom reading.
    I am a person who saves a lot of images online in different folders with different names like G - 456 or F - 35.
    I have been using firefox 10.0.2 for a long time because of a bug (I guess) that made it easier to save images.
    When I saved an image it would always show me all the image files in any folder I wanted to save it, and that way making it easier for me to save files with the right names.
    Now with the newer firefox (currently 19.0) whenever I try to save a JPEG I only see the JPEG files in the folder and only way to see the others is by selecting "save as type" all files, but with this I also see all the files that are not images.
    This used to save me a lot of trouble and a bit of time but I dont see anything in the options menu that can help me. Is there a way to recreate this function?
    Thank you for your time.

    I suspect this is a Windows problem. I am surmising the FilePicker uses the Operating System or Desktop facilities. Does Windows 7 offer any other file categories like ''images'' ?
    I do not normally use Windows 7, but may the option depend upon the directory being an indexed one, I ask after finding this thread ''Bring File types tab back'' [http://www.windows7taskforce.com/view/819]
    This question is a duplicate of [/questions/951764]
    Normally I would lock the duplicate question, but in this instance I will leave it open as it is unanswered and someone may give a better reply.

  • Shift and left click doesn't select all files in a folder

    When i want to select a group of consecutive files, shift & left click only selects the first & last file & not all in between. How do i change this to select ALL? Im using a 2014 MacBook Air running the latest version of Yosemite (as of 4th January 2015).

    Switch to list or column view. If you must use icon view, instead of Shift-clicking items, click on an empty space near one of them and drag to enclose them.
    (119467)

  • How to implement select all files (Ctrl-A) in open file dialog??

    I successfully created file open dialog. However, in most windows file open dialog,
    if you press "Ctrl-A," it will select all the files in the directory. If you press "Ctrl"
    key with arrow key, it will highligh the files you want. ie. It allows users to open
    more than one files at the same time. How to implement it in Java??

    For doing this, you have to enable the file multiselection.
    If you have created a JFileChooser as :
    JFileChooser fileChooser = new JFileChooser();
    Add the following statement to set the multiselection property.
    fileChooser.setMultiSelectionEnabled(true);
    Manish.

  • Is it possible to select all files within a directory (and not the folders/subfolders)?

    For instance, in my iTunes directory, I would like to select all of the music files without selecting the other olders (artist name, album name). Going through with Shift+click and command+click will take an eternity. If I just highlight everything and hit "open", it will open ALL of the folders as well as opening the actual files. I want to skip the folders if possible with a mass selection.

    Well, its gonna be an expensive comparison since there is no non-arbitrary way to iterate through the files, but try:
    String f1, f2;  // the comparing files
    //get a primary list of files to iterate through
    Process p = Runtime.getRuntime.exec("ls");  // if in Linux
    BufferedReader pri =
        new BufferedReader(
        new InputStreamReader(
        p.getInputStream()));
    while((f1 = pri.readLine()) != null){    // for each file...
        Process q = Runtime.getRuntime.exec("ls");  // get all file names
        BufferedReader sec =
            new BufferedReader(
            new InputStreamReader(
            q.getInputStream()));
        while((f2 = sec.readLine()) != null){   // and for each of these
            if(!f1.equals(f2))  // as long as it's not the same file
                DO_COMPARISON(new File(f1), new File(f2));   // compare them
    }

  • JFileChooser - Select All Files in the Directory

    Hi all. I am currently using JFileChooser and I need a functionality that will let the user choose a directory and then automatically select all the files that exists in that directory. I have tried looking around for references, but no luck so far. I hope someone can help. Thanks in advance.

    This is what I use frequently in my applications :
    * Requests the loading of all Images
    * in a directory.
    private void loadImageDirectory() {
      //create a FileFilter so the user only sees directories     
      javax.swing.filechooser.FileFilter dirfilter=new javax.swing.filechooser.FileFilter() {
        public boolean accept(File f) {
          if(f==null)
            return false;
          if(!f.isDirectory())
            return false;
          return true;
        public String getDescription() {
          return "Directories only";
      //now create the filechooser     
      JFileChooser jfc=new JFileChooser();
      jfc.setDialogTitle("Select a directory");
      jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
      //remove the standard FileFilters (otherwise shows files too     
      jfc.resetChoosableFileFilters();
      //Set a FileFilter for directories only
      jfc.addChoosableFileFilter(dirfilter);
      int result=jfc.showOpenDialog(this);
      jfc_image_dir=jfc.getCurrentDirectory();
      if(result==JFileChooser.APPROVE_OPTION) {
        //here i call a method that does something with the directory     
        iv.addDirectory(jfc.getSelectedFile());
    }This always worked for me ??
    You might want to try??

  • Selecting all files from JFilechooser and renaming them??

    dear all
    i am working on a application that selects the jpeg,jpg,jpe files form the jfilechooser with an additonal botton rename which calls the rename method and the selected file is renamed.
    i have been succssful in mselecting one file and renaming it.but the problem is with...
    1) Selection of multiple files and sending their names and parent directories getParent(); is not working with taht....should i use arrays to store that .....but how when i have enabled multiple selection already.
    2)SEcond problem is to refersh the contents of JFileChooser after i have renamed it.iwant that it shopuld be refreshed automatically just after renaming has been done.
    help is always appreciated..
    regards
    s m sharma (trainee s/w/ engg)

    hi everybody
    i have done it myself.......it was not too tough that u didnot responed...anyway thanks..
    regards
    s m sharmna

  • Selecting all files from a directory in a JFileChooser

    Hello all...
    i m trying to make an application in which i simply print all the files in a directory and their path on clicking and selecting the directory or by pressing the open button of the JFileChooser.
    Any help would be highly appreciated.
    Thanx.
    Salman

    Yet another multi post:
    http://forum.java.sun.com/thread.jspa?messageID=3529802

Maybe you are looking for

  • WiFI problem: Driver is not bound succesfully...any comments how to solve?

    After a system check my Wifi stopped suddenly working. I have - noticed that the WiFI-network object is not anymore visible in the Network Connections - run WLAN diagnostics with Deveice Manager ==> Tells hw OK - I have updated and reloaded the drive

  • Cant connect with accidentaly blocked Sound Station

    I accidentaly blocked my Sound Station on my IPhone 4S I already reseted my IPhone but it still doesnt work.

  • How to skip header data ...

    The user selects a data file on the browser and submits it. the content of the file is transferred to the server using METHOD="POST" ENCTYPE="multipart/form-data". in the server when i read this stream of data i get the header info along with the con

  • Latex not working after texlive update

    hi! I've just updated the texlive package but now latex does not work. From the log, all I can see is that it does not find the file ruhyphen.tex. I've got both the texlive-most and texlive-lang groups installed. any help?

  • Remove entry from T77S0

    Hello experts, I am a beginner and undergoing ABAP HR training. While using a no. of transactions, on certain events, the control stop at a no. of breakpoints. I found out this is due to an entry in table T77S0 as follows GRPID = BREAK SEMID = MH5AS