Get All Files from mimes & Display it

hello experts!!
How can I get file list from src\mimes\componetns\my.compoent.app folder to a table and open it(any kind of file) on lead select?
nikhiL

1) [File Download| https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71]
2) [From Mimes| Display PDF in different window by reading Binary file in MIME folder.;
Create a resource type from the file extension
Thanks All

Similar Messages

  • Get all files from Directory

    Hi All,
    My requirment is to get releted files from Local Directory.
    For Example Path is "D/Data/"
    in this path there is files like
    abc123_de.txt
    abc123_en.txt
    xyz123_de.txt
    abc123_pt.txt
    xyz123_en.txt
    pqr123_en.txt
    bcg234_en.txt
    sjd467_en.txt
    Now i want to use only files which are strart from abc123 and use their data.
    From which FM i can do it or how can i do this?
    Thanks,
    Mahipalsinh

    Dear Mahipalsinh,
    I have got the same requirement some days back, i think there is no FM for your requirement. so what i did, i have get all the files using below FM and Concatenate the ABC.
    Please use the Below FM, because if the file name is above that 50 character that time always it gives the full file name. Please check, if u used the other one for getting the Files.
       CALL FUNCTION 'EPS2_GET_DIRECTORY_LISTING'
         EXPORTING
           iv_dir_name            = lv_dir_name
         TABLES
           dir_list               = lt_file_name
         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.
       IF sy-subrc <> 0.
    * Implement suitable error handling here
       ENDIF.
    For reading Specific Files.
    CONCATENATE 'AP' lv_internal_date INTO lv_filename.
             LOOP AT  lt_file_name INTO ls_file_name.
               lv_index = sy-tabix.
               IF ls_file_name-name CS lv_filename.
              " PUT YOUR LOGIC
              endif.
         endloop.
    Thanks,
    Nishant

  • I recently purchased an iMac and used migration assistant to get all files from my emac, but now I have three user accounts.  I only want one (perhaps two) accounts.  I want all my music, photos and word docs from old computer in one user name

    I recently purchased a mac and used a firewire to transfer my files onto my new imac with migration assistant.  Now I have 3 users.  I want one with all my main files (pictures, music, files from my old computer).
    I don't mind having an additional "family" account so my younger daughter can't mess us things, but I can't figure out how to get files from one to the next and then delete the one user name.
    Thanks,

    In order to delete other accounts you must be logged into an admin account. You cannot delete the account into which you are currently logged.
    When you started the new computer you were in the Setup Assistant. You created a new admin account before finishing the setup. You need to log into that account because it is an admin account. You can then delete the account you migrated from the old computer (and any other accounts you don't need or want.)
    Then create a temporary new user account with admin status - name it, Temp. Log out of the current account and log into the new account, Temp. Now delete the initial account you created in Setup Assistant. You now have one account, Temp. Now re-migrate your data from the old computer. When that is completed log into the migrated account, which should be an admin account, and delete the temporary account, Temp.

  • How to get all files from Archive server

    Hi Experts,
    My problem is:
    When i try to read from an archived file, the moment archive_open_for_read function module is executed, a popup box appears
    asking to choose the name of the archive file to be read.
    I have to pass only one Export Parameter i.e. Archive Object.
    How to avoid the popup screen from appearing. I want to read all the archived files by default, the values are to be retrived from the archived files and displayed.
    Thanks,
    Parthow.

    Hi,
    I probably didn't understand your question, as I think my answer is exactly what you expect.
    In an archive object, you may have 1 or more files. If you want to know the list of files in the object, you have to use ARCHIVOBJECT_GET_TABLE.
    Sandra

  • I had a computer crash and completed a Fresh install of Win7 and  restore of all files from Carbonite.  I have managed to get LR 5 running in LR.  However, I am not sure I have all of my previous catalogs. How can I find my catalogs to assure that I have

    I had a computer crash and completed a Fresh install of Win7 and  restore of all files from Carbonite.  I have managed to get LR 5 running in LR.  However, I am not sure I have all of my previous catalogs. How can I find my catalogs to assure that I have a complete inventory of all my catalogs.

    <moved from Downloading, Installing, Setting Up to Photoshop Lightroom>

  • Got a new external hard drive. Transferred all files from old hard drive to new hard drive. Connected hard drive to macbook. How do I get all my files to be recognized by iTunes and my already made playlists??

    Got a new external hard drive. Transferred all files from old hard drive to new hard drive. Connected hard drive to macbook. How do I get all my files to be recognized by iTunes and my already made playlists??

    Trying to download photos from IPHONE, IPAD to IPHOTO in IMAC after installing new hard drive.
    How did you import the photos to iPad and iPhone?
    If the photos have been synced to the iPhone and iPad using iTunes, you cannot sync them back.
    See this document:  http://support.apple.com/kb/HT4236
    You can't reimport pictures synced from your computer to your device back to your computer. You can only import pictures in the Camera Roll or Saved Photos from your device to your computer. If you need to retrieve synced photos from your device:
    If your photos are not in the Camera Roll on your devices, save them to the Camera Roll, share them to the Photo Stream, mail the photos, or, if you have iPhoto on the devices, use iTunes Photo Sharing.
    http://help.apple.com/iphoto/iphone/2.0/?handbuch#blnkee26bc1
    Save photos to your computer using iTunes
    Connect your iOS device to your computer.
    Tap a photo, album, event, web journal, or slideshow and tap Share> iTunes.
    Tap Selected, or change the photos you want to save (if you are saving a slideshow skip to step 4):
    Select different photos: Tap Choose Photos, tap one or more photos, and tap Next.
    Select a range of photos: Tap Choose Photos, tap Range, tap the first and last photos in the range, and tap Next.
    Select all the photos in an album or event: Tap All.
    In iTunes, click the button for your device and click Apps at the top of the window.
    Below File Sharing, select iPhoto (in Apps).
    Select the Shared Photos folder under iPhoto Documents.
    Click Save To and select the location on your computer where you want to save the items.
    To view your photos, go to the Finder and look in the location you selected above.

  • How to get all images from folder in c#?

    I am trying to get all images from folder. But it is not executing from following:
     string path=@"C:\wamp\www\fileupload\user_data";
                string[] filePaths = Directory.GetFiles(path,".jpg");
                for (int i = 0; i < filePaths.Length; i++)
                    dataGridImage.Controls.Add(filePaths[i]);
    Please give me the correct solution.

    How to display all images from folder in picturebox in c#?
    private void Form1_Load(object sender, EventArgs e)
    string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
    foreach (var filename in files)
    Bitmap bmp = null;
    try
    bmp = new Bitmap(filename);
    catch (Exception e)
    // remove this if you don't want to see the exception message
    MessageBox.Show(e.Message);
    continue;
    var card = new PictureBox();
    card.BackgroundImage = bmp;
    card.Padding = new Padding(0);
    card.BackgroundImageLayout = ImageLayout.Stretch;
    card.MouseDown += new MouseEventHandler(card_click);
    card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
    images.Controls.Add(card);
    Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies.

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • How to get a file from an internet site

    I have a scenario where I need to get a file from a website.
    Basically on a weekly basis one our customers are going to upload a file that contains all the information for delivery's for the coming week.
    the way this used to be done is the user would go to the website directly and download the uploaded file.
    However now we want to do it as an automatic integration using PI.
    Does anyone have an idea how to do this?  Is it even possible?

    > Thridly my issue with regards to taking a file that is uploaded to a website (it will be a csv file), can be solved by creating a webservice?
    I am sorry, I misunderstood this. I thought you want to download.
    The upload is done with a HTTP POST, so you can use the HTTP receiver adapter.
    Use the prolog and epilog to simulate the form data post.
    Use an HTTP sniffer to get the whole HTTP stream, when you upload the file to the website to see, what you have to put in the HTTP adapter settings.
    Here are some threads about that topic:
    Receiver HTTP Adapter - multipart/form-data file post - SP19
    Re: HTTP Form Post Using HTTP adapter
    Regards
    Stefan

  • Cannot get all updates from iTunes software

    Hello. There is a strange problem.
    Sometimes, when I open iTunes from my computer, a small number will be displayed after "Apps".
    When I click the "Apps", I can also see that there are some updates available from the bottom link text.
    But after I click that bottom link, I cannot get all programs which need to be update listed. When I update all listed, iTunes still says there are some apps to be updated, but when I click that bottom link, only a text "No updates are currently available. To check for updates for another Apple ID, sign in with that Apple ID."
    At that time, I can get all updates from my iPhone - Apple Store. So all have to do, is update all apps from my iPhone and sync it back. But if some apps are not installed on this iPhone, I have no way to update it.
    BTW, I've tried to click Store - Check for available downloads from iTunes on my computer. It's useless in this case.
    Any solution? Thanks.

    It think its a bug. I got the same results under MX 7.0.2.
    The topic of maxrows recently came up on another thread. I
    did some searching and according to TechNote 18339 there was a
    change with maxrow
    "<cfquery maxrows=N> bug. ColdFusion MX (until ColdFusion
    MX 7.0.1 CHF2) didn't pass maxrows to the underlying driver
    (statement.setMaxRows())"
    Given the results you're getting, it sounds like CF is
    applying the maxrow to all of the resultsets, not just the one
    where maxrows was declared. I suspect cfstoredproc's usage of
    statement.setMaxRows() is incorrect. Thats just a guess though.
    Bottom line, I think you'll need handle it manually.
    Personally, I would recommend placing the row count logic in the
    stored procedure (if possible). The overall results will be more
    consistent and you won't have to worry about this kind of issue
    again.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18339
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00000314.htm
    http://www.remotesynthesis.com/blog/index.cfm/2006/3/23/Maxrows-Issue-in-CFQuery

  • How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    You can't.  iCloud is not for general file backup from a Mac. It's for backup up and syncing data between mobile devices and and Macs and  The following is from this Apple document: iCloud: Backup and restore overview.
    iCloud automatically backs up the most important data on your (mobile) device using iOS 5 or later. Once you have enabled Backup on your iPhone, iPad, or iPod touch .....
    What is backed up
    You get unlimited free storage for:
    Purchased music, movies, TV shows, apps, and books
    Notes: Backup of purchased music is not available in all countries. Backups of purchased movies and TV shows are U.S. only. Previous purchases may not be restored if they are no longer in the iTunes Store, App Store, or iBookstore.
    Some previously purchased movies may not be available in iTunes in the Cloud. These movies will indicate that they are not available in iTunes in the Cloud on their product details page in the iTunes Store. Previous purchases may be unavailable if they have been refunded or are no longer available in the iTunes Store, App Store, or iBookstore.
    You get 5 GB of free iCloud storage for:
    Photos and videos in the Camera Roll
    Device settings (for example: Phone Favorites, Wallpaper, and Mail, Contacts, Calendar accounts)
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Visual Voicemails
    But not from a Mac.  If you want to backup your photos and other important files I suggest you get an external hard drive and use  it with Time Machine.
    OT

  • Is there any way to get the files from other computer ?

    Hai all,
    I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
    regards,
    Namanc

    Bro Take it easy.
    Think you need to send a Image file named ("abc.gif")
    now develop a server using ServerSocket and connect it in local IP and any PORT
    For example i think ur server is connected in "localhost" and 9000 port.
    Now make ur server educated using some commands.
    For example:
    FileName: <File Name String>
    [Means new file is sending by connected client]
    FileSize: <File size long or int value>
    [ So that ur server can determind about the total length of sender file]
    DataModeOpen
    [Now your client will send its image data, this command means your client software is sending data]
    fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
    l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
    2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
    DataModeClose
    [Means file sending finished]
    Close
    [Means your client connection is closed]
    Now develop a client supporting this command.
    For example(Server):
    String getFileName=null;
    long getFileSize=0;
    public handleCommand(String getCmd) {
        if(getCmd.startsWith("FileName")) {
                String[] splitData=getCmd.split(":");
                this.getFileName=   splitData[1];
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("FileSize")) {
                String[] splitData=getCmd.split(":");
                this.getFileSize=Long.parseLong(splitData[1]);
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeOpen")) {
               //data mode open so receive data
              receiveData();
              outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeClose")) {
              //close client socket
             getClientSocket.close();
    }For client:
    DataInputStream dataIn=null;
    BufferedOutputStream bout=null;
    public sendFile(bytes[] getBytes) {
            //if ok found then do other or show error message
        if(sendCmd("FileName:"+getFileName)) {
            if(sendCmd("FileSize:"+getFileSize)) {
                if(sendCmd("DataModeOpen")) {
                   bout.write(getBytes);
                } else {
                   showError(3);
            } else {
                   showError(2);
       } else {
            showError(1);
    }i think it will help u

  • Functional module to get the File from a given Directory

    Hi all,
    I am using a FM name 'subst_get_file_list' to get the file from a given directory but it is accepting only 40 Character length file only my requirement is to accept file name other than 40 char,
    give me good sugestion
    regards
    paul

    Hi Paul,
    Check the Function Module Gayathri has given. ie. 'SO_SPLIT_FILE_AND_PATH'.
    In the exporting parameter FULL_NAME , give the path name and in the importing parameter stripped_name , you will get the filename.
    Check this code.
    REPORT ZSHAIL_SPLITFILE.
    data: it_tab type filetable with header line,
          gd_subrc type i.
    tables: rlgrap.
    data: path type string,
          file_name type string.
    parameters file_nam type rlgrap-filename .
    data: user_act type i.
    at selection-screen on value-request for file_nam.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        WINDOW_TITLE            = 'select a file'
       DEFAULT_EXTENSION       = '*.txt
        DEFAULT_FILENAME        = ''
        FILE_FILTER             = '*.txt'
        INITIAL_DIRECTORY       = ''
        MULTISELECTION          = abap_false
       WITH_ENCODING           =
      CHANGING
        file_table              = it_tab[]
        rc                      = gd_subrc
        USER_ACTION             = user_act
       FILE_ENCODING           =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if user_act = '0'.
    loop at it_tab.
    file_nam = it_tab-filename.
    endloop.
    endif.
    path = file_nam.
    CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
      EXPORTING
        full_name           = path
    IMPORTING
       STRIPPED_NAME       = file_name
      FILE_PATH           =
    EXCEPTIONS
      X_ERROR             = 1
      OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    at selection-screen.
    message i001(zmess) with file_name.
    Regards,
    SP.

  • In CS 5 I am able to open all files from Bridge but is PS CC I can only open .tif files

    In CS 5 I am able to open all files from Bridge but in PS CC I can only open .tif files, all other files I get file not found. What is wrong?

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/bridge
    http://forums.adobe.com/community/photoshop

  • Hi How to get XML file from servlet that XI sent to my J2EE appl?

    Hi All!
    I have a scenario like XI sends xml file to j2ee application. In my J2EE application my servlet receives this xml. Will the xml file be in my HTTPServletRequest object? if so how to get that file from Request object.
    Please help me its urgent, Any code help is highly appreciated.
    My xml file will be like this:
    <ns0:Http_Message_Type_Demo
    xmlns:ns0="http://abcdemo.com">
    <Name>ABC</Name>
    <RollNo>123</RollNo>
    <Address>a-4</Address>
    </ns0:Http_Message_Type_Demo>
    somebody should help me!please
    Thanks

    Hi,
    You can use HTTPServletRequest object to get the XML payload.
    BufferedReader reader = request.getReader(); //gets XML payload
    String line = reader.readLine(); // to read the XML payload line by line
    (request is the HTTPServletRequest object)
    Regards,
    Uma

Maybe you are looking for

  • Management console-connection time out please help

    after Composite environment installation,first time I am trying to open the management console. It throws a dialog window connection error. and in the text message connection to <host name and nr > failed. In the exception message, i can see connecti

  • Errors In PSA

    Hi All I am getting errors in PSA when Loading Master data The errors are 1.ZACTPAR : Data record 77 ('000300000089 '):    Version 'Rebserve FM ' is not valid     RSDMD     194 2.Value 'Rebserve FM ' for characteristic ZACTPAR    contains invalid cha

  • Unable to start service "URGENT"

    i'm trying to execute the simpleconnection.java, and the messag error is diplayed: Exception = oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault) oracle.ifs.common.IfsException: IFS-20010: Unable to get service configurat

  • IOS 8 BLUETOOTH DEFAUT DE FONCTIONNEMENT

    Bonjour, depuis IOS 8 mon téléphone ne fonctionne plus avec mon kit main libre de la voiture. Appairage OK mais les appels ne basculent pas ou bouton off sur le véhicule. Reset global réalisé et toujours le même problème. Quelqu'un aurait une solutio

  • ITunes has stopped adding mp3 files.

    iTunes has stopped adding mp3 files manually via the add file option, this has happened in the last week, it is music I have bought not illegally downloaded. I have the latest software installed, please help, thanks.