How to read ZIP files(having PDFs,Image) using MQ Series link for R/3

Hi,
1)Is it possible to transfer a zip file (having an image or pdf) using IDocs in SAP 4.6C using MQ Series link for R/?
Scenario: "MQ Series link for R/3" converts Business-Reports from a third-party software,into SAP IDocs.Each Business-Report contains one XML file and one ZIP file.
2)Being on ABAP side,do I have to worry about how the zip file would be converted into IDocs?
Detailed descrption:
This scenario requires integration of a non-SAP software which talks in XML with SAP R/3(4.6C).The customer has decided to go with 'MQ Series link for R/3' (which integrates any non-SAP application running on IBM MQ Series to R/3,by converting data(in any format) into IDocs).He is not ready to go for XI.
The Problem area is a functionality which requires the non-SAP software to send XML file along with an attached Zip file.So,XML document,basically,has a 'zippedFile' XML element having actual file in XML keyword 'file'.
This XML document ideally, should be converted by the subsystem(MQSeries link for R/3) into IDocs i.e. into a stream which could be stored in a table on R/3 side and later, sent back to the non-SAP software through MQ Series link to be converted into zip-file again with corresponding pdfs,images.I want someone who has worked in a similar scenario to confirm this.

Hi,
I have a feeling I have posted this question in the wrong forum or maybe I will let you decide this.Any help would be appreciated (even the right forum name).
My scenario requires integration of a non-SAP software which talks in XML with SAP R/3(4.6C).The customer has decided to go with 'MQ Series link for R/3' (which integrates any non-SAP application running on IBM MQ Series to R/3,by converting data(in any format) into IDocs).He is not ready to go for XI.
The Problem area is a functionality which requires the non-SAP software to send XML file along with an attached Zip file.So,XML document,basically,has a 'zippedFile' XML element having actual file in XML keyword 'file'.
This XML document ideally, should be converted by the subsystem(MQSeries link for R/3) into IDocs i.e. into a stream which could be stored in a table on R/3 side and later, sent back to the non-SAP software through MQ Series link to be converted into zip-file again with corresponding pdfs,images.I wanted someone who has worked in a similar scenario to confirm this.

Similar Messages

  • How To Read RTF file in JAVA?  Using  iText?

    How To Read RTF file in JAVA?  Using  iText?.....
    import java.io.*;
    import com.lowagie.text.*;
    import com.lowagie.text.rtf.*;
    public class RTF3 {
    public static void main(String[] args) {
    // System.out.println("This example generate a RTF file name Sample.rtf");
    // Create Document object
    Document myDoc = new Document();
    try {
    // Create writer to listen document object
    // and directs RTF Stream to the file Sample.rtf
    RtfWriter2.getInstance(myDoc, new FileOutputStream("Sample.rtf"));
    // open the document object
    myDoc.open();
    // Create a paragraph
         Paragraph p = new Paragraph();
         p.add("Helloworld in Rtf file..amazing isn't");
         // Add the paragraph to document object
    myDoc.add(p);
    catch(Exception e) {
    System.out.println(e);
    //close the document
    myDoc.close();
    Exception in thread "main" java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.width()F
         at com.lowagie.text.rtf.document.RtfPageSetting.rectEquals(RtfPageSetting.java:433)
         at com.lowagie.text.rtf.document.RtfPageSetting.guessFormat(RtfPageSetting.java:362)
         at com.lowagie.text.rtf.document.RtfPageSetting.setPageSize(RtfPageSetting.java:341)
         at com.lowagie.text.rtf.RtfWriter2.setPageSize(RtfWriter2.java:248)
         at com.lowagie.text.Document.open(Unknown Source)
         at view.RTF3.main(RTF3.java:23)
    CAN you HELP me?

    import com.lowagie.text.Document;
    import com.lowagie.text.rtf.parser.RtfParser;
    import java.io.FileInputStream;
    String inputFile = "sample.rtf";
    Document document = new Document();
    document.open();
    RtfParser parser = new RtfParser(null);
    parser.convertRtfDocument(new FileInputStream(inputFile), document);

  • How to read zip file

    How to read zip file

    Zip files are not files you read. They are compressed archives containing other files. There are many utilities available for iOS that will expand zip files into its component files. I believe Documents by Readdle will expand zip files.
    However, if these zip files are attached to a pdf, I am unsure if Documents will do that. Reader and Acrobat will not open zip attachments on Macs and PCs as a security precaution.

  • How to read zip files?

    Hi,
    I am trying to read data from zip files. can anyone say what i did wrong in this configuration?
    <?xml version="1.0" encoding="UTF-8"?>
    <Graph author="123" created="Mon Oct 08 10:06:08 IST 2012" guiVersion="3.2.1" licenseCode="CloverETL Designer single license" licenseType="CloverETL Designer single license" modified="Mon Oct 08 10:06:08 IST 2012" modifiedBy="123" name="Default graph name" revision="1.0" showComponentDetails="false">
    <Global>
    <Dictionary/>
    </Global>
    <Phase number="0">
    <Node enabled="enabled" fileURL="zip:(${DATAIN_DIR}/Archive1.7z)" guiHeight="93" guiName="UniversalDataReader" guiWidth="148" guiX="230" guiY="116" id="DATA_READER1" type="DATA_READER"/>
    <Node enabled="enabled" guiHeight="67" guiName="Trash" guiWidth="128" guiX="670" guiY="157" id="TRASH0" type="TRASH"/>
    <Edge debugMode="true" fromNode="DATA_READER1:0" guiBendpoints="632:312|632:175" guiLocks="572|null|null" guiRouter="Manual" id="Edge0" inPort="Port 0 (in)" metadata="Metadata1" outPort="Port 0 (output)" toNode="TRASH0:0"/>
    </Phase>
    </Graph>

    Based on your filename Archive1.7z you might have a 7z format 7zip file. I don't think this archive format is supported - you'll need to use a supported format such as ZIP.
    Best
    Brett

  • How to read multiple files of different name using single file adapter

    There are two inbound locations inbound1 and inbound2 , and the files structure present in these two inbound locations are same but the files start with different names example
    (1)files in inbound1 starts with file1,file2...
    (2)files in inbound2 starts with abc1,abc2...
    by using same file adapter with read option how can i read both files....

    Hi K.A.N.N.,
    You can define multiple directories using the above link in 11g and poll for the file as \*.*.
    Alternatively you can use the Synchronous Read and specify the file name at runtime.
    You can also use Pick activity to define multiple branches each with a File Adapter to read from a specified location with specified file name. Although it would contain multiple Adapter Definitions at Development-time, only one of the Adapters will execute at Run-Time.
    Regards,
    Neeraj Sehgal

  • How to read a file in another location using Java ?

    Hi all,
    i suppose the below code reads my file 'ridata.dat' when it is in the same folder as my java class file.
    How can i read it from a different location?
    ---------------------------------------------------------------FileRead.java---------------------------------------------------------------
    import java.io.*;
    class FileRead
    public static void main(String args[])
    try{
    // Open the file that is the first
    // command line parameter
    FileInputStream fstream = new FileInputStream("ridata.dat");
    // Get the object of DataInputStream
    DataInputStream in = new DataInputStream(fstream);
    BufferedReader br = new BufferedReader(new InputStreamReader(in));
    String strLine;
    //Read File Line By Line
    while ((strLine = br.readLine()) != null) {
    // Print the content on the console
    System.out.println (strLine);
    //Close the input stream
    in.close();
    }catch (Exception e){//Catch exception if any
    System.err.println("Error: " + e.getMessage());
    ---------------------------------------------------------------FileRead.java---------------------------------------------------------------
    Thanks in Advance,
    Lakshma

    Try with JFileChooser
                   JFileChooser fileChooser = new JFileChooser();
                   int returnValue = fileChooser.showOpenDialog(null);
                   if (returnValue == JFileChooser.APPROVE_OPTION) {
                        File selectedFile = fileChooser.getSelectedFile();
                        System.out.println(selectedFile.getName());
                   }Thanks,
    Avin

  • How to read DefaultTrace files, What are other useful trace files

    Hi,
    I was trying to debug some issue using Default Trace file and it is painful. Can anyone point out some tips and tricks to do debugging. And how to read Default Trace file.
    Also what are the other useful trace files available? Please point out.
    Thanks,
    Deepak

    Hello Deepak,
    Here is the link with all infos how to use Log Viewer to view logfiles:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/57/5f1140d72dc442e10000000a1550b0/frameset.htm
    As all program generated logs are written to Default Trace file, it is the only file to check for  logs.
    Greetings,
    Praveen Gudapati
    p.s. Points are always welcome for helpful answers
    Message was edited:
    You can perform the following activities using the Log Viewer UI:
    &#9679;     Connect to and view logs on multiple servers
    &#9679;     Add log files
    &#9679;     Add log files from a log directory
    &#9679;     Customize the columns for the log records that are displayed
    &#9679;     Search for log records that meet specific criteria
    &#9679;     Filter log records by specific criteria
    &#9679;     Sort log records
    &#9679;     Merge log files within and across servers
    &#9679;     Use the refresh function to display the latest logs
    &#9679;     Open archives of log files
    &#9679;     Save log files to comma separated value (CSV) files and open them using Microsoft Excel.

  • How to read multiple files at multiple locations using properties file

    hi all ,
    in my code i take configuration input from a properties file ,it was really easy but what if there are multiple files ? how can i take configuration input (file path etc) from properties file in that case ? any suggestion ?

    thanks :) ..i am doing like this :
    String fName[]=new String[10];
              String choice[]=new String[10];
              String Delim[]=new String[10];
              ResourceBundle a = ResourceBundle.getBundle("input");
              String n=a.getString("NOF");
              try
                   for(int i=0;i<Integer.parseInt(n);i++)
                        fName=a.getString("PATH"+(i+1));
                        choice[i]=a.getString("HEADER"+(i+1));
                        Delim[i]=a.getString("DELIMITER"+(i+1));
                        putData(fName[i],choice[i],Delim[i]);//to put data in database
              catch (NumberFormatException e)
                   System.out.println("Number of files are invalid");
    hope this method would be fine ....again thanks for the advice :) :)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to read large files(20-30 MB) using File/FTP adapters.

    Hi All,
    I am using JDev 10.1.3.3 and SOA 10.1.3.3.
    In my project some times i am getting files of size 20MB to 30MB.
    And the data of the file is in binary form.
    How can i read these type of files.
    I think batching is not possible because data is in binary form.
    Please help me out...
    Regards
    PavanKumar.

    Hi Anirudh,
    the tips provided in technotes are not suitable to my process structure.
    In my case data will be in binary format.
    First i need to read the payload and later in my process i have to archive that using a web service.

  • Read a file having name (TACACS+ Accounting active.csv)  in java

    how to read a file having name (TACACS+ Accounting active.csv) in java through buffer reader

    Did you take even a millisecond to try anything?
    Here's my hint.
    "The same way you read anything else with a BufferedReader."

  • How to read 32 bit depth .bmp image

    How to read 32 bit depth .bmp image using LabVIEW?
    @nk
    Solved!
    Go to Solution.

    A "standard" image, by which I mean an image type most typically encountered, stores image data in RGB format with 8 bits per colour, making them 24-bit images (24bbp - bits per pixel). A 32-bit image normally includes an additional 8 bits for the alpha channel, but in BMP files this format is complex (see wiki article), and it appears the LabVIEW Read BMP function does not support it.
    Do you have the IMAQ toolkit? I can't test the theory, but perhaps the IMAQ functions for reading image files are more advanced and can read your images?
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • How to read Excel file in flex

    Hi,
         I am new to Adobe flex and i dont know how to read Excel in flex and i need coding for that. So anybody help me...
    thanks in advance...

    Hi
    You can read and parse XLS files (only works with xls-files) with urlloader and a ZIP-lib that can read zip-files.
    public function loadXLS(url:String):void
                var urlLoader:URLLoader = new URLLoader();
                urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
                urlLoader.addEventListener(Event.COMPLETE, onLoadComplete);
                urlLoader.load(new URLRequest(url));
            private function onLoadComplete(even:Event):void
                urlLoader.removeEventListener(Event.COMPLETE, onLoadComplete);
                model.sheetsDict = new Dictionary();
                var zipFile:ZipFile = new ZipFile(urlLoader.data);
                for(var i:int = 0; i < zipFile.entries.length; i++)
                    var entry:ZipEntry = zipFile.entries[i];
                    var data:ByteArray = zipFile.getInput(entry);
                    if(useFile(entry.name, "/sheet([^$]+)"))
                        model.sheetsDict[entry.name.split("xl/")[1]] = new XML(data.toString());
                    else if( useFile(entry.name, "/sharedStrings.xml") )
                        model.sharedStrings = new XML(data.toString());
                    else if( useFile(entry.name, "/workbook.xml$") )
                        model.workbook = new XML(data.toString());
                    else if( useFile(entry.name, "/workbook.xml.rels") )
                        model.rels = new XML(data.toString());
                trace(model.sharedStrings)
    to read the xml properly you have to use namespaces in the reader-class
    namespace ns1 = "http://schemas.openxmlformats.org/spreadsheetml/2006/main";
            use namespace ns1;
            namespace ns2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
            use namespace ns2;
            namespace ns3 = "http://schemas.openxmlformats.org/markup-compatibility/2006";
            use namespace ns3;
            namespace ns4 = "urn:schemas-microsoft-com:mac:vml";
            use namespace ns4;
            namespace ns5 = "http://schemas.openxmlformats.org/package/2006/relationships";
            use namespace ns5;
    //Olof

  • How to convert XML file to PDF

    Hi there,
    Does anyone know by any chance, how to covert XML file to PDF? Thanks

    Hello,
    You can convert most of the files in PDF by using the Print menu.
    Open the file you want to save in PDF and choose in the menu bar File > Print....
    You will see a will the Print window and at the left, click on the PDF button.
    Choose in the menu “Save as PDF...”
    Insert the name and you can also set security settings (like a password) and click on the “Save” button.
    Hope this will help.
    EDIT : (oups, dsimagry posted as the same time of me)

  • How to read pmd files on mac?

    How to read pmd files on mac?

    There is no native support to open PageMaker documents on the Mac. I would check to see what PageMaker document versions that InDesign CS6 can open, ether on Mac or PC.
    Adobe still has the trial of PageMaker 7 for Windows (Adobe link) and PM7 PDF, which you could install in Boot Camp, or Mac Virtual Machine in Windows 7.
    I just checked the latest release of LibreOffice, and there is no support for PageMaker anything.
    zamzar dot com does not support .pmd content.

  • How to operate .zip files on an s40 Phone ?

    How to operate .zip files on an s40 Phone ?
    I Just need a program that operates .zip files knowing that my phone is 6085
    and thank you

    S40 phones cannot handle zip files. Only S60 phones can do this.

Maybe you are looking for

  • Error when import virtual applicance in Windows

    I'm trying to setup the DatabaseApp Development VM (Developer Day - Hands-on Database Application Development</title><meta name="Title" content="Dev-) on my Win 7 machine. Towards the end of importing the .ovf file (3rd DVD), I received an error wind

  • Solaris 11.1 Comstar FC target

    Hello, I have a problem with the comstar as a FC target. New install of Solaris 11.1 HBA is an Emulex LPe11002 Brocade 5100B switches 2x 10x 3TB NL-SAS disks in raidz2 in pool It all works, but the speed is unusable slow to the LUN. iSCSI work and I

  • Weblogic 12.1.1 Java-level deadlock

    Hi! Recently i accidentally saw that my wl server stop responding. Here is the short thread dump. If somebody need the full one - mail me please. [email protected] java version "1.6.0_34" Java HotSpot(TM) 64-Bit Server VM (build 20.9-b04, mixe

  • Garageband problem

    Hi Yesterday my garageband closed unespectedly or what ever word is it or spelled hahaha. K now when i try to start it a window appeares and it put s close option info option or try again option so when i try again it just stays there loading, when i

  • Error code 3194

    I have an iPhone 4 and attempted to update to the IOS 6 software the other day. My phone worked for about 15 minutes after than and then it cut off. When it came back on it had a USB cord and said connect to itunes. When I connect to itunes it tells