Read file content and keep binary copy

Hi All,  I don't know what the best way of doing this is, but my requirement is to read the content of a file using File Adapter and post a document with this datda in SAP, but also to keep a binary copy of the file attached to the posted document.
So my question is, Is there a way within the file adapter to read the content of the file using the Content Conversion mechanism and at the same type keep a binary copy of the read file.
Thanks,
Pablo

Hi,
I know we can send it via proxy but your question was something different or my be I misunderstood it.. here is your question again..
>
Pablo Lopez wrote:
> Hi All,  I don't know what the best way of doing this is, but my requirement is to read the content of a file using File Adapter and post a document with this datda in SAP, but also to keep a binary copy of the file attached to the posted document.
> So my question is, Is there a way within the file adapter to read the content of the file using the Content Conversion mechanism and at the same type keep a binary copy of the read file.
>
> Thanks,
> Pablo
What I understood from your question that, there is a file which you want to read/pick via file adapter and at the same time you also want to attach same file along with the content and then post it to R3.
If my assumption is correct then it is not possible. Yeh If there is some workaround then that is different story.
Regards,
Sarvesh

Similar Messages

  • Need to read text file content and have to display it in multiline text box

    dear all,
    Need to read text file content and have to display it in multiline text box.
    actually im new to file handling. i have tried up to get_line and put_line.
    in_file := TEXT_IO.FOPEN ('D:\SAMPLE.txt', 'r');
    TEXT_IO.GET_LINE (in_file,linebuf);
    i dont know how to assign this get_line function to text item
    pls help me in this regards,

    Simply write:
    in_file := TEXT_IO.FOPEN ('D:\SAMPLE.txt', 'r');
    TEXT_IO.GET_LINE (in_file,linebuf);
    :block2.t1 := chr(10)||:block2.t1||chr(10)||linebuf;
    chr(10) --> is for new line character

  • How to add do not read file content option inside File Adapter (Synch Read)

    Hi,
    Is there any way, that I can skip reading the file content inside file adapter with operation as Synchronous Read ( I just want to read the file name and directory and if the file name matches with the input variables then I have to delete the files, for this i am using FA with synch read operation, everything is fine like deletion, but it is reading the file content and storing it in DB, i dont want this) .

    This will solve your problem.
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CHDHIEBI
    HTH.
    Puneet.

  • How do I make and keep a copy of a photo in iPhoto so that I can edit the copy and keep the unedited original?

    How do I make and keep a copy of a photo in iPhoto (version 9.5.1) so that I can edit the copy and keep the unedited original?

    You don't have to. iPhoto does that automatically. Note the command in Photos menu to 'Revert to Original' and the original can be exported at any time using the Export command.
    Longer answer:
    All edits in iPhoto are virtual. The database records your decisions and then applies them to a copy of the original. So your original is untouched. Your edited version is never "fixed" until you export it.

  • WebDynpro: How to read file content?

    Hi,
    My business scenario requires:
    1, The file name is passed in through inbound plug parameter
    2, I need to read the file content and then attach it to my CRM transaction
    Please share with me how to read the file content.
    The following approaches do not fit my scenario:
    1, UI element: FileUpload
    The reason is obvious: there is only file name parameter instead of any UI interface
    2, Function Module: GUI_UPLOAD
    The reason is that dump will happen in WebDynpro environment
    Thanks & Best Regards,
    David

    HI,
    Refer these links  -
    Get content document in WD abap
    Excel File to Internal Table

  • Logging software - shrinking file size and keeping timecode

    I recently found and downloaded the trial version of InqScribe Transcription Software (http://www.inqscribe.com/index.html).
    It seems pretty neat. You can open up and video file in the program and it read the timecode from the file and inserts it into transcript as your typing. It says it can open ANY type of video that Quicktime can view.
    Here's my dilemma - I want my clients and producer to use this program to log footage on their PCs out and about. I"m shooting with the Sony NX5 and transcoding to Pro Res LT. Obviously these files are HUGE.
    I'd like to find a way that I can shrink the file sizes and keep the original timecode. I thought h.264 would be best. I can also shrink the resolution from 1920x1080 down to something much smaller.
    I'm looking for an end product that is compatible with PCs and Macs, around 500mbs or less, and has the original TC.

    Resize to 480x270. The data rate before compression will be 1/16 of the 1920x 1080 image. Add H.264 Quicktime compression and you'll have a small file. Verify with the company that it can read h.264 files.
    When you do the conversion use Compressor and turn off Frame Controls when you do the resizing.The encoding will go much faster.
    x

  • Read a file content and copy to another Diectory

    I wanted to do the following
    1-read a file from dir
    2- read the content of the file
    3- if the file contains zeros
    exit from this file and go to read next file
    else
    do some calculations
    i read a file and its contents and found zeros in the contents, so how can i say in the code to go to next file..
    any help please

    It depends on your code, but most likely using "return":
    //pseudo code
    while(moreFiles) {
      parseFile(file)
    void parseFile(File file) {
      while(moreContentToRead) {
        if(foundZero) {
          return;
    }

  • 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

  • BPM/File Content and Dynamic File Name

    Bit of a double whammy here!
    I am running a BPM :  R/3 Proxy > XI > BPM > File Adapter (x4)
    All working to a point.....
    The file I receive splits into two files, then I pass a Count file - number of records to a separate file and then a file that simply says "ready" on completion.  Four files are:
    Data file, Lookup (values and descripton for legacy), Count file and Ready file.
    To top this off, it will be run for 12 separate countries so hope to use the country code to add to the file naming - so generating 48 files (if successful). Data_GB.dat, lookup_GB.dat, Count_GB.dat and ready_GB.dat etc.... 
    The first three, I can do (with maybe a little help!), I have looked at the use of dynamic file naming and think I can do this, however, the count file uses the initial file sent, but the ready file passes across the word "ready" to destination file.  How can I utilise the dynamic naming convention if I do not use the original file for this?
    Also, the "ready" file is being created but it is empty.  It is okay using the the File Adapter, but when I convert it, the file is empty (but still created!)  IN sxmb_moni, it is showing correctly but once the file content conversion happens, it is empty!
    Any thoughts?

    Thanks Bhavesh.
    Time Stamp Status Description
    2007-05-08 17:43:57 Success Message successfully received by messaging system. Profile: XI URL: http://host.fqdn.net:55000/MessagingSystem/receive/AFW/XI Credential (User): XIISUSER
    2007-05-08 17:43:57 Success Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2007-05-08 17:43:57 Success Message successfully put into the queue.
    2007-05-08 17:43:57 Success The message was successfully retrieved from the receive queue.
    2007-05-08 17:43:57 Success The message status set to DLNG.
    2007-05-08 17:43:57 Success Delivering to channel: EPIW_FTP_Receiver_EmployeeReady
    2007-05-08 17:43:57 Success MP: entering
    2007-05-08 17:43:57 Success MP: processing local module localejbs/CallSapAdapter
    2007-05-08 17:43:57 Success File adapter receiver: processing started; QoS required: ExactlyOnce
    2007-05-08 17:43:57 Success File adapter receiver channel EPIW_FTP_Receiver_EmployeeReady: start processing: party " ", service "XE_DEV_3RD_EPIW_001"
    2007-05-08 17:43:57 Success Connect to FTP server "ftp.ftp.ftp.ftp", directory "/ECS/Target"
    2007-05-08 17:43:57 Success Write to FTP server "ftp.ftp.ftp.ftp", directory "/ECS/Target",   file "xi_epiw_ready20070508-174357-635.dat"
    2007-05-08 17:43:57 Success Transfer: "BIN" mode, size 156 bytes, character encoding -
    2007-05-08 17:43:57 Success Start converting XML document content to plain text
    2007-05-08 17:43:57 Success File processing complete
    2007-05-08 17:43:57 Success MP: leaving
    2007-05-08 17:43:57 Success The message was successfully delivered to the application using connection File_http://sap.com/xi/XI/System.
    2007-05-08 17:43:57 Success The message status set to DLVD.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:EPIWReadyFile xmlns:ns0="urn:com.xerox.esap.hr.epiwextract">
      <recordReady>READY</recordReady>
      </ns0:EPIWReadyFile>
    Transfer: Binary
    File Type : Text
    File Content Conversion:
    Record Set Structure: Detail
    Detail.fieldSeparator     ,
    Detail.endSeparator     'nl'
    It maybe something simple... 
    Hopefully you can help : )
    Thanks
    Barry

  • Reading file content into internal table

    Hi All,
    I'm facing problem reading pdf file content into an internal table. I need to read this file from communication server (neither presentation nor application server). I have tried gui_upload , it is working fine but it does not work in batch jobs. Open dataset in binary mode is also not helping much. Could anyone help ?
    Thanks a lot

    "open dataset <filepath> for input in binary mode" should work.... what does it say when you try this?
    Thanks
    Muktar

  • Problem in reading file contents in to inernal table

    i have  a problem with the archive file
    actually i have created archive files in SAP file system i stored the archive file in a external repository.
    now i like to access one of the archive file i want to read the contents of the file in to a internal table.
    the starting of the file contains some unique document number i need to able to capture that document number.
    i am able to read the contents from archive file but the contents are unknown charecters.
    i used open data set to read the contents of the file , but i cannot resolve these unknown charecters.

    Call transactions
    - SARA Archive Administration
    - AOBJ to find the read program (if exists) associated to the archive object
    More information on [Archive Administration|http://help.sap.com/saphelp_smehp1/helpdata/en/8d/3e4d70462a11d189000000e8323d3a/frameset.htm] and [Archive Development Kit|http://help.sap.com/saphelp_smehp1/helpdata/en/2a/fa0391493111d182b70000e829fbfe/frameset.htm]
    Regards,
    Raymond

  • Opening Multiple Reader Files Stacked and Aligned

    I know it's a strange request but...
    A coworker of mine is wanting all of the Reader files that she opens to have each Reader window aligned and stacked on each other instead of them cascading or randomly arranged. These are all the same size documents and the layout is the same but just different content for each.
    I have tried changing the preferences under Open Settings in "Documents" to "check Restore last view settings when reopening documents". But it isn't working.
    Anyone else require this or know how to make this happen?
    Jim

    I don't believe you have any control over this.

  • Using config file VIs and keep getting dequeue error

    So I am using the config file VIs and I made some of my own VIs with additional functions for the progarm I'm working on.  When I use the config file VIs on their own everything seems to work fine but then I use them from one of my custom VIs to another I keep getting a dequeue error in the "Save and Close INI.vi" VI.  Below is how I have it set up right now... basically as simple as I can make it using my VIs.  I attached a zip file with my subVIs and alsow the config file I was using if anyone finds time to look.
    I've been trying to figure this out for a while and I j ust can't see to find any reasion why I would get a queueing error.  I even dug down into the config file VIs and I'm really not sure why but it seems there is nothing in the queue.
    Thanks in advance.
    PS - don't mind the random notes and I know the disable is "messy" but I was just pulling it down and out of the way of what I was paying attention to.
    Attachments:
    INI VIs.zip ‏93 KB
    config.ini ‏1 KB

    It's unlike me to just give up on a problem so I kept looking at it and it turned out that my config file had a section label with no keys or values under it.  This is what caused all my problems.  Everything seems to be working 100% now.

  • How do I set up file sharing and keep my Firewall on?

    When I turned my Firewall on, I lost the ability to share files and screens on my LAN. When I looked at the advanced settings, I saw that File Sharing, Screen Sharing and Web Sharing were already set to Allow incoming connections but other, related, services, AppleFileServer, httpd, kdc, netbiosd, and screensharingd were set to block incoming connections. I reset the latter to allow incoming connections but was still unable to access my computer from another. Once I turned off the Firewall, I was able to access file sharing and screensharing from another computer on my LAN.
    I have a firewall built into my external router so I have some protection but I still feel uncomfortable with the Firewall on my computer turned off.
    When my firewall is on even with setting up to allow incoming connections, there are lots of console messages like:
    1/8/12 3:00:00.882 PM Firewall: Deny netbiosd data in from 192.168.1.2:51619 to port 137 proto=17
    They go away as soon as I turn off the firewall.
    I did not find the Apple technical article "Set firewall access for services and applications" at http://docs.info.apple.com/article.html?path=Mac/10.7/en/mh18503.html useful at all.
    Any ideas as to what is wrong?

    I normally have a Firewall enabled. I recently had to do an erase and install of Lion, followed by a one-by-one re-install of all of my software. One of the first things I did was to set up all of my System Preferences the way I like them; Turning the Firewall on was one of them. Later I noticed it was off and turned it on again. I had already set up sharing and was surprised to see the problem when I turned it back on.
    As to why do I think it needs to be on. It is another part of my security layer.

  • How to read file header/open filein binary mode

    i am using FileConnenction API to read from a file. how can i open a file in binary mode so that i can read file header. In other words i want to open a file in binary mode.

    You can always try looking at the [Header Signatures|http://www.techpathways.com/uploads/headersig.txt]. But it would probably be easier to adjust your application so it doesn't have to guess.
    ~

Maybe you are looking for

  • How to find out the primary and failover DNS name

    Hi; This sounds very stupid, but could some one please tell me how to find out the name/dns name of the primary and failover server without using the CDS console. any help is appreciated

  • How do i know what model is my Satellite M?

    I got no idea what my model number is, the site shows there are at least 20 diferent M series, and the Toshiba website is very frustrating that it have no tools or anyway watsooo ever to know my own laptop model.papers long misplaced and now i cannot

  • Partial MIRO

    Hi, We have configured the GR based IV in our System.... But in one instance the GR has been done of 100 pcs but that Gr has been split in  2 Invoices of 25 pcs & 75 pcs so we to need to do Miro Twice, Is it Possible to do partial MIRO in that case.

  • Displaying the report name in the 'No results' view

    Hi guys, This is 10.1.3.4.1 In the *'No results' view*: is it possible to retrieve and show the Answers request name dynamically? I've found two threads: Changing the default No results text http://forums.oracle.com/forums/thread.jspa?messageID=83123

  • When syncing Aperture projects/albums to an iOS device, are the original files synced or are they the previews?

    My concern is that sincing the original RAW files will eat up the space on my iPhone quickly. So what size/quality are the photos from Aperture synced to my iPhone (or iOS device) Thanks in advance.