How to save the pdf file or word doc into sap table

Hi Expertu2019s
   I have a pfd file in my presentation server .Now I want to save the pdf file into sap table using module pool program. Whenever i need, I want to open that file from the table and show it in the Screen. Please any one tell me how I can save the file. What is the table name, guide me.
Regards,
S.Nehru.

Hi,
Try the following code
FORM gui_upload.
  DATA: lv_filetype(10) TYPE c,
        lv_gui_sep TYPE c,
        lv_file_name TYPE string.
  lv_filetype = 'PDF'.
  lv_file_name = <name of ur file>.
DATA: tb_file_data TYPE TABLE OF text4096.
* FM call to upload file
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = lv_file_name
      filetype                = lv_filetype
      has_field_separator     = lv_gui_sep
    TABLES
      data_tab                = tb_file_data
    EXCEPTIONS
      file_open_error         = 1
      file_read_error         = 2
      no_batch                = 3
      gui_refuse_filetransfer = 4
      invalid_type            = 5
      no_authority            = 6
      unknown_error           = 7
      bad_data_format         = 8
      header_not_allowed      = 9
      separator_not_allowed   = 10
      header_too_long         = 11
      unknown_dp_error        = 12
      access_denied           = 13
      dp_out_of_memory        = 14
      disk_full               = 15
      dp_timeout              = 16
      OTHERS                  = 17.
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    "gui_upload
I dont think you can save the data into sap tables in PDF format.
With the above code you can save data into an internal table.
Regards,
Manish

Similar Messages

  • I want to buy the program that will enable me to save a PDF file in word or excel

    I want to buy a program that enables me to save a PDF file in word or excel

    Program: http://www.adobe.com/products/acrobat.html
    Online service: https://www.acrobat.com/welcome/en/home.html

  • I want to programatically(in dotnet) save the pdf file open on the screen, how can i do that ?

    i want to programatically save the pdf file open on the screen. iam using dotnet. is there any library to do this ??@

    Try asking in https://forums.adobe.com/community/acrobat/acrobat_sdk

  • How do I change PDF file to word document?

    How do I change a pdf file to a word document?

    Hi Irene,
    Using Adobe Acrobat:
    How to convert a PDF file to Word:
    Open a file in Acrobat XI.
    Choose Tools > Content Editing > Export File to Microsoft Word Document.
    Click Settings to turn on optical character recognition (OCR) if your PDF contains scanned text.
    Name the Word file and save it in a desired location.
    Using Export PDF subscription:
    Sign in to: https://cloud.acrobat.com/exportpdf
    Click on the blue button that says 'Select PDF Files to Export' and you will see the following window:
    You can either navigate to the location of the pdf file you want to convert or simply drag the files on to this window.
    After selecting the file,select the 'Export Format' like Word or Excel etc. and then click on the Blue 'Export to Word' button to convert the pdf into the desired format.
    Regards,
    Rave

  • Preflight keeps saying  "Unable to save the PDF File after post processing"

    I'm at a loss how to overcome this. Spent almost a whole day, together with another person, trying to fix it with no success!
    I use Adobe pro CC on a PC
    I usually receive pdf files from this one client who edits and formats a book in Mac Pages. Up until a few days ago I had no problems converting the client's pdfs into pdf/x3, but the last three versions of the latest file have stumped me.
    Just to test, I first just tried to convert the file (33MB), unchanged, to pdf/x3 using the save as other option - message reads  "the document has been saved, however, it could not be converted according to the selected standard profile: convert to PDF/X. Please use preflight with the profile "Convert to PDF/X" in order to identify those properties of the document which prevent it from being compliant to this profile"
    if I then choose under Profiles - convert to PDF/X3 - it says no problems found, and appears to have saved the file. If I try to save again as a pdf/x3, just to make sure, it then tells me it's not pdf/x3 compliant
    OK - so then I go back to preflight - and choose the standards function - then pdf/x3, then continue with the default colour profile. About halfway through the conversion, at the point of saving the file,  I get the message "unable to save the pdf file after post processing"
    So far I've had no luck figuring out what this is.
    I then choose the option of "verify compliance of ppdf/x3" - message reads "pdf/x3 version key (GTS_PDFXVersion) missing", and "Trapped key not true or false"
    Help!! How can I be sure the file converted / or not?
    kim

    Yes I was/am aware of Preflight's inability to play nicely over cloud technologies in certain cases, especially wrt Standards technologies, this will be partially addressed in an upcoming version of Preflight without saying too much.  But the same thing could theoretically have happened if the file was also located on another local network client or server.  Leaving aside the argument that this may violate the Acrobat User Agreement - since purchasing the software, the user agrees to employ its functionality on a single host system and precludes host-client-based scenarios - this simply is not a supported use, meaning the user may not have expectations that it will work at all, if the applications requirements are not observed.  There do exist server-solutions for Preflight files within networks, but Acrobat and by extension Acrobat Preflight is not one of those solutions, and (still) belongs in the single host-based desktop environment.
    However most (99.9%) functions within Acrobat <-> acrobat.com file exchange are supported, file syncing across multiple devices will soon be supported, but Standards compliance is still admittedly a problem at this point.  Some testing has been done using 3rd party cloud technologies starting with enterprise-based solutions, such as Office 365, and this will continue to ramp up to include other 3rd party products.
    As for the second point, Preflight will usually change the PDF version to be complaint, are you saying that it was unable to do so in this case?  It seems that this error should have popped up during the normal Preflight conversion attempt.  Personally I think solving a workflow problem using the print path is a little bit of a heavy-handed approach, but if helped and the results are acceptable, then that is good.  Since that path is non-existent on a Mac, as one needs to Save as Adobe PDF from the Print dialog's PDF drop-down menu, I am assuming your workflow involved file creation on a Mac, then further processing on Windows using the PDF printer.  I am wondering if a simple resave/Save As... to PDF with overwrite on a Mac, or Preflighting the file using a PDF version compatibility profile before the PDF/X conversion would have helped.  Since there are such a multitude of methods that a PDF can be created, there are also many ways within Acrobat that a user can shape the file to be compatible with the expected workflow, ie, 'many ways to skin a cat', without being morbid.

  • Why are pdf files opened automatically in iPad email. I need to save the pdf file itself.

    Why are pdf files opened automatically in iPad email?  I need to save the pdf file itself, so I can re-read them for later.  ANy fix.  Some pdf files I send are saved as pdf files unopened.

    I have no idea how an iPad works.
    [topic moved to iOS subforum]

  • Adobe X pro 10.0.0 stop responding while saving the pdf file as word

    Adobe X pro 10.0.0 stop responding while saving the pdf file as word, i chose file>save as>microsoft word>Word Document.
    I tried to install on the X pro on another machine and tried to convert also the same issue.
    Any help? please advice

    I suggest you bring Acrobat up to 10.1.2 by appltying the most recent maintenance.
    Ken Friedman

  • How do i convert pdf file to word (i have installed microsoft word on my mac) . thanks

    Hi
    How can I convert pdf file to word ( I have installed microsoft word on my mac)
    please advise
    Thank You

    You need an OCR program. The most popular is Adobe Acrobat, but there are many free PDF> TXT programs.
    See this thread: https://discussions.apple.com/thread/3993768

  • [locked] Allow users to save the PDF file

    I've noticed that by using the form Distribution through either email, Acrobat.com, or a shared folder on the network the user can save the PDF file, correct? Do I understand this correctly? One other thing, what if I don't want to email out but just want the PDF form to be available on my website, will the user still be able to save a copy of the filled form for themselves to print or do whatever they want?

    Okay, is this the paragraph?
    15.12.3 For any unique Extended Document, you may only
    either (a) Deploy such Extended Document to an unlimited number of unique
    recipients but shall not extract information from more than five hundred (500)
    unique instances of such Extended Document or any hardcopy representation of
    such Extended Document containing filled form fields; or (b) Deploy such
    Extended Document to no more than five hundred (500) unique recipients without
    limits on the number of times you may extract information from such Extended
    Document returned to you filled-in by such Recipients. Notwithstanding anything
    therein to the contrary, obtaining additional licenses to use Acrobat Pro or
    Acrobat Pro Extended shall not increase the foregoing limits (that is, the
    foregoing limits are the aggregate total limits regardless of how many
    additional licenses to use Acrobat Pro or Acrobat Pro Extended you may have
    obtained).
    I'm not trying to break any laws but just curious as how Adobe would track that information. In any case, I'm not trying to capture/extract any information from the PDF form. Mainly what I'm trying to do or like to do is just allow the user to save the form. I don't want to capture or extract any information from the PDF form. My form is about three to four pages long and all I'm trying to do is allow the user to save the form that they partially filled and allow them to save the form so they can come back whenever they want to and finish filling up the form and that's it. I'm not looking for any data coming back to me. The user is required to print the form so their is no electronic information coming back. Is this still violate Adobe's limitation above?

  • I bought your program to convert PDF files to WORD doc. files. I did this and when I send the files as an attachment to recipients the recipients say the attachment is blank! I want a refund!!

    I bought this Adobe program to convert PDF files to Word doc. files so I could e-mail them as an attachment to people who do not have Adobe Reader. When the people got my e-mail with the attachment and opened it. The attachment was BLANK!! Is there a way to correct this?? or should I just get my money back and cancel this program?

    Hi bogy,
    How very frustrating! I'm sorry that your email attachment was blank. I'm sure this is a silly question, but did the Word file display as expected on your own machine? If not, then the issue is quite likely with the conversion from PDF to Word (but what you describe isn't a common issue that we're hearing about).
    If it looks OK for you, then I suspect the issue lies outside of ExportPDF. If the Word doc is blank when you open it, then please tell me a bit more about the PDF that you're trying to convert and we will take it from there.
    Best,
    Sara

  • How to fix the .pdf file with error "invalid annotation object"

    how to fix the .pdf file with error "invalid annotation object"

    As long as the PDF opens, then just try saving it to a new file name. There may be a preflight script that would help troubleshoot the issue.

  • How do I convert a pdf file to word.doc?

    How do I convert a pdf file to word.doc?

    Hi patsy
    If you purchased ExportPDF (for converting PDF files to Word or Excel), check out Getting Started with ExportPDF for easy-to-follow instructions.

  • How to process the PDF files at one time

    Hello,
    I'm using WebDynpro for ABAP and Adobe Interactive Forms as offline forms.
    I collect PDF files from received e-mails.
    I want them to be taken in at one time.
    (for example,
    system job read PDF files and create data in ERP,
    or I upload the files one time.)
    Please let me know
    - How to process the PDF files at one time.
    Best regards,
    Koji

    When you click the edit button in recents, try clicking the clear button in the upper left.

  • How to break the PDF file into images?

    How to break the PDF file into images? There should be settings in Photoshop CS 6 that imports PDF file and break it into images.  I have a short instruction:
    2.    Open the file in Photoshop.
    3.    A new window should open to Import PDF.  Click on images, not pages  import pdf into Photoshop.doc
    4.    Select all the files shown (shift + click), Click O.K.  Four files should open on your screen.
      Was anybody successful with that?

    Whether this is available solely depends on the structure of the PDF and whether it actually contains whole images that can be extracted separately. Depending on whatgoing on in the PDF this may simply not be the case and the images have been tiled and split up in multiple "objects" whose appearance can only be retained by rasrerizing the whole page...
    Mylenium

  • How to send the PDF file to FAX will the nast table updates

    Hi all,
    How to send the PDF file to FAX. Will the nast table updates ( which fields updates ).
    Need is once fax is send for that delivery, again it should not fax again. Will the nast table helps to check the sent fax.
    Please give me sutable suggessions....

    Have you checked Forums » Community Discussions » Code Snippets 
    I believe there were some examples on converting/sending PDF.
    Or check FM 'SO_DOCUMENT_SEND_API1' and documentation for it.

Maybe you are looking for

  • How can I delete an old exchange email account

    I have a new iPad Air. I restored it from a backup of my old iPad 3. My work exchange email account came with it but does not work. When I followed the procedures my work support provided I found a new email account was created with the same name.  I

  • Grouping -  aggregation issue- Sample data included

    The below data shows that this particular course A16 at a top level (set=01) equals to 60% coursework and 40% exam. At this level all the set=01's should always equal to 100%. The complication is where a piece of Coursework and/or Exam is made up of

  • Pass PL/SQL Record variable to Stored procedure in Java

    Can some one please give me a code snippet for passing a Record Type variable returned by Stored Procedure. Following is the scenario. A record type variable REC_VAR is made of three columns of a table as follows EmpNo Number, Empname Varchar2(50), Z

  • How to make a parameter mandatory ONLY if a certain radiobutton is clicked

    Hello experts, I have 3 radiobuttons. Now I modified it in such a way that if I clicked the 3rd radiobutton which is named pr_edit the parameter p_code will accept input. Now, what I want to modify it again that when I click on the pr_edit radiobutto

  • Help!! iternmittently getting ORA-12560. Here is a snipset..

    Hello.. i have MS com+ objects which are calling stored procedures simultaneously and rapidly and intermittently getting ORA-12560. TNS Protocol Adapter error. here is a snippset of trace log.. please give me comments to solve this problem ==========