How to Upload .TXT, BITMAP, .PDF files into a Data base Table.

Hi,
I have one requirement like Below.
I have to create a table which should hold a Text file or a Bitmap file or a PDF file and i should be able to down load it to the desktop with same format.
How i can upload or download such type of files.
Please let me know..
Srikanth.

Hi Srikanth,
*&      Form  f1104_download_to_lofile
Download to data from internal table to Logical File
FORM f1104_download_to_lofile.
Open the file in application server
  OPEN DATASET v_filepht FOR OUTPUT IN TEXT MODE.
  IF sy-subrc <> 0.
    MESSAGE s185 WITH v_filepht.           " File opening error
    LEAVE LIST-PROCESSING.
  ENDIF.
  LOOP AT i_logfile INTO w_logfile.
    TRANSFER w_logfile TO v_filepht.
    CLEAR w_logfile.
  ENDLOOP.
  IF sy-subrc = 0.
    WRITE:/ text-055, v_filepht, text-056. " File successfully created
  ELSE.
    WRITE:/ text-057, v_filepht.           " Error creating file
  ENDIF.
Closing the file
  CLOSE DATASET v_filepht.
To Retrieve Data file from Application server
(Upload from Unix)
DATA: i_file like rlgrap-filename value '/usr/sap/tmp/filename.txt'.
OPEN DATASET i_file FOR INPUT IN TEXT MODE.
IF sy-subrc NE 0.
MESSAGE e999(za) WITH 'Error opening file' i_file.
ENDIF.
DO.
Reads each line of file individually
READ DATASET i_file INTO wa_datatab.
ENDDO.
Also check:
http://www.sapdevelopment.co.uk/file/file_updown.htm
http://www.sapdevelopment.co.uk/file/file_uptabsap.htm
OR
Regards,
Anjali

Similar Messages

  • How can you convert a PDF File into a picture format for uploading?

    How can you convert a PDF File into a picture format for uploading?

    If you have Acrobat 11, you'd select: File > Save As Other > Image
    and select one of the available image formats.

  • How to upload words, exel, PDF file from the pc via itune to the iPad, and where will the uploaded file be saved? In the apps?

    How to upload words, exel, PDF file from the pc via itune to the iPad, and where will the uploaded file be saved? In the apps?

    You will need an app (or apps) on your iPad that is capable of reading the documents, as they will be saved with the app - if you don't have such an app then there is nothing to transfer them to or to read/access them.
    One method of transferring them is toconnect your iPad to your computer's iTunes, select it's app tab, and then scroll to the bottom of it - you should the apps That you've got that are capable of file-sharing (if you've got any).  Selecting/high-lighting one of them should then allow you to add files to it via the box to the right of it.
    An alternative way to get the documents onto your iPad is if the app that you want to transfer them to has a wifi setting, which will then allow you to transfer the documents wirelessly. You can also send the documents to yourself as attachments and then use Mail's 'open in' facility to copy them into your chosen app.
    Edit : more info on file sharing from the manual :
    File Sharing lets you transfer files between iPad and your computer. You can share files created with a compatible app and saved in a supported format.
    Apps that support file sharing appear in the File Sharing Apps list in iTunes. For each app, the Files list shows the documents that are on iPad. See the app’s documentation for how it shares files; not all apps support this feature.
    Connect iPad to your computer.
    In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
    In the File Sharing section, select an app from the list on the left.
    On the right, select the file you want to transfer, then click “Save to” and choose a destination on your computer.
    Transfer a file from your computer to iPad:
    Connect iPad to your computer.
    In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
    In the File Sharing section, click Add.
    Select a file, then click Choose (Mac) or OK (PC).
    The file is transferred to your device and can be opened using an app that supports that file type. To transfer more than one file, select each additional file.
    Delete a file from iPad: Select the file in the Files list, then tap Delete.
    Message was edited by: King_Penguin

  • How do I combine 41 PDF files into one PDF file?

    How do I combine 41 PDF files into a single file using ADOBE PDF Pack?

    Hi,
    To combine more than 12 files:
    Please do below to combine files:
    Log into https://createpdf.acrobat.com/signin.html with your Adobe ID and password
    Select "Combine Files" from right pane
    Click "Select Files" button
    Select your files to combine
    Enter a name for combined PDF file
    Click "Combine" button
    Click "Download" button in the progress bar to download the combined file to your computer.
    To combine more than 12 files:
    Combine 1-12th files and name it  “combined 1” for example
    Combine 13-24 files and name it “combined 2”
    Keep doing step #1 and #2 and combine those combined files to combine all your files.
    You can use Acrobat XI Pro to combine multiple files (more than 12 files) by following the steps below and you can download Acrobat XI Pro Trial version from www.adobe.com:
    In Acrobat XI Pro:
    1. Launch Acrobat
    2. Select File menu > Create > Combine Multiple Files into a Single PDF
    3. Click "Add Files" button at top left corner
    4. Select your files to combine
    5. Click "Combine Files" button at bottom of the dialog.
    You can upgrade your subscription to Acrobat Plus and please see more information at https://www.acrobat.com/acrobatplus/en/home.html
    Hisami

  • How do I combine several pdf files into one so I can send them as one file.

    how do I combine several pdf files into one so I can send them as one file

    Reader doesn't have that ability. You would need Acrobat.

  • How do I combine several pdf files into a single file (MAC OS)?

    How do I combine several pdf files into a single file ?
    MAC OS 10.6.8
    Adobe Reader 11.0.10
    Signed: Ken, in Utah

    Not possible with Reader. You need Acrobat or a subscription to something like PDF Pack to do it.

  • How do i merge two pdf files into one

    How do i merge 2 pdf files into one.

    Open up the first pdf in Preview
    Then from Menu
    select from Edit Menu
    Select Insert (your choice of)
              Page from Scanner
              Page from File (select your PDF file)
              Blank Page
    You can then save as your first file or rename it

  • How do i merge multipule pdf files into one file?

    how do i merge multipule pdf files into one file?

    One method:
    Open Acrobat XI Pro - use this "click path":
    File :: Create :: Combine Files into a Single File
    Be well...

  • How do I merge 2 pdf files into one file?

    How do I merge 2 pdf files into one file?

    I use PrimoPDF (free download) to create pdf files. To merge two docs/pdfs/etc., print the first to a new pdf using Primo. Close it, then print the second and save it to the same new pdf. Primo gives you the option to 'append' or 'overwrite' the original file. By using 'append', you are just adding it to the back of the existing file. You can do this repeatedly to resort or combine existing pages into a new pdf.
    Also, I'm using Adobe Reader X.

  • How do i combine multiple pdf file into a single pdf file?

    how do i combine multiple pdf files into a single pdf file?

    The thread was started in early March and it's Mid-April, I know this very well. The OP of this thread posted a very common and simple question or maybe he/she would have resolved this. For an Adobe Acrobat user it's not at all difficult to combine multiple PDF files into one. But to combine PDF files full version of Adobe Acrobat is mainly required, otherwise PDF files can't be combined. For example, I'm using Adobe Acrobat 9 Pro. These simple steps are mainly required to combine PDF files:
    Open Adobe Acrobat.
    Click on Combine and click on Merge files into a single PDF.
    A window will be appearing, click on Add Files and select the PDF files you want to combine.
    Arrange the selected files in any order with the help of Move Up and Move Down button.
    Now click on Combine File and the selected PDF files will be combined within a few seconds.
    A new PDF file will be created. Click on Save As and name this new PDF file. Then, click on Save.
    A new PDF file will be created and all the selected PDF files are combined in it. The steps shown above might be different in other versions of Adobe Acrobat. Other than this, some third-party PDF merge software are also available. Most of them are available with a demo version for free evaluation. I've heard much about SysInfoTools PDF Merge software on other forums and directories and it's demo version is freely available. One may check its demo version if Adobe Acrobat (full version) is not available.
    Regards

  • How do i convert a pdf file into a editable word

    how do i convert a pdf file into a editable word

    Converting a PDF to Word requires Acrobat, or the ExportPDF service.

  • I have Adobe PDF Pack. How do I convert a pdf file into word or Docx?

    I have Adobe PDF Pack. How do I convert a pdf file into word or Docx?

    Use Tools in Adobe Reader, or sign in directly at https://cloud.acrobat.com/convertpdf
    [topic moved to PDF Pack forum]

  • How can I convert a pdf file into a usable xcel file

    how can I convert a pdf file into a xcel file. the pdf file file is layed out in colums, justified and separated in various types - i need to be able to set colum limits manualy,  thanks for your input/

    Without further information, I would suggest using either Acrobat or the Export PDF service.

  • I have purchased the program and now how do I convert a PDF file into excel?

    I have purchased the program and now how do I convert a PDF file into excel?

    Hi johnhnk2,
    Please see Getting Started with ExportPDF | Adobe Community.
    That document will tell you what you need to know to get started. Please note, however, that it can take 24-48 hours for an order to process fully.
    Best,
    Sara

  • How do yo turn a pdf file into reader so i can edit the form?

    how do yo turn a pdf file into reader so i can edit the form?

    I have no idea what you are trying to say; your are trying to open a PDF with Reader?

Maybe you are looking for

  • Unable to delete RECORD in AppServer, after migrating form 6i to 11g

    Hi All, I am facing an issue, we have migrated a form from 6i to 11g the logic in "key-delrec" throws error in 11g while it is same and does not throw any error in 6i, whenever the record is tried to delete it is showing the error and if the commit_f

  • How do I use a gift card to buy songs?

    how do I use a gift card to bye songs?

  • Android Simulator causes Kernel Panics

    I don't know if this is system related or just a problem with the Android Simulator. I'm doing some development for Android 3.0  and i keep getting kernel panics when running Simulator. It's really bad, since I can get several reboots a day... Anyone

  • USB Battery Charger

    I own an iPod Touch 4th Gen, 32 GB, and would like to know if I can charge it with a nine volt battery. What I did was to secure a female USB port to the contacts of a nine volt and plugged in a USB cable. I wanted to test it, so I plugged it into my

  • Passing Data between portlets

    Hi, How can we pass the data from a Portlet in one page to another Portlet in a different Page?? Requirement: I want a portlet which should take some parameters(basically a form),On submit should process the parameters and should forward the result t