Fuctional Specification for Incoming HSBC fIle

Hello Every one,
I have one l Requirement for me ,
When we make payment to vendor through F110 ,after that we run one program we got out going file to HSBC bank it was completed it runs succes fully it generate the out going file ,now my requirement is after payment completed by the bank they are sending the one incoming file now i want to upload this file in sap ,for this
1) i need to use what Transaction ?
  (Or)
Any other standard program for please suggest ,
Naresh

NO Its different , generaly we are getting one incoming file from bank,that file we have to upload in sap ,the file fuctional specifications are ,
CHECK NUMBER,CHECK STATUS ,VENDOR NAME ,VENDOR ACCOUNT NUMBER,CURRENCY ,BANK ACCOUNT NUMBER,DEBIT ACCOUINT NUMBER ,DEBIT ACCOUNT NAME, AND SO ON ,
These above fileds we  having the incoming bank file these fileds we to upload in sap,
Naresh

Similar Messages

  • Photoshop SDK: Specification for "Color Settings File" (CSF)?

    Before I request the Photoshop SDK: Does it contain a specification for the "Color Settings File" (CSF) file format?

    No. This information is not in the specification.
    > Before I request the Photoshop SDK: Does it contain a specification for
    > the "Color Settings File" (CSF) file format?

  • Where to find Java Class File Specification for Java 5.0?

    Where to find Java Class File Specification for Java 5.0?
    thank you in advance.

    same place you found it for 1.4Can u give more details? I thought the class spec for Java 1.4 is the same as Java 1.2.
    anyone can tell where to find Java Class File Specification for Java 5.0?
    Thanks.

  • My incoming mail user .wav file doesn't play for incoming mails. It does work on local test.

    I have windows 7 Professional PC and use Mozilla Thunderbird 24.4.0 as my email account. I have a local .wav music file for incoming mail which tests OK, but when a new mail arrives it doesn't play. I have all the boxes ticked in the settings. Can anyone help please?

    An update on local .wav sound file for incoming TB mail messages.
    Driver Booster found outdated drivers and all have been updated.
    Sound device has been removed from the device manager and automatically re-installed.
    From advice given I have turned mail.imap.use_status_for_biff to "false".
    Still no sound from my local .wav file. Is my problem unique? Is 2.74 MB too large as a sound file?

  • How to setup XI (specifically for receiving mail+attachment)

    Hi,
    I am new to XI. After having had a training for 5 days I have my first assignment and immediately I face a lot of problems (as expected....:-))
    Situation is as follows. I have to connect 2 non-sap system via XI. External system 1 is a mailserver that sends a mailmessage + attachment to XI. XI has to read the message, convert it to a customer-specific XML and send it to external system 2. I already made the following entries:
    SLD:
    - 2 products (mailserver + external system);
    - 1 softwarecomponentversion (or should I have 2? 1 for mailserver and 1 for external system?)
    - 2 technical systems
    - 1 business system
    IR:
    - 1 integration scenario with 3 swimming lanes (first with activity SendMailMessage on mailserver, second with IntegrationProcess on external system with 2 activities (ReceiveAbstractMailMessage/SendAbstractXmlCustomerMessage), third with activity ReceiveXmlMessage on external system)
    - 1 datatype for target-structure
    - 1 messagetype for target-structure
    - 1 external definition (mail XML)
    - 4 message interfaces: MIIA for incoming mailmessage, 2 MIAA for abstract interface, MIOA for outgoing XMLmessage to customer)
    ID:
    - 1 business system
    - 2 communication channels
    - 1 interface determination
    - 1 receiver determination
    - 1 sender agreement
    Now...my questions...:
    - first of all...does the above makes some sence :-)?
    - do i have to create 1 or 2 software component versions? My idea is 1, but i am in doubt if I have to create a specific SCV for both products)
    - how do I configure the communication-channels?
    - General problem: I am facing problems configuring the ID and SLD so every help is welcome.
    Lot of questions, I really hope somebody can help me out here....
    Thanks in advance!

    Hi, JW:
    Do not worry, everyone in this forum has their own starting stage.
    Regarding your questions:
    - in the sender SMTP SCV, I also have to create a MT for the mailpackage?
      A: No, if you use mail package, you do not need create message type manually, the mail package already has message type level object defined.
    - do I create MIOA in sending SWCV, MIIA/MIOA in mapping SWCV and MIIA/MIOA in receiving SWCV? Or is it only needed to create MIIA/MIOA in receiving SWCV?
    A: Yes, for Message Interfaces, you need to create One MIOA in sending SWCV and One MIIA in receiving  SWCV
    - only 1 MI with 1 MM on the mapping SWCV, right?
    A: Depends.
         One Interface Mapping for sure need to be created.
         MM: depends, if you use XSLT Mapping, you might not need create MM anymore.
         In your interface mapping (IM), when you choose mapping program, you choose XSL type, then, select your     
         imported XSLT package (make sure your *.xsl file is saved, zipped and imported into IR)
         If you use Java Mapping, make sure, you exported your project into Jar file from your IDE, eg, NWDS, and 
         imported into IR, In your interface mapping, you choose Jave type and select your imported Java package.
    - I think I cannot use the graphical mappingtool to map the mail-xml to the customer-xml. I will need an XSLT or java. So the message itself is not simple. Does this mean I need a third swimminglane for the busuinessprocess afterall in between the 2 that you mentioned? Or can I still manage this by using just 2 swimminglanes?
    A: Yes, I think you need XSLT or Java mapping. But do not confuse it with the Integration Scenario.
        If you do not create Integration Scenario in IR, your interface will be still working.
        The purpose to create Integration scenario is to graphically representing your interface design, your message   
        flow, and also can be used in ID to import, or use wizard to create Configuration Scenario. If you do not
        create Integration Scenario, you can still be able to manually create configuration scenario in ID.
        If you still need to create Integration Scenario in IR, two swimming lanes are enough to representing your sending application component and receiving application component. There is no need to have third one except you have BPM involved in your process.
    If you have some detailed questions, you might need to search this forum, or marketplace to search OSS notes
    You are going to have a lot of details to explore, enjoy your practice !
    Liang

  • Background Journal entry for Incoming payment

    Dear Experts,
    Would you please help me in how to get the journal entry for an incoming payment entered as "payment on account".
    The relationship map does not show this, but I can see the credit entry for the customer is passed.
    same happens for incoming payment made for specific AR invoices.
    SAP Doc says...
    Result
    An incoming payment document is created.
    A journal entry that credits the customer and the tax accounts (if tax is involved), and debits the receivable account, is created.
    The journal entries of the incoming payments and the paid invoices are reconciled.
    The paid invoices are closed; they no longer appear in the Open Items list and in the Incoming Paymentswindow as documents for payment.
    So how to check the journal entries for incoming payments.
    Regards
    Message was edited by: Suman Roy

    Hi,
    To see journal entry, drill down arrow at transaction no of incoming payment window.
    Thanks & Regards,
    Nagarajan

  • Windows Cannot Access Specific Device, Path or File While Using Adobe Reader XI, Version 11.0.06

    Hello,
    Recently, I have been experiencing a minor problem with the Adobe Reader XI Program loaded on my computer.  When clicking the data fields on PDF versions of various forms to enter numerical or text information, a dialogue box with a small white X in a red circle on the left side of the title bar pops open and is titled:
    C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe
    There is another white X in a red circle symbol displayed in the message field of the dialogue box along with the following message:
    Windows cannot access the specific device, path, or file.  You may not have the appropriate permissions to access the item.
    There is also an “OK” Button displayed on the right side of the lower margin of the dialogue box.
    Although the dialogue box is repeatedly displayed whenever I click on a data field, the program still allows me to enter and save the numerical and text information that is entered in each data field.
    My computer is a Hewlett-Packard Envy 23-d034 TouchSmart All-In-One Desktop Personal Computer with a Windows 8.1 Operating System that has all applicable Important and Recommended Windows Updates installed.  The Adobe Reader XI Program is the latest version, Version 11.0.06, and I have confirmed that there are no updates for the program at this time.
    Could you suggest any recommended actions to correct this problem with the Adobe Reader XI Program?

    unfortunately no. i have a problem in my computer that doesn't let me do that.
    this is  th entire message though and it appears on the background of the program trying to load. all you can see is the frame of Rreader, and immediatly after that it shuts down

  • How do I change or remove default apps for a given file extension (in Terminal?) without munging date modified on all my old files?

    When a program is installed, it seems to be able to do it (sometimes inappropriately if it hijacks file associations without asking) so why can't I?  This is for 10.4.
    Specifically:
    1. Since installing an HP wireless printer, HP not only tries to install a bunch of sales-ware on your machine that you have to carefully opt out of (annoying, but not a problem if forewarned), it changes the default file association for a number of basic file types, listing all sort of existing files as HP printer files. Using Get Info to change the default file type association globally causes it to mark ALL the files of that type as newly updated, munging the file metdata (which HP did NOT do). Most of the stuff on our computer is sorted by last modified, so if there is a way to fix this in Terminal (to simply fix or remove the HP default tag) without changing the date the file was modified, it would help. Note that uninstalling the program that created the default would do this, but I obviously can't do that (and reinstalling HP would have the same effect). So there has to be another way, right?
    2. Since updating iTunes to v.9 a while back, every mp3 is marked as an iTunes file even though iTunes has NO multiple library capability without a wonky reboot using the option key, meaning that if I click on an mp3 downloaded since last update of iTunes, it opens automatically in iTunes and gets added to the SOLE itunes library without asking. (There is no way to toggle between multiple libraries or archive media in separate folders; iPhoto has a similar problem. (Has this been fixed in the latest version of iTunes?) In comparison, Quicktime starts up immediately and does not attempt to create a playlist just because you opened a file and listened to it.
    (The iTunes playlists are simply subfolders of the single main library -- and you can't create a new library without doing a wonky procedure by clicking option during startup and telling iTunes to forget where its library is located (includin everything in it) and look up an entirely separate one by hand. So any mp3 file downloaded recently is uploaded to iTunes if you click on it. This wouldn't be problem if it didn't automatically add it to the sole iTunes library just because you clicked on it.)
    Besides, all my old mp3s are Quicktime files and they are all archived by date modified. To its credit, ITunes, unlike HP, does NOT hijack older files already on disk and remark them as iTunes files. It only marks newly downloaded files as such.  But if I try and change file association for FUTURE mp3 files using Get Info > "use this program for all files of this type", it munges the file metadata (date modified) for all existing files!
    Note that in HP case, it apparently does it at the file exchange preference level (or whatever it's called) since the OS then recognizes every file of those types as an HP file. In the iTunes case, it only does it if you download a new media file or open an existing file in iTunes, but again without changing the date it was last edited.
    Since these programs are able to change the default file association without changing the date the file was last edited, it should be reversible in Terminal, correct?  Why does it change "date modified" when you try and correct metadata using Get Info (or sometimes just by clicking an enclosing folder?) Date modified should be a record of when a file itself was edited, not when it was renamed, or other metadata. Otherwise stuff can't be sorted correctly.

    The unix commands you need are:
    GetFileInfo
    SetFileInfo
    and maybe find
    for cryptic details use the man command
    Macintosh-HD -> Applications -> Utilities -> Terminal
    man SetFileInfo
    You may use the SetFileInfo command to set the file type & the program which will open the file.
    # This little gem will do a get info on all files in a directory.
    mac $ ls  | xargs -I {} GetFileInfo "{}"
    file: "/Users/mac/playdoc/oddadocodd"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 14:53:22
    modified: 05/01/2011 14:53:22
    file: "/Users/mac/playdoc/one.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 13:57:48
    modified: 05/01/2011 13:57:48
    file: "/Users/mac/playdoc/oneLineFile"
    type: "TEXT"
    creator: "!Rch"
    attributes: avbstclinmedz
    created: 05/07/2011 14:27:17
    modified: 05/07/2011 14:27:17
    file: "/Users/mac/playdoc/oneLineFile.txt"
    type: "TEXT"
    creator: "!Rch"
    attributes: avbstclinmedz
    created: 05/07/2011 14:27:49
    modified: 05/07/2011 14:27:49
    file: "/Users/mac/playdoc/three.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 13:58:03
    modified: 05/01/2011 13:58:03
    file: "/Users/mac/playdoc/two.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 13:57:56
    modified: 05/01/2011 13:57:56
    file: "/Users/mac/playdoc/weirder.doc.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 14:50:03
    modified: 05/01/2011 14:50:03
    # well, ! is a funnie character so we escape it.
    mac $ SetFile -t TEXT -c \!Rch two.docx
    mac $ GetFileInfo two.docx
    file: "/Users/mac/playdoc/two.docx"
    type: "TEXT"
    creator: "!Rch"
    attributes: avbstclinmedz
    created: 05/01/2011 13:57:56
    modified: 05/01/2011 13:57:56
    mac $
    mac $ date
    Sat May  7 14:40:56 EDT 2011
    mac $

  • Is there a way to save a specific set of open files?

    Hi,
    I'm trying to figure out if it's possible to save a specific set of open files in Flash so that when you close the app and then reopen it, you would either see the files that were open when you closed Flash or at least have the option to select it and it woud then open those files in the order that you left them.
    Is that an option by any chance?
    With all my class files open at one time, I hate having to reload them into the order that makes sense to me every time I launch Flash.
    I was looking into the Projects panel which seems like it's in the direction of what I would like but I can't seem to find anwhere that saves open files.
    Thanks in advance for any insight into this!
    Cole

    I don't believe this is possible with Flash - I've used Flash for a long time, and certain learn new things all the time! But Flash only has a "memory" of recently open files, and doesn't automatically open them for you.
    But, for class files, you're in luck. There's a 3rd party AS editor, FlashDevelop, that does EXACTLY that. When you launch it, it auto opens the multiple AS files you ahd open from the previous day/session. FlashDevelop is a wonderful tool to use for editing your AS (and is quicker than Flash, and does custom class introspection, where it auto-completes your own class properties & methods, as well as many other developer-friendly features).
    http://www.flashdevelop.org
    Here is a screen grab of what Flash Develop lloks liek for me when I open it (showing multiple class files opened yesterday, without me having to open them today)

  • Is there a way for my macbook air (running Lion) to access an external hard drive on my Imac (running snow leopard) specifically for Iphoto and itunes?

    Is there a way for my macbook air (running Lion 10.7.2) to access an external hard drive on my Imac (running snow leopard 10.6.8) specifically for Iphoto and itunes?

    Yes. For those two applications specifically there is sharing. This presumes both computers are on and connected to the same network.
    In iPhoto, enable sharing by (on the iMac) going to the iPhoto menu > Preferences > Sharing > check Share my photos. You can either share the entire library or only selected albums. Now on your MacBook Air, in iPhoto, go to the same preference pane and select Look for shared photos.
    iTunes has something similar. In the iTunes menu > Preferences > Sharing > check Share my library on my local network. On the other computer, look in the left column for SHARED and select the iMac. You can now play that music on the MacBook Air.
    There are other ways to share files but for those two applications this is the simplest way.
    Best of luck.

  • How to display the source code for this friggin' file.

    Below is a rather lengthy bit of code that provides the behavior and attributes of a web server for OpenCyc. I need to know if I can enter some java to have the HTML source code displayed in a separate text file whenever this class returns some resulting webpage. If you have any ideas it will be greatly appreciated.
    -"Will code for foo."
    package org.opencyc.webserver;
    * Class WebServer is simple multithreaded HTTP server
    * with CGI limited to a Cyc connection on default port 3600.
    * <p>
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.util.jar.*;
    import java.text.*;
    import org.opencyc.util.*;
    public class WebServer extends Thread {
         * Singleton WebServer instance.
        public static WebServer current;
         * Default HTTP port.
        protected static int DEFAULT_PORT = 80;
         * Default Cyc base port.
        protected static int DEFAULT_CYC_PORT = 3600;
         * Default directory to serve files from on non-Windows OS.
        protected static String DEFAULT_DIR = "/";
         * Default directory to serve files from on Windows.
        //protected static String DEFAULT_WIN_DIR = "C:\\";
        protected static String DEFAULT_WIN_DIR = "k:\\opencyc\\run\\httpd\\htdocs";
         * File cache capacity.
        protected static final int CACHE_CAPACITY = 100;
         * File cache to improve file serving performance.
        protected static Hashtable fileCache = new Hashtable(CACHE_CAPACITY);
         * Number of files served from this web server.
        protected static long nbrFilesServed = 0;
         * Number of files served from this web server that were found in the cache.
        protected static long nbrCacheHits = 0;
         * Server socket for accepting connections.
        protected ServerSocket server;
         * Directories to serve files from.
        protected ArrayList dirs;
         * Map from String (jar root) to JarFile[] (jar class path).
        protected HashMap map;
         * Webserver HTTP port.
        protected int port;
         * Cyc HTML host.
        protected String cycHost = "localhost";
         * Cyc HTML port.
        protected int cycPort;
         * Expand jar tress.
        protected boolean trees;
         * Requests flag.
        protected boolean traceRequests;
         * Constructs a WebServer object.
         * @param port the port to use
         * @param directories the directory to serve files from
         * @param trees true if files within jar files should be served up
         * @param traceRequests true if client's request text should be logged.
         * @exception IOException if the listening socket cannot be opened, or problem opening jar files.
        public WebServer() throws IOException {
            getProperties();
            server = new ServerSocket(port);
            processDirectories();
         * Class Task processes a single HTTP request.
        protected class Task extends Thread {
             * Socket for the incoming request.
            protected Socket sock;
             * Client socket to the Cyc KB HTML server.
            protected Socket cycHtmlSocket;
             * Output tcp stream.
            protected DataOutputStream out;
             * Contains the file request path for a not-found error message.
            protected String notFoundPath;
             * Contains the first line of a request message.
            protected String methodLine;
             * Contains the body of a POST method.
            protected String bodyLine;
             * Constructs a Task object.
             * @param sock the socket assigned for this request.
            public Task(Socket sock) {
                this.sock = sock;
             * Processes the HTTP request.
            public void run() {
                if (traceRequests)
                    Log.current.println("connection accepted from " + sock.getInetAddress());
                notFoundPath = "";
                try {
                    out = new DataOutputStream(sock.getOutputStream());
                    try {
                        getBytes();
                    catch (Exception e) {
                        Log.current.println("file not found: " + notFoundPath);
                        try {
                            out.writeBytes("HTTP/1.1 404 Not Found\r\n");
                            out.writeBytes("Server: Cyc WebServer\r\n");
                            out.writeBytes("Connection: close\r\n");
                            out.writeBytes("Content-Type: text/html\r\n\r\n");
                            out.writeBytes("<HTML><HEAD>\n");
                            out.writeBytes("<TITLE>404 Not Found</TITLE>\n");
                            out.writeBytes("</HEAD><BODY>\n");
                            out.writeBytes("<H1>404 - Not Found</H1>\n");
                            out.writeBytes("</BODY></HTML>");
                            out.flush();
                        catch (SocketException se) {
                catch (Exception e) {
                    Log.current.printStackTrace(e);
                finally {
                    try {
                        sock.close();
                    catch (IOException e) {
             * Reads the HTTP request and obtains the response.
             * @exception IOException when HTTP request has an invalid format.
            private void getBytes() throws IOException {
                // Below logic is complex because web browsers do not close the
                // socket after sending the request, so must parse message to find
                // the end.
                BufferedReader in = new BufferedReader(new InputStreamReader(sock.getInputStream()));
                ArrayList inBytes = new ArrayList(200);
                int ch = 0;
                boolean postMethod;
                methodLine = in.readLine();
                //if (traceRequests)
                //    Log.current.println("methodLine=" + methodLine);
                bodyLine = "";
                if (methodLine.startsWith("POST /"))
                    postMethod = true;
                else
                    postMethod = false;
                //if (traceRequests)
                //    Log.current.println("postMethod=" + postMethod);
                int ch1 = -1;
                int ch2 = -1;
                int ch3 = -1;
                int ch4 = -1;
                // Read the HTTP request headers.
                while (true) {
                    ch = in.read();
                    inBytes.add(new Integer(ch));
                    ch1 = ch2;
                    ch2 = ch3;
                    ch3 = ch4;
                    ch4 = ch;
                    if (ch1 == '\r' && ch2 == '\n' && ch3 == '\r' && ch4 == '\n')
                        break;
                    if ((! postMethod) &&
                        (! in.ready()) &&
                        ch1 == -1 &&
                        ch2 == -1 &&
                        ch3 == '\r' &&
                        ch4 == '\n') {
                        inBytes.add(new Integer('\r'));
                        inBytes.add(new Integer('\n'));
                        break;
                byte[] byteArray = new byte[inBytes.size()];
                for (int i = 0; i < inBytes.size(); i++) {
                    Integer ich = (Integer) inBytes.get(i);
                    byteArray[i] = ich.byteValue();
                String headers = new String(byteArray);
                if (postMethod) {
                    String lcHeaders = headers.toLowerCase();
                    int i = lcHeaders.indexOf("content-length: ");
                    String contentLength = lcHeaders.substring(i + 16);
                    int j = contentLength.indexOf("\r\n");
                    contentLength = contentLength.substring(0, j);
                    int bodyLen = (new Integer(contentLength)).intValue();
                    for (int k = 0; k < bodyLen; k++) {
                        bodyLine = bodyLine + (new Character((char) in.read())).toString();
                String line = methodLine + "\r\n" + headers + bodyLine;
                if (traceRequests)
                    Log.current.println(line);
                if (postMethod)
                    processHttpPost();
                else
                    if (line.startsWith("GET /"))
                        processHttpGet(line.substring(4));
                    else {
                        Log.current.println("Invalid request = " + line);
                        throw new IOException();
             * Processes an HTTP GET method.
             * @param httpGetPath the path of the file to get.
             * @exception IOException if the file is not found.
            private void processHttpGet(String httpGetPath) throws IOException {
                int i = httpGetPath.indexOf(' ');
                if (i > 0)
                    httpGetPath = httpGetPath.substring(0, i);
                Log.current.println(methodLine + " from " + sock.getInetAddress().getHostName());
                i = httpGetPath.indexOf("cg?");
                if (i > 0) {
                    cycHtmlRequest(httpGetPath.substring(i + 3));
                    return;
                notFoundPath = httpGetPath;
                i = httpGetPath.indexOf('/');
                if (i < 0 || map == null) {
                    if (map == null || httpGetPath.endsWith(".jar")) {
                        for (int j = 0; j < dirs.size(); j++) {
                            String dir = (String) dirs.get(j);
                            String nativePath = dir + httpGetPath;
                            nativePath = nativePath.replace('/', File.separatorChar);
                            if (fileCache.containsKey(nativePath)) {
                                writeDataBytes((byte[]) fileCache.get(nativePath));
                                Log.current.println("...cached");
                                nbrCacheHits++;
                                nbrFilesServed++;
                                return;
                            try {
                                File f = new File(nativePath);
                                byte[] fileBytes = getBytes(new FileInputStream(f), f.length());
                                writeDataBytes(fileBytes);
                                if (fileCache.size() >= CACHE_CAPACITY)
                                    fileCache.clear();
                                fileCache.put(nativePath, fileBytes);
                                Log.current.println("...from " + nativePath);
                                nbrFilesServed++;
                                return;
                            catch (IOException e) {
                    throw new IOException();
                String jar = httpGetPath.substring(0, i);
                httpGetPath = httpGetPath.substring(i + 1);
                JarFile[] jfs = (JarFile[]) map.get(jar);
                if (jfs == null)
                    throw new IOException();
                for (i = 0; i < jfs.length; i++) {
                    JarEntry je = jfs.getJarEntry(httpGetPath);
    if (je == null)
    continue;
    writeDataBytes(getBytes(jfs[i].getInputStream(je), je.getSize()));
    nbrFilesServed++;
    return;
    throw new IOException();
    * Processes an HTTP POST method.
    * @exception IOException if the file is not found.
    private void processHttpPost() throws IOException {
    Log.current.println("POST " + bodyLine + " from " + sock.getInetAddress().getHostName());
    cycHtmlRequest(bodyLine);
    * Reads the specified number of bytes and always close the stream.
    * @param in the file to be read for subsequent downloading.
    * @param length the number of bytes to read from the file.
    * @return An array of bytes from the file.
    * @exception IOException if an error occurs when processing the file.
    private byte[] getBytes(InputStream in, long length) throws IOException {
    DataInputStream din = new DataInputStream(in);
    byte[] bytes = new byte[ (int) length];
    try {
    din.readFully(bytes);
    finally {
    din.close();
    return bytes;
    * Sends the HTML request to Cyc.
    * @param cycPath the portion of the URL which is given to the Cyc HTML server.
    private void cycHtmlRequest(String cycPath) {
    String request = sock.getInetAddress().getHostName() + "&" + cycPath + "#";
    System.out.println("request=" + request);
    ArrayList bytes = new ArrayList(10000);
    try {
    cycHtmlSocket = new Socket(cycHost, cycPort);
    System.out.println("cycHost=" + cycHost + " cycPort=" + cycPort);
    BufferedReader cycIn = new BufferedReader(new InputStreamReader(cycHtmlSocket.getInputStream()));
    PrintWriter cycOut = new PrintWriter(cycHtmlSocket.getOutputStream(), true);
    cycOut.println(request);
    cycOut.flush();
    int ch = 0;
    while (ch >= 0) {
    ch = cycIn.read();
    bytes.add(new Integer(ch));
    catch (Exception e) {
    Log.current.printStackTrace(e);
    byte[] byteArray = new byte[bytes.size()];
    for (int i = 0; i < bytes.size() - 1; i++) {
    Integer ich = (Integer) bytes.get(i);
    byteArray[i] = ich.byteValue();
    try {
    writeTextBytes(byteArray);
    catch (Exception e) {
    Log.current.println(e.getMessage());
    * Responds to the HTTP client with data content from the requested URL.
    * @param bytes the array of bytes from the URL.
    * @exception IOException if there is an error writing to the HTTP client.
    public void writeDataBytes(byte[] bytes) throws IOException {
    out.writeBytes("HTTP/1.1 200 OK\r\n");
    out.writeBytes("Server: Cyc WebServer\r\n");
    out.writeBytes("Connection: close\r\n");
    out.writeBytes("Content-Length: " + bytes.length + "\r\n");
    String prefix = (new String(bytes)).toLowerCase();
    if (prefix.indexOf("<html>") > -1)
    out.writeBytes("Content-Type: text/html\r\n\r\n");
    else
    out.writeBytes("Content-Type: application/java\r\n\r\n");
    out.write(bytes);
    out.flush();
    * Respond to the HTTP client with text content from the requested URL.
    * @param bytes the array of bytes from the URL.
    * @exception IOException if there is an error writing to the HTTP client.
    public void writeTextBytes(byte[] bytes) throws IOException {
    out.writeBytes("HTTP/1.1 200 OK\r\n");
    out.writeBytes("Server: Cyc WebServer\r\n");
    out.writeBytes("Connection: close\r\n");
    out.writeBytes("Content-Length: " + bytes.length + "\r\n");
    out.writeBytes("Content-Type: text/html\r\n\r\n");
    out.write(bytes);
    out.flush();
    * Gets properties governing the web server's behavior.
    private void getProperties() {
    port = DEFAULT_PORT;
    String portProperty = System.getProperty("org.opencyc.webserver.port", "");
    if (! portProperty.equalsIgnoreCase(""))
    port = (new Integer(portProperty)).intValue();
    Log.current.println("Listening on port " + port);
    cycPort = DEFAULT_CYC_PORT;
    String cycPortProperty = System.getProperty("org.opencyc.webserver.cycPort", "");
    if (! cycPortProperty.equalsIgnoreCase(""))
    cycPort = (new Integer(cycPortProperty)).intValue();
    Log.current.println("Cyc connections directed to port " + cycPort);
    String dirsProperty = System.getProperty("org.opencyc.webserver.dirs", "");
    dirs = new ArrayList(3);
    StringTokenizer st = new StringTokenizer(dirsProperty, ";", false);
    while (st.hasMoreTokens()) {
    String dir = st.nextToken();
    dirs.add(dir);
    trees = false;
    String treesProperty = System.getProperty("org.opencyc.webserver.trees", "");
    if (! treesProperty.equalsIgnoreCase(""))
    trees = true;
    traceRequests = false;
    String traceRequestsProperty = System.getProperty("org.opencyc.webserver.traceRequests", "");
    if (! traceRequestsProperty.equalsIgnoreCase("")) {
    traceRequests = true;
    Log.current.println("tracing requests");
    * Adds transitive Class-Path jars to jfs.
    * @param jar the jar file
    * @param jfs the list of jar files to serve.
    * @param dir the jar file directory.
    * @exception IOException if an I/O error has occurred with the jar file.
    private void addJar(String jar, ArrayList jfs, String dir) throws IOException {
    Log.current.println("Serving jar files from: " + dir + jar);
    JarFile jf = new JarFile(dir + jar);
    jfs.add(jf);
    Manifest man = jf.getManifest();
    if (man == null)
    return;
    Attributes attrs = man.getMainAttributes();
    if (attrs == null)
    return;
    String val = attrs.getValue(Attributes.Name.CLASS_PATH);
    if (val == null)
    return;
    dir = dir + jar.substring(0, jar.lastIndexOf(File.separatorChar) + 1);
    StringTokenizer st = new StringTokenizer(val);
    while (st.hasMoreTokens()) {
    addJar(st.nextToken().replace('/', File.separatorChar), jfs, dir);
    * Administrative accessor method that obtains list of directories from which files are served.
    public ArrayList getDirs() {
    return dirs;
    * Administrative method that updates the list of directories from which files are served.
    public synchronized void setDirs(ArrayList dirs) throws IOException {
    this.dirs = dirs;
    fileCache.clear();
    processDirectories();
    * Administrative accessor method that obtains number of files served.
    * @return The number of files served.
    public long getNbrFilesServed() {
    return nbrFilesServed;
    * Administrative accessor method that obtains number of files served from cache.
    * @return The number of files served from the cache.
    public long getNbrCacheHits() {
    return nbrCacheHits;
    * Administrative method that clears the file cache.
    public synchronized void clearFileCache() {
    Log.current.println("Clearing file cache");
    fileCache.clear();
    nbrFilesServed = 0;
    nbrCacheHits = 0;
    * Processes the directories from which files are served, expanding jar trees if
    * directed.
    * @exception IOException if problem occurs while processing the jar files.
    private void processDirectories() throws IOException {
    if (dirs.size() == 0)
    if (File.separatorChar == '\\')
    dirs.add(DEFAULT_WIN_DIR);
    else
    dirs.add(DEFAULT_DIR);
    Iterator directories = dirs.iterator();
    while (directories.hasNext())
    Log.current.println("Serving from " + directories.next());
    if (trees) {
    map = new HashMap();
    for (int j = 0; j < dirs.size(); j++) {
    String dir = (String) dirs.get(j);
    String[] files = new File(dir).list();
    for (int i = 0; i < files.length; i++) {
    String jar = files[i];
    if (!jar.endsWith(".jar"))
    continue;
    ArrayList jfs = new ArrayList(1);
    addJar(jar, jfs, dir);
    map.put(jar.substring(0, jar.length() - 4), jfs.toArray(new JarFile[jfs.size()]));
    * Provides the command line interface for creating an HTTP server.
    * The properties are:
    * <pre>
    * org.opencyc.webserver.port=<HTTP listening port>
    * </pre>
    * which defaults to 80.
    * <pre>
    * org.opencyc.webserver.cycPort=<Cyc connection port>
    * </pre>
    * which defaults to 3600.
    * <pre>
    * org.opencyc.webserver.dirs=<path>;<path> ... ;<path>
    * </pre>
    * with the argument enclosed in quotes if any path contains an
    * embedded space.
    * The default directory on Windows is C:
    * and the default on other systems is / the default
    * can be overridden with this property. By default, all files
    * under this directory (including all subdirectories) are served
    * up via HTTP. If the pathname of a file is <var>path</var> relative
    * to the top-level directory, then the file can be downloaded using
    * the URL
    * <pre>
    * http://<var>host</var>:<var>port</var>/<var>path</var>
    * </pre>
    * Caching of file contents is performed.
    * <pre>
    * org.opencyc.util.log=all
    * </pre>
    * If the all value is given, then all attempts to download files
    * are output.
    * <pre>
    * org.opencyc.webserver.traceRequests
    * </pre>
    * If this property has any value, then the client HTTP requests are
    * output.<p>
    * <pre>
    * org.opencyc.webserver.trees
    * </pre>
    * This property can be used to serve up individual files stored
    * within jar files in addition to the files that are served up by
    * default. If the property has any value, the server finds all jar files
    * in the top-level directory (not in subdirectories). For each
    * jar file, if the name of the jar file is <var>name</var>.jar, then any
    * individual file named <var>file</var> within that jar file (or within
    * the jar or zip files referenced transitively in the Class-Path manifest
    * attribute, can be downloaded using a URL of the form:
    * <pre>
    * http://<var>host</var>:<var>port</var>/<var>name</var>/<var>file</var>
    * </pre>
    * When this property has any value, an open file descriptor and cached
    * information are held for each jar file, for the life of the process.
    * @param args an unused array of command line arguments.
    public static void main(String[] args) {
    Log.makeLog();
    System.out.println("OpenCyc Web Server");
    try {
    // Launch thread to accept HTTP connections.
    current = new WebServer();
    current.start();
    catch (IOException e) {
    e.printStackTrace();
    * Just keep looping, spawning a new thread for each incoming request.
    public void run() {
    try {
    while (true) {
    // Launch thread to process one HTTP request.
    new Task(server.accept()).start();
    catch (IOException e) {
    e.printStackTrace();

    JLundan,
    I want to thank you for responding to the thread I started on the forum at java.sun.com. Your solution to my problem of needing to print the code of the html pages that the file I included generates was just what I was looking for. However, I have some further questions to ask, if you don't mind. To clarify my task I should say that your rephrasing of the problem is accurate: "You wan't to display the contents of the HTML file that the web server produces in response of client's request?"
    Yes, this is what I need to do, but also it needs to display the source code of that html file that the server produces in response to the client's request. Also, in this case, I am the client requesting that the server return some html file, and I'm not sure where the server is. But the webserver.java file that I shared on the forum is on my local machine. I was wondering if I could modify this webserver.java file at my home so that any html file the server returns to me would automatically display the source code. This is a school project of mine and I am stuck on this one thing here.
    Further, where would I put the "foo.html" file so it can be written to?
    FileOuputStream fos = new FileOutputStream("foo.html");
    fos.write(bytes);
    fos.close();
    Thanks so much for your help. I look forward to your response, at your convenience.
    Regards

  • Parameters for opening PDF files in a browser

    I read some of the posts about making a text link from an html page to a specific location in a pdf document in the browser.  I set up the parameters, as I understand it, according to the document "Parameters for Opening PDF Files." The result from my test took me to the top of page 1, not to the bookmark on page 3 that I specified. See the link below. What is wrong with the parameters?
    http://www.tabardtheatre.org/YPASCfolder/2012/SummerYouthProgram2012.pdff#page=3&bookmark= anniejr
    You can also go to the website: http://www.tabardtheatre.org/audition.html and click on the text link (in blue).

    The PDF Open Parameters do not contain the option to link directly to a bookmark, as was mentioned, but I've developed a script that can add this functionality to your files. Have a look here, if you're interested: http://try67.blogspot.com/2011/06/acrobat-link-to-specific-bookmark-in.html

  • What's the difference between PNG and JPG for exporting .idea files from the Adobe Ideas app?

    What's the difference between PNG and JPG for exporting .idea files from the Adobe Ideas app?
    What situations are better to export to to .PNG or .JPG?
    J

    iPad apps are designed specifically for the iPad and will not run on the iPhone or iPod Touch. iPhone/iPod apps will run on the iPad, but will only take up an iPhone sized portion of the iPad screen (though you get a 2x button which effectively doubles each pixel in both directions so may appear pixelated). There are also 'universal' apps (which have a '+' symbol against them in the store) which have processing in them to recognise the device that they are on and will tailor the display accordingly (so will make use of the iPad's larger screen).

  • MT940 EBS upload for Incoming payment

    HI,
    We are implementing the MT940 format EBS upload for incoming payments. For incoming payment (customer) not executing the F110. so by EBS upload following posting should be happen;
    Debit - Bank account
    Credit - customer subledger account
    The note to payee information in 86 field of bank file will contain the IBAN number and invoice number. and the posting / clearing should happen as follows;
    -  post document by debiting bank account and credit customers' account based on IBAN. ( only posting ,not clearing)
    - clear the incoming payment based on invoice's document 
    - If some npayment record in bank statement not have invoice number  then clear the amount in FIFO principle based on IBAN
    Could you share what the steps i need to take care in "Assign External Transaction Types to Posting Rules" step and
    Do we need to develop user exit to take care the incoming payment clearing as described above.
    Where do we need to assign the user exit? how will system call user exit when we execute FF.5
    Regards,
    Swetha

    You account digits logic is little unclear. Thats why it is always important have the proper logic while formulating the accounts.
    For example
    If the main account is
    120300 (ending with 0)
    120301 (Cheque Payable Sub account 1)
    120302 (Cheque Receivable Sub Account 2)
    Now you can mask
    +++++1 for Cheque Payments
    +++++2 for Cheque Receipts
    But, you said, you
    main account 13102211 and incoming subaccount was 13106271
    If I understand correctly
    the masking should be ++++6271
    Otherwise
    +++67+

  • Read incoming EDI File content and FTP file on R/3 server based on value

    Hi,
    We have the below scenario:
    The incoming file is received in XI in the below directory:
    /usr/feeders//interfaces/EP1/abc
    The file name is- TCDE.BLQSAM.OCAA2682.C0084031
    The file contains some data like below:
    UNBUNOA:3HEXAGON-ABCABC10268002090806:1004+403140015324'
    UNH1CONTRL:2:2:UN:APACS'
    UCI1000284217ABC10268002HEXAGON-ABC7+C00'
    Based on this incoming file reference number in line 3 as given (1000284217) for example, a lookup needs to be made in R/3 in a table to determine if the file should be placed in directory A or Directory B in R/3 without any XML conversion.
    I have made the scenario and the details are as below:
    Created the new Mapping Archive in the IR and import this .jar
    Created an Interface mapping for the Control File processing and select the mapping program from the archive
    Created a Business Service called  "BSY_ECC6_FI_CENTRAL" and a communication channel called "CCIA_01_RFC_RECEIVER", for the connection to the R/3 system of type RFC and will have to have the connection settings for the R/3 backend with the client which has the data in it for the FM call.
    I have the java code that I can forward you for reference.
    I am not able to run the scenario successfully.
    Plaese advise as to how I can develop this scenario.
    Regards,
    Archana

    Hi Archana,
    Based on this incoming file reference number in line 3 as given (1000284217) for example, a lookup needs to be made in R/3 in a table to determine if the file should be placed in directory A or Directory B in R/3 without any XML conversion.
    Created the new Mapping Archive in the IR and import this .jar
    Created an Interface mapping for the Control File processing and select the mapping program from the archive
    Created a Business Service called "BSY_ECC6_FI_CENTRAL" and a communication channel called "CCIA_01_RFC_RECEIVER",
    for the connection to the R/3 system of type RFC and will have to have the connection settings for the R/3 backend with the
    client which has the data in it for the FM call.
    What i understand from your Qs is, you want to get the location where the file need to be placed from the table in R/3 system
    based on the ref. no mentioned in source EDI file, and the target file should be placed as a flat file format.
    You are using RFC lookup to get the details of the location in Java mapping, Once you have the location you can map it to the
    element in payload and using varaible substitution you can specify the  target directory.
    Regards,
    Prasanna

Maybe you are looking for