A Small File system handling query in ABAP

Hi,
I have the following requirement and somehow don't have a clue on how to achieve this in ABAP.
I have 4 files stored in ABAP tables, say File1, file2, file3 and file4.
I want to provide a download functionality of these files such that on triggering a download the user should get a ZIP file which should have a structure as follows:
Root Folder
Folder1
File1
File2
Folder2
File3
      |
File4
The issue is, I can add files directly to a zip in ABAP(as far as i know) but putting the same files organized in a directory structure like above is the issue.
Can somebody help me with this?
I would prefer the download to be through an ICF service which can internally extract the files from the DB, package them in the required directory structure and compress the structure into a zip and thereafter return it to the caller (i.e. the BSP page/any other client).
Regards,
Vikas

Hi,
Try to use GUI_EXEC to execute the particular program or Zip mechanism program.
Im not sure wether this will solve ur issue or not.
Reward if helpful.
Best Wishes,
Chandralekha
Edited by: Chandralekha on Jul 4, 2008 11:19 AM
Edited by: Chandralekha on Jul 4, 2008 11:20 AM

Similar Messages

  • How to read some images from file system with webdynpro for abap?

    Hi,experts,
    I want to finish webdynpro for abap program to read some photos from file system. I may make MIMES in the webdynpro component and create photos in the MIMES, but my boss doesn't agree with me using this way. He wish me read these photos from file system.
    How to read some images from file system with webdynpro for abap?
    Thanks a lot!

    Hello Tao,
    The parameter
       icm/HTTP/file_access_<xx>
    may help you to access the pictures without any db-access.
    The following two links may help you to understand the other possibilities as well.
    The threads are covering BSP, but it should be useful for WebDynpro as well.
    /people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
    http://help.sap.com/saphelp_sm40/helpdata/de/c4/87153a1a5b4c2de10000000a114084/content.htm
    Best regards
    Christian

  • Any way within XI to explore the file system

    Hi all
    please let me know whether thereu2019s a way from within XI to explore the file system? For the abap part we can use transaction u201CAL11u201D to browse the directories mounted to the Application server, but I do not expect our directory to be mapped to the server.
    Kind Regards,
    Anshu Kumar

    Hi ,
    Thanks for you answer ,but I am asking without remote desktop connection and vpn.is there anyway ?
    Kind Regards,
    Kumar

  • Read file system from webdynpro ABAP

    Hi All,
    I wanted to check how the files in the client file system be read from a webdynpro ABAP.
    I cannot use cl_guifrontend_services method directory_get_list as it gives dump sayin there is no proper GUI running.
    -Abhishek

    Hi Abhishek,
    With file upload UI element you get, windows like OPEN file options. Below are the links of how to upload & Process a TAB delimeted file using the File Upload & reference from Thomas jung in reply to a similar query.
    [file upload]
    [Upload File in Mime Repository.]
    [Save file in directory after upload with fileupload-element ?]
    Greetings
    Prashant

  • Getting XML data of SSIS Package (which is located in File System) from a query

    Hi,
    We have around 200 SSIS packages deployed to File System. These pacakges are being scheduled using SQL Agent job.
    So, currently I have a list of all the packages and their respective File Path.
    Note : **They are NOT deployed to Server**.
    Now, my task is to search all the packages which has a specific connection in it.
    From the below blog, I got to know we can achieve this by querying the XML data of the SSIS Package.
    https://www.simple-talk.com/sql/ssis/-exploring-ssis-architecture-and-execution-history-through-scripting/.
    But in the above article they are getting the XML definition of the Package from msdb(as it was deployed to server).
    In my requirement, SSIS Packages are in File System. Is there any way to to get the XML definition of these packages using a query.
    Please let me know if the above requirement is not clear or if any further information is required.
    Thanks
    Raksha

    Hi Visakh & Praveen,
    Thanks for the response. 
    @Visakh: The query provided by you gives the information about all the connection strings in the package.
    @Praveen: The query in the link provided by you lists the values of all the properties of the package like MaxerrorCount, CreatorName, CreatorDate and other properties.
    I think, we may have to slightly modify this query to get the connection string values
    Praveen, nice to hear from you after a long time and that too in this forum !! :) Hope you are doing good.
    Thanks
    Raksha

  • ECC6 EHP2 (ABAP+Java)  system copy using file system copy

    Hello Experts,
    I have a question around system copy method for a dual stack ECC6 EHP2 system.
    We are planning to take full file system backup of this entire ECC6 EHP2 dual stack system and throw it on a completely new hardware with new host name but same SID.  We are also planning to do a host renaming in instance profiles and re-building the control files in target system after we finish the file system restore.
    Is this method supported in SAP ? Or we strictly have to use  SAPinst to do export and import method.  In any case our source and target platform is not going to chance as per our scenario.
    Any suggestions will be greatly appreciated.
    Thanks,
    Harshal

    > Thanks for the quick response. Is their any document that says it is not supported ?  Because of no proper document that says no to do it, client want's to try it out.
    For the ABAP part this is certainly feasible.
    The Java part has not only issues with the secure store but also with SID and hostname. The old values are stored in many places in the database and in, depending on the applications installed, many .properties files in the filesystem. So it would be not enough to somehow regenerate the secure store but also change hostname and SID in different places that are not really all documented.
    What you are basically looking for is
    Note 757692 - Changing the hostname for J2EE Engine 6.40/7.0 installation
    with the significant sentence
    This note should be applied only when the hostname of a machine
    where the j2ee engine was already installed has changed.
    It does not replace the SAP official system copy procedure and
    MUST NOT be used for copying of an instance to another host and/or with different SID.
    Markus

  • Format Error : mkfs.ocfs2 1.2.7 file system too small for a journal

    Hi All,
    I am trying to implement Oracle 10g RAC on my laptop using vmware and openfiler software . But while executing the command
    #mkfs.ocfs2 -b 4K -C 32K -N 4 -L oracrsfiles /dev/iscsi/crs11/part1
    I am getting the error
    Format Error : mkfs.ocfs2 1.2.7 file system too small for a journal
    Please anybody can help me to resolve this problem.
    Thanks in Advance.

    How large is the device that you are formatting?
    The default journal size depends on the type specified. If none specified,
    then it assumes "mail" which sets the default journal per slot to 256M.
    If database type, default is 64M.
    Use "-T database" to specify database type, etc.
    BTW, one can always override the defaults. Say "-J size=16M" to make
    a smaller journal.
    man mkfs.ocfs2 and the user's guide has more.

  • System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo),

    Dear All,
    I am getting a below error while doing ehp6 installation on sybase (high availbility )
    can any one help me on this..?
    An error occurred while processing option SAP Business Suite 7i 2011 > Enhancement Package 6 for SAP ERP 6.0 > SAP Application Server ABAP > SAP ASE > High-Availability System > Database Instance( Last error reported by the step: System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo), line (646) in file (d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp), stack trace: d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\ejscontroller.cpp: 181: EJSControllerImpl::executeScript() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\jsextension.hpp: 1059: CallFunctionBase::call() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\osmod\iaxxbprocess.cpp: 423: CIaOsProcess::start_impl() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 238: CSyChildApplicationImpl::start(false) d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 262: CSyChildApplicationImpl::doStart() .). You can no
    Regards,
    Letz..

    Hello Mauricio.
    Thanks
    Two Thinks:
    1.- This error appears precisely in the process of creating SAP users including you mention sidadm:
          A.- Execute sapinst
          B.- Installation option is chosen
                SAP NetWeaver CE Production Edition
                        Installation Options
                            High-Availability System
                                  Central Service  Instance (SCS)
           c.- System ID, Next and appear message error
    2.- However, the user manually create sidadm, I gave the permissions you indicate, and the error message is the same
    Thanks

  • Upload a Greeting File to a System Handler on CUC8?

    Hi,
    There must be a way to do this, but I don't see how or where to do this.
    We want to create a custom greeting in wav format (or any other format supported) that will be used for a system handler
    on Cisco Unity Connection 8.
    How can I upload a custom greeting to CUC8 for a specifc System Handler configured on the system other than
    using the Greeting Administrator option?
    Thank you!
    -rya

    Use the Play/Record button in the UI to open the Media Master Java applet. Click the Options menu when it loads and then choose Open File.

  • System Software Update - smaller files?

    I am having problems with our Internet connection at work. File download is slow. Every time I try to update the system software, it takes half an hour, gets within about 2 MB, then it seems to quit and gives me a red "!" in the software update.
    In the bad old days of slow downloads, Apple used to make large downloads available in smaller files that could then be stiched together. I looked and can only find the 170 MB Mac OS X update (I just upgraded to 10.4 from 10.3.9).
    Any way to download smaller files?

    Unfortunately not. Find a local computer store with broadband, or a library where you can download on high speed internet, or ask a friend who has high speed internet to help you. If you have an Apple retail store or a user group nearby, or an authorized service center, they may let you use their store network to download the file and burn it to disk, or put it on a thumb drive.
    http://www.apple.com/retail/ - find Apple retail stores
    http://www.apple.com/buy/ - find authorized service centers
    http://www.apple.com/usergroups/ - find Apple usergroups
    http://www.jiwire.com/ - find a WiFi hotspot (including search for free ones).
    Before updating, be sure to follow tips on my FAQ*:
    http://www.macmaps.com/upgradefaq.html
    - * Links to my page may give me compensation.

  • How to create a network file system on a small ethernet lan?

    Hi there,
    Have been wondering about creating a network file system on a small ethernet based lan. i don't know anything about how you do this but figure you need more than a normal external hardrive Many thanks for any responses

    Hi there,
    As far as I understand, you would like to be able to have a central location that all your computers can access and store files?
    If this is the case, and you want to use your lan router, there are many products that do such a thing. These devices are known as "Network Attached Storages" or NAS. They plug into your router like your computers do, and then allow your computers to access hard drives stored in the devices.
    The following link shows some NAS units on the tech shopping site Newegg.
    http://www.newegg.com/Store/SubCategory.aspx?SubCategory=124&name=Network-Storag e-NAS
    Hope that helps, and let me know if you have any more questions!
    Elliott

  • Query SSIS packages details from file system

    Hi All,
    I have around 500 packages (SQL 2005) deployed in file system & all this packages are running on daily basis via SQL agent. Now I need to migrated all 500 packages into SQL server 2008 R2.
    There is no inventory to track which package belogs to which team and any other information.
    Now, I need a method to query the pakages connection string details with database respective. Is there any method?
    Thanks
    Raghu

    Check this out, might be helpful for your requirement
    Read SSIS Package File(.dtsx) for Information [Connection Managers,Transformations,Variables,Configuration,Expressions,Log Providers]
    http://sqlage.blogspot.com/

  • Query on File System Repository..Please guide

    Hello All,
    I have successfully created the <b>File System Repository</b>, connecting a folder on my windows 2000 machine to an EP (Netweaver 2004s) KM, following the steps like:
    1. Creation of <i>Windows System</i>
    2. <i>Network Path</i> since the server and my machine are seperate systems
    3. Creation of the <i>File System Repository</i>.
    You may refer to the above steps in detail using <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/92322ab24e11d5993800508b6b8b11/frameset.htm">link</a>
    <u>Question</u>:
    1. After the successful creation, I deleted the Windows system created, but the File System Repository was still working all fine. Why so? Shouldn't this throw me an exception?
    2. While creation of the Windows System, I entered the ID and Desription.
    In the Network Paths, I entered the folder's name (folder which is on my machine/which is to mapped) & my machine's username + password.
    Then how does the system/server know which windows system is to be mapped for the netwrok path?
    In other words, what is the mapping betweeen the Network path & Windows system?
    3. If you access the above link, there is a step of creating a System in the Portal System Landscape. What is the need to do this? Can you please explain......
    Why create a PCD System object, System Alias, etc....
    Would appreciate if you please help me understand this concept.....
    Awaiting REply.
    Thanks & Warm Regards,
    Ritu

    Hello All,
    Please guide me.
    Awaiting Reply.
    Thanks & Warm Regards,
    Ritu

  • [Java 7] Zip file system does not handle nested zip files

    The ZIP FileSystem which is shipped as an extension with Java7 does not support nested ZIP files. I.e., you can open the outer zip file as a FileSystem, but if you try to open an inner zip as a FileSystem, you get this exception:
    java.nio.file.ProviderNotFoundException: Provider not found
         at java.nio.file.FileSystems.newFileSystem(FileSystems.java:403)Since the ZIP FileSystem is an extension, and not a part of the core JDK, I'm posting this here (and on Xueming's blog) in the hope that it will get resolved. It doesn't seem right to report it as a JDK bug.

    872883 wrote:
    The zip file system definitely allows zip entries to be read without extracting them first. And--based on reviewing the ZipFS source code that Oracle has included with the JDK--it doesn't appear to be silently extracting the data to a temporary file.you missed the point of what Peter Lawrey said. in order to create a ZipFS on a zip file, it must be a file in the first place (i.e. have random access). there is no way to do random access on an entry within an existing zip file, therefore in order to create a ZipFS on a nested zip file, you would first have to extract it to a file.

  • IMP: FILE HANDLING QUERY

    Hi all,
    Suppose there is a file named "Data.txt" on my computer and i have to write a java program to search for it
    can you suggest on how to approach this
    thanks
    Edited by: RainaV on 22 May, 2009 2:24 PM

    i did write the Code for the same but got stuck as i am on linux and the ouput i got was
    NO MORE DIRECTORIES THERE >> [ /bin/sleep ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/cp ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/chown ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/gunzip ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/egrep ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/mt ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/lspci ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/bzfgrep ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/lsmod ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/zless ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/tar ] 1
    NO MORE DIRECTORIES THERE >> [ /bin/nano ] 1 and so on.........in line 1 /bin is the dir and sleeo is a jar inside so i dint excatly know whats happened there
    so probably a sample of the same is as follows so if "Possible" can you point me to the right approach
    import   java.io.*;
    import  java.util.*;
    public class FILESEARCHALGO {
    public static void main(String[] args)
      File searchFile=new File("Data.txt ");
      File[ ] root=searchFile.listRoots();
         File[ ]  allFiles=root[0].listFiles();
         ArrayList<File> arrlistFiles=getRootDir(allFiles);
          recurse(arrlistFiles);
    ////MEthod utilised
    public static boolean checkSubDirectory(File f)
      if(f.isDirectory())
       return true;
      else
       return false;
    public static ArrayList<File> getRootDir(File [] allFiles) 
      ArrayList<File> arrlistFiles = new ArrayList<File>();
      System.err.println("ERROR LINE  "+ allFiles.length);
      for( int i=0 ; i < allFiles.length ; i++ )
       arrlistFiles.add(allFiles) ;
    return arrlistFiles;
    public static void recurse(ArrayList<File> arrlistFiles)
    for(int p=0;p<arrlistFiles.size();p++)
    File extFile= arrlistFiles.get(p);
    boolean result=checkSubDirectory(extFile);
    int count=1;
    if(result)
    File[] nestedList= extFile.listFiles();
    ArrayList<File> newList=getRootDir(nestedList);
    recurse(newList);
    else
    System.out.println("NO MORE DIRECTORIES THERE >> [ "+extFile+" ] "+count);
    count++;
    }//methiod ends
    thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Rebate Agreements - Free Goods payment

    Hello, We're currently using SAP Standard Rebate Agreement process. Final Settellment is generating a credit memo request, then converted into a credit memo. We hava a user request to stop using credit memo and to deliver free goods instead. The only

  • Battery Beeping!?!?!?! Driving me bonkers!

    I called Fios last week because my battery light came on and is now beeping.  $40 for a freaking stupid battery!?!?!?! I ordered a bettery on line but it won't be here until Thursday.  The tech said I could disconnect it, tried that, it didn't work.

  • How to use BAPI in program

    Hi i have some data in the Legacy file and i have to update in SAP. For that I have to use BAPI, which is ME_DIRECT_INPUT_SOURCE_LIST  in the program not in LSMW. so i have to  use Function ME_INITIALIZE_SOURCE_LIST to initialize the structures and t

  • Groovy Expression get Values of Unique Key

    Hi all, I am trying to create a custom error message for a unique key validation. With other error messages that just evaluate one field I have been able to do things like: Value {0} already exists With the token for 0 being newValue. When I am valid

  • "Show All Windows" in Mission Control

    Hey everyone! In Snow Leopard you had this amazing feature that when you push and hold the mouse button on an active application in the dock, all the windows of that application would pop up beside each other. Doing so in Lion just generates a sub-me