Unable to store PDF , XL , Word document into SAP archived tables

Hi Experts,
I have created a web interface in WD ABAP which stores the employee's attachement data into sap arcived link.
For that I have carried out following activities.
I have Complted customizing for a document type under business object PREL and for this I have reffered following link.
SASAP Archived Link
Now I have used file Upload UI element in WDABAP which passes the local file data in Xstring to following function modoules for creating
an attachment.
data: it_out type TOADT,
it_storage type ZDMSSTORAGE.
CALL FUNCTION 'ARCHIV_CREATE_TABLE'
EXPORTING
ar_object = 'HRPDATA' " Object catagory that I have created for file storage under Business Object PREL
object_id = '10000008'
sap_object = 'PREL'
document = filedata
IMPORTING
OUTDOC = it_out
EXCEPTIONS
error_archiv = 1
error_communicationtable = 2
error_connectiontable = 3
error_kernel = 4
error_parameter = 5
error_user_exit = 6
OTHERS = 7.
For reading the attached document I am using following FM's
CALL FUNCTION 'SCMS_AO_TABLE_GET'
EXPORTING
MANDT = SY-MANDT
arc_id = 'Z1'
doc_id = lv_doc_type"im_doc "'4D5D8445165220C8E10000000A3C082E'
COMP_ID = 'data'
IMPORTING
LENGTH =
tables
data = bindata.
*data: BINARY_TAB type
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = 10000
FIRST_LINE = 0
LAST_LINE = 0
IMPORTING
BUFFER = V_XSTRING
tables
binary_tab = bindata.
Now when I upload any file text or image file, its working fine. When I try to upload any pdf , XL or word document, it uploads the file into acchived table
but when I read this file by converting file data into xstring and passing it into file downlod UI element, It says file is corrupt. Please suggest that if that
is a issue with object catagory configration ( With storage class) or it is wrong way of reading a document for PDF, XL and word
Thanks in advance
Abhay

hi
please check the function module used whether it can handle the PDF as well as xl, word documents. if not use some other function module

Similar Messages

  • Upload word document into SAP

    Is it possible to attach or upload MS Office Word documents into SAP?

    Hi,
    exactly what is your requriement?
    if you want to uplaod .doc into any particular transaction for particular ouccurence(say PO number) , then it depends on the options provided with in that transaction(ME21N for this Ex.)
    otherwise if you want to store some documents in general  then you can store it on Application server.
    Regards,
    Suresh

  • Unable to create PDF from Word document.

    I was trying to create a PDF file from a Word document but got the following error message: "An unexpected error occurred.  PDFMaker was unable to produce the Adobe PDF" and no PDF was created.  There was no error number.  Has anyone seen this error and is there a work around.  This is Acrobat XI Pro and was installed within the last few days.

    Can you print to the Adobe PDF printer? Have you updated AA XI (now at 11.0.05)? What version of WORD (AA XI does not work with PDF Maker on all versions of WORD)?

  • Upload of Sections in Word Document into SAP SE38 editor

    Hi
    I was wondering if we can build a ABAP tool which would read different sections within the 'Technical Specification Document' word document and  
    - Create ABAP program in SE38
    - pull content from various sections of Word document under the respective event in SE38
    e.g program could pick up the content written under section '1.1- Input Selection' and have it replicated in ABAP editor before 'Initialization' Event.....
    To make this happen, i am currently struggling to read the content from Word Document. Would apprecaite if you can help /share some light on this subject.
    thanks

    First of all I am wondering who places all the code in techinical documenation. For me it should be just a summary of all things done in the program, so it actually should be created after the report is ready, not before.
    Secondly generating the code from some input stream is highly risky. Word or other applications don't have syntax checker for ABAP, right? So how do you know this coding doesn't dump once loaded to the report.
    Next, dynamic report generation is of course possible with at least two ways, one would be using [generate subroutine pool|http://help.sap.com/abapdocu_70/en/ABAPGENERATE_SHORTREF.htm] but it would require whole program to be self-written not just part of it. Another way with [READ REPORT|http://help.sap.com/abapdocu_70/en/ABAPREAD_REPORT_SHORTREF.htm]  and then insert your part using [INSERT REPORT|http://help.sap.com/abapdocu_70/en/ABAPINSERT_REPORT_SHORTREF.htm]  but this is also not a convenient way of changing the report unless you do this deliberately and totally aware of the consequences.
    As for reading Word you can use OLE or [Desktop Office Integration|http://help.sap.com/saphelp_nw04/helpdata/en/e9/0be7b9408e11d1893b0000e8323c4f/frameset.htm]. For the latter you might look at package SOFFICEINTEGRATION .
    To sum up, although technically possible there is no quarantee you will have the code proper in your document so inserting it in some program might be disaster in consequences.
    Regards
    Marcin

  • Unable to convert PDF to word docuement

    just bought adobe program to convert PDF file to word docuemet, when i export and follow direction to convert, program come back stating failed to convert the file, why?????

    Hi MaryFran246,
    I'm terribly sorry for the inconvenience this has caused you.
    Could you try these steps to alleviate the access issue you're having:
    Choose Edit > Preferences (Win) or Adobe Reader > Preferences (Mac)
    Click 'Online Services' on the left-hand side
    Sign out of our Adobe ID and sign back in.
    Try to convert your document again.
    If you continue to have trouble, please verify that you can access the service via the web interface.  To do this:
    Open a browser and navigate to http://exportpdf.acrobat.com/signin.html
    Try to log in with your Adobe ID (email address) and password
    Once logged in, follow the on-screen prompts to convert a file
    Let us know if you're still having trouble and we'll try to help!
    -David

  • How do I convert a pdf or Word document into a fillable form?

    I have a questionnaire that I created in Word and have saved as a pdf.  I would like to email and post this form on a web page for my clients to complete.  How do I accomplish this?

    Start to learn about PDF Forms here:
    Acrobat User Community Tutorials

  • Inplace Word document into SAP in ECC 6.0 (it runs in 4.6)

    We are in the process of upgrading from 4.6C to ECC 6 and have encountered an unusual situation.
    In 4.6 system, we have a Z report which charge a word template (integrated in SAP Screen) with some data about employees. This programs doesn't run in ecc 6.0.
    Doing a debbug, we change the parameter inplace (before had 'X', now we've clear it) of the following methods, and now it runs, but take out, in a Microsoft Word window, the template with the data.
      CALL METHOD control->init_control
                          EXPORTING r3_application_name = text-bas
                                    inplace_enabled = inplace
                                    inplace_scroll_documents = 'X'
                                    parent = container
                                    register_on_close_event = 'X'
                                    register_on_custom_event = 'X'
                                    no_flush = 'X'.
    and
      CALL METHOD document->open_document
                        EXPORTING open_inplace = inplace
                                  document_url = item_url.
    Does anybody know how we can do for maintain the old presentation way (without an external Word Window)?
    Thanks and Best regards.
    Abel Raya.

    Refer to Note 160892
    A modification is described in the below with which more than 120 value fields are allowed for an operating concern. SAP does not accept responsibility for problems resulting from the implementation of this modification.
    Pre-Requisite
    Before you increase the number of the characteristics or value fields, check whether all characteristics and value fields of the operating concern are required.
    I guess, there is no increase in the number of value fields in ECC6 standard over 120.

  • Storing PDF and Word document in oracle database

    any idea, how to store PDF and word document using oracle database.
    thanks

    The common approach is store as BLOB in database, use DBMS_LOB package to handle the loading and reading, sample script source asktom
    Also check this thread in Asktom
    SQL> create table demo
      2  ( id        INT PRIMARY KEY,
      3    theBlob   blob,
      4    dummy_col VARCHAR2(1)
      5  )
      6  /
    Table created.
    SQL> -- --------------------------------------------------------------
    SQL> -- Load a PDF file into a BLOB field and compress the BLOB.
    SQL> -- --------------------------------------------------------------
    SQL> declare
      2      l_blob    blob;
      3      l_bfile   bfile;
      4 
      5  begin
      6      insert into demo (id, theBLOB) values ( 1, empty_blob() )
      7      returning theBlob into l_blob;
      8 
      9      l_bfile := bfilename( 'BLOB_DIR', 'Test.PDF' );
    10      dbms_lob.fileopen( l_bfile );
    11 
    12      dbms_lob.loadfromfile( l_blob,
    13                             l_bfile,
    14                             dbms_lob.getlength( l_bfile ) );
    15 
    16      UPDATE demo
    17      SET    theBlob = utl_compress.lz_compress(l_blob, 6)
    18      WHERE  id = 1;
    19  -- If you don't want compress the LOB just update directly
    20      dbms_lob.fileclose( l_bfile );
    21      COMMIT;
    22  end;
    23  /
    PL/SQL procedure successfully completed

  • How to store word document in SAP

    Hi Friends,
         How to store and retrive word document in SAP?
    Thanks & Regards,
    Vallamuthu.M

    Hi,
    Check for the SAP ArchiveLink & BDS feature which SAP is providing . I think it will help you.
    Regards
    Maneesh Chandran

  • I want to know how to turn a word document into a jpeg so I can put the document on Facebook as a picture. I have made posters and if I do a print screen they are unable to be read, or if i turn it into a PDF there is no save as jpeg??

    I want to know how to turn a word document into a jpeg so I can put the document on Facebook as a picture. I have made posters and if I do a print screen they are unable to be read, or if i turn it into a PDF there is no save as jpeg??

    iOS device backups are stored in your iTunes library.
    Move your iTunes library to an external drive.

  • Acrobat XI Pro Won't Convert 206 Page Word Document into PDF

    Hi there
    As menetioned above, Acrobat XI Pro Won't Convert my 206 Page Word Document into a PDF.  The Word document was originally a PDF file that I converted to Word and it has split all the text into sections.
    It sounds like converting a PDF into Word isn't the best way to edit, re-format and then save as a PDF again.  I would love to hear your advice on this.
    Thanks very much for your help!
    Fiona

    First before you recreate the PDF from the Word Document.
    In word: Open Document
    Next open a new Blank docment
    switch back to Word click on the ¶ button
    scroll to of go to very end of docment.
    click just to right of the perion in the last sentence.
    now go to very beginning of document
    Hold down the Shift and click to the right of first letter in document.
    Now choose copy.
    Now switch to Blank document
    Choose Paste special.
    Now choose Text only.
    If works all the words will be there spaced correct but with no ¶'s.
    Now insert returns as desired.
    Now save as a docx file under a different name.
    IF you are on a Mac use the following directions:
    go to File menu > Print > PDF Hold down PDF button until Context menu pops up.
    Choose adobe PDF.
    follow steps when the first window opens.
    Save as PDF in desired location.
    Now open the PDF in Acrobat. Document should be properly formatted and ready to go.
    AS you've found The conversion is not seamless. Acrobat doesn't distingish between automatic end of line breaks and Returns and you have to put the pieces back again.  I wish Adobe and MS would get over the jealouscy of each other and share howcode works so Thatapplications could work seamlessly together.  BUt they never will.

  • How do I convert a word document into a pdf and then upload it to a web site

    How do I convert a word document into a pdf and then upload it to a web site so people can read it from my
    site with Dreamweaver 4?. How can I do this? Can anyone please help? I'm only a newbie. Thanking you in anticipation.

    First you need to install a means of printing to pdf from word.  I like cutepdf writer ( http://cutepdf.com/Products/CutePDF/writer.asp ).  Once installed you will print the doc in word and under the printer selection you choose pdf.
    Once you have the file you put it in your local site folders and upload it using Dreamweaver.  Be sure to link to it from a page so users can get to it and I would recommend giving the link a target of _black so it will open in a new window (see the properties inspector in DW).

  • Adobe Acrobat 9/Win7 - Inserting Word documents into PDF file intermittently leads to missing or garbled text?

    Heya.
    I have a user who is creating a PDF essentially compiled from inserting word documents into the position she wants inside of the PDF.
    The problem is that sometimes this leads to missing or garbled text. For example, 6-8.1 is displayed as 6- .1. Which is just plain weird.
    Other times, the text looks garbled or uneven. She turned off her PC but I took screenshots of both of these scenarios. I fear that I am not going to be able to retroactively fix the corruption in this document for her.
    She says she's using very standard fonts. Like Arial. I asked if she could locate the original Word document that produced the garbled text, just for a sanity check. The problem is that her co-worker may have been the only one with that particular word document (there are probably hundreds which compile this PDF...) and IF she has it, she might not be able to locate it on her PC TO check what the original text is. Yikes.
    Google-fu turns up very little. I tried the guidance in this document - https://answers.acrobatusers.com/We-combine-PDF-document-ends-corrupt-What-problem-q197619 .aspx[2] and a Save-As but no avail.
    This also turns up but is not applicable to Acrobat 9 I believe:  http://blogs.adobe.com/acrobatineducation/2010/02/get_rid_of_that_bloat_in_your.html[3]
    She states that she can manually fix the document but after a while it gets corrupted again? But I haven't observed that and she might have just fed me that to amplify the problem.
    I will be able to post screenshots when she turns on her computer tomorrow.

    Here are the two instances of corruption we have come across.
    http://imgur.com/nPztMYm
    http://imgur.com/wHM12e2
    Edit:  A LITTLE MORE INFO.  I am able to select the corrupted text, paste it into Notepad with all the characters intact.  So the characters are THERE.  they are just not being displayed correctly.
    Edit:  They also do not print correctly.  The page prints with characters missing, and she wants to print this document, so that is going to be an issue.

  • How do I copy, paste Word document into Adobe Reader PDF?

    A client is not using Microsoft Word, but typing text for my edits into Adobe PDF. Too many edits, too cumbersome for me. After converting PDF to Word, I edit using various ink colors. How can I copy, cut, paste edited WORD document into her PDF? Other than by using "paper clip" or "attachment" features?

    Thanks, graffiti...So, can't copy, paste Word document into PDF?
    What is the "full version" of Adobe vs my Adobe Reader? Adobe Acrobat?
    I do have a cloud, but doesn't help with my editing problem.

  • Hello! I would like to know the procedure to turn a word document into a PDF document via Adobe Reader.

    Hello! I would like to know the procedure to turn a word document into a PDF document via Adobe Reader. Do I have to pay for it or just sign up? Thank you in advance.

    "...the procedure to turn a word document into a PDF document via Adobe Reader." 
    Not possible.
    No version of Adobe Reader can:
    --| create PDF 
    --| manipulate PDF page content  
    --| export PDF page content
    Adobe Reader XI does provide a "connection" to various Adobe hosted online subscription services (that are under "acrobat.com").
    There is a subscription services can create PDF from supported file formats that are uploaded to the service.
    This subscription service is "PDF Pack".
    With an active (paid up) subscription to a service one can make use of the service.
    Be well...

Maybe you are looking for