How to open a pdf file using OPEN DATASET

Im trying to convert a pdf into binary format. So im trying to read the contents of the pdf into a XSTRING. Using the FM 'SCMS_XSTRING_TO_BINARY' i can convert the XSTRING to binary format.
How to open a pdf file using OPEN DATASET and transfer its contents in a XSTRING variable.
What i've tried is....
DATA: f_name type string value 'C:\rep_output_pdf.pdf',
      x1 type xstring,
      LT_DATA TYPE STANDARD TABLE OF X255.
OPEN DATASET f_name FOR input IN BINARY MODE.
READ DATASET f_name INTO x1.
CLOSE DATASET f_name.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
      BUFFER     = x1
    TABLES
      BINARY_TAB = LT_DATA.
Im getting a short dump .
Short text: The file is not open.
Plz help me out.

Hello Rajesh,
You are trying to do use OPEN DATASET with a local file. NOT POSSIBLE
You have to have the file in the app server to use OPEN DATASET.
BR,
Suhas

Similar Messages

  • How to open the pdf file using LabVIEW program

    I want to open the pdf file using the system exe, but it is not happening . Can you help me?
    Solved!
    Go to Solution.

    In simpler version
    Mark the satisfied answer as accepted solution for your question,you mistakenly marked youself 
    Message Edited by Baji on 04-07-2009 05:03 PM
    Balaji PK (CLA)
    Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    open pdf.JPG ‏25 KB

  • How do I download PDF files using Safari.  All I get is a black screen.

    How do I download PDF files using Safari.  All I get is a black screen.

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • When i try to open a pdf file it opens as a word document and then a window pops up saying file conv

    When I try to open a pdf file it opens with microsoft word which I can't view. Then a window pops up with "file convertion - permissioning.pdf
    could you tell me how to rectify this,
    Thanks

    Your file association is corrupted; reinstalling or repairing Adobe Reader will likely fix it.
    If you want to fix it manually, tell us your operating system & version.

  • Does anyone know how i can view PDF files using Galaxy Note 2?

    Does anyone know how i can view PDF files using Galaxy Note 2?
    This is what i have been doing;
    I click on the file i wish to view (via a portal)
    this file goes to notification widget (i drag down screen)
    notification/message says download complete
    i click on notification/message
    nows it says complete action using (here i only have 2 icon options 1= DB Text Editor 2 = HTML Viewer)
    I have installed Adobe Reader.

    Can you confirm if the downloaded file is a pdf file, that is it ends with .pdf?

  • How to protect my PDF file using Adobe Acrobat Pro that i can trace user's IP adress?

    How to protect my PDF file using Adobe Acrobat Pro that i can trace user's IP adress?

    Used to be able. Considered a security bug. Fixed.

  • How to open a PDF file using NWDS or VC

    Hi Frndz...
    As per my requirment i need to open a PDF file on browser which PDFs are reside on R/3 and in my case EP server is on UNIX usinig either NWDS or VC ....
    Thanks in Advance
    Regards
    Rajesh
    09903726944

    hi,
    can you put your question much more clearly? I couldnt get you properly.
    Check out the following links, they may be useful
    [How to Create a pdf form Using Web Dynpro - Java;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/805709cb-ec97-2910-04b8-f3d6303d8d3b]
    [Diff - PDF view inside NWDS livecycle designer and when App. is run;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9]
    Regards,
    Murthy.

  • How do I get pdf file to open from websites?

    When I click on a pdf file to open from a website, Explorer tries to open the pdf, but reloads the page then errors out.  I am running XP pro with the Adobe Reader X.  I have tried to uninstall reader and re-install.  My registry is using the correct file.  The associates show reader as the default program.  I don't know where else to look.
    Thanks for your help.
    jdiek

    What is your Adobe Reader version and your browser. If you are using Internet Explorer, use it in 32-bit mode.

  • When opening a PDF file quicktime opens it instead of preview, how do I get preview back

    Quick Time now opens my PDF files instead of Preview How can I get Preview to open them up?

    Do a Get Info on one of the PDF files - select the file (click it once), then press Command-I (Get Info in the File menu).
    In the Get Info window, about half-way down is an item "Open with:" - set the pulldown menu in that section to "Preview".
    If you want to make that change to all PDFs, then click the "Change All..." button.

  • Open multiple pdf files using Acrobat Reader?

    Can we open and switch between multiple pdf files using Acrobat Reader?

    Of course, but if it's Reader X or later each file will appear in its own window. This can't be changed.

  • How to upload a pdf file using webdynpro abap

    Hi Experts,
    I need to upload pdf files using webdynpro abap.my question is where to upload this files and how to upload this files, and how to display this pdf file.
    Please Provide Requried Information.
    Waiting for Reply.
    Thanks & Regards.
    Bhushan.

    Hi,
    There is a UI element with the type 'File Upload'.
    You can use that in your view.
    For further details and coding, please refer to
    [http://www.****************/Tutorials/WebDynproABAP/Upload/Page1.htm]
    Hope this helps you.
    Regards,
    Dolly

  • How to open a PDF file using forms 9i

    Hi guys!!! Could you please help me with this?
    Using the webutil library, i've found the function FILE_OPEN_DIALOG which yes, it is like windows' dialog box, but it doesn't open the specific file. If i have the PDF software, and a pdf file, and i use the webutil code to open the file from forms, why doesn't it open de file?
    Code used:
    :block.item := WEBUTIL_FILE.FILE_OPEN_DIALOG('c:\',
    'pdf|*.pdf',
    'Select a file: ') ;
    I have also used:
    :block.item := webutil_file.file_selection_dialog(directory_name => 'c:\',
    file_name => null,
    file_filter => 'pdf|*.pdf',
    title => 'Select a file',
    dialog_type => open_file, --save_file
    select_file => TRUE);
    thnx!!

    The dialog just gives you the name of the file to open. You then have to write code to open the file. web.show_document should work.
    I have deleted your last entry. Whatever you think about the situation, a civilized language (which I know Spanish to be) would be appreciated.

  • How to open a pdf file using Acrobat reader in Java?

    Or if you can just tell me where in the tutorial is the section that discuss running other application from Java, I'd appreciate it. My assignment(at work, not school) is to make a class that receive a pdf file, which is passed by RMI, and display it in a child window or in a JDesktopPane. Thank you.
    kindo

    Hi Kindoo,
    try using Runtime.exe(fileName)
    Nagaraj

  • Opening downloaded pdf files using Adobe instead of in Safari

    I prefer to use full-feature Adobe software to view downloaded pdf files instead of Safari. How do I keep Safari from opening them in the browser and instead automatically open Adobe Reader when the search engine finds a pdf file?

    I have just installed Adobe Reader 9. I am getting frequent system hangs (cannot do anything without cold re-boot) when using the product, in particular when using forms documents provided by Companies House, a UK government agency.

  • Open a PDF file using PDF reader

    Hi All,
    How to open a dynamique adresse of pdf files with adobe reader and not with the browser using URLLoader
    Thanks,
    Amine

    what sort of flash app do you have ?
    I have flash player, not projector or air app.
    Are you sure your users have adobe reader set as their default pdf viewer ?
    Yes, it's for a project in the hospital, i have  medical articles and i create app for searching  articles by categories and specialities

Maybe you are looking for

  • File types for Playback in MainStage 3?

    I have some questions about utilizing Playback in Mainstage 3.  What types of files can I load into the Playback interface?  Does it ONLY take .WAV files?  I would really like to import mp3's or complete songs into Playback so I can play along withou

  • How to move from one transaction iView to another without losing the info.

    Hello expert, Is there a way to configure multiple transaction iViews in away that when I click on another iViews and want to go back to the old one, then the information is still there?  For example, we have a customize transaction that is fetched b

  • Music plays in iTunes, but not on iPod

    Bought an iPod Classic 120GB recently.  Roughly half of my music will play on the iPod, but all of it plays on my PC.  I have resynced multiple times and actually traded it in through the Apple store thinking that might be a quick fix.  Still the pro

  • Is it possible to Recall an Email Message

    I am fairly certain that it's not possible. But on the Windows Outllook side, there is the option to recall or rescind an email message. Is there a Mac OS Mail equivalent, or SW add-on that adds this capability? Not an everyday feature, but when need

  • Call ABAP Program from outside SAP

    Hi all, How can I call an ABAP program from outside SAP, for example from a C++ executable, a .NET assembly or a JAVA package ? Are their "adapters" provided by SAP for this ? Angela