SICF customer service in order to retrieve PDF document from archive (ICC)

All,
I am currently trying to set up a scenario to integrate SAP-VIM (vendor invoice management) with the ICC (invoice capture center; from opentext). In this process the ICC application loads data from SAP together with a scanned invoice (in PDF format) stored in our archive.
Since we are not using any sap-certified archive solution I had to build the data retrieval via custom programming. But when the ICC component is trying to upload the data I am getting following error: "Error while trying to get invoice image(s) and recognition results from SAP: Unable to load datapool. Data at the root level is invalid. Line 1, position 1." Did someone have experience with this kind of set-up of with the error?
Steps done:
- create a Z-service in SICF with own class (based on copy of CL_HTTP_EXT_CSIF)
- inside this class programmed to data retrieval of the PDF document of the archive (in Base64 format or Binary format)
- filling the header fields of the response via
l_mimetype = 'application/pdf'.
  call method l_entity->set_header_field:
    exporting name = 'Content-Type'      value = l_mimetype,
    exporting name = 'Content-Length'  value = l_size_s, 
    exporting name = 'pVersion'        value = l_pversion,
  call method l_entity->set_data
    EXPORTING
      data   = l_data
      offset = '0'
      length = l_length.
l_data = binary data of PDF-file
Best Regards,
Kris

831692 wrote:
Hello everyone,
I'm using BI Publisher 11g to generate PDF documents. I had implemented a servlet that uses HTTP POST/GET to simulate the behaviour of BIP console since ScheduleReport Service is not implemented in this version. The problem is about the output of the final documents when i'm not using the bursting option. From my experience, the documents are not saved in any temporary folder in the filesystem. Looking at DEV_BIPLATFORM schema and analysing XMLP_* tables, i'm assuming that the generated document data is the BLOB DATA field in the XMLP_SCHED_DATA table...this is right?
Next, in java, i'm using the BLOB field to output his binary content to a PDF file but, when i try to open the file, it gives an error: "document may be damaged"...
Any suggestions here would be appreciated...
Thanks in Advance
Regards,
NP1. Yes, it contains the output document.
2. If the output type is PDF then the BLOB contains a zip file which contains the PDF document.
So first unzip it before rendering
Cheers
Jorge
p.s. If your question is answered then please grant the points and close the thread

Similar Messages

  • Retrieve ALV documents from archive link

    Dear experts,
    When retrieve SAP ALV reports printed to archive link using document type D01, class ALF (Internal Format for Stored Print Lists), MIME type is application/x-alf, the layout in the document viewer is changed. The layout does not correspond to ALV layout but looks like a HTM format.
    Does anyone have an idea what causes this issue?
    Thanks in advance!
    Kind Regards,
    Rene Balduk

    hi
    just have a look at this documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/9561fbf3b111d1955b0000e82deb58/frameset.htm
    it will answer all your queries
    regards
    Aakash Banga

  • Retrieve jpg images from archive

    Hi Gurus,
    I am working in a Biller Direct project.I have a requirement in which scanned images stored in archive needs to be displayed whenever user clicks on a hyper link.SAP documentation says that we can use BADI EBPP_INVOICEDETAIL for this.I am successfully able to retrieve PDF docs from archive.But not sure how to achieve Jpg files.
    Any help....
    Regards,
    Raghu.

    hi
    just have a look at this documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/9561fbf3b111d1955b0000e82deb58/frameset.htm
    it will answer all your queries
    regards
    Aakash Banga

  • How do I "Launch" Adobe Reader in order to accept the Terms and Conditions in order to view PDF documents? ....Somers

    How do I "Launch" Adobe Reader in order to accept the Terms and Conditions in order to view PDF documents? ....Somers  I'm using a MAC with up to date software.

    Launching is just the normal word in Apple's word for "run an app". You can launch an app from the Applications folder, or in recent versions of Mac OS using the LaunchPad (rocket icon). You can't assume all your apps appear on the dock (bottom strip), it's only the ones Apple put there or you added.

  • How can you create a writable PDF document from a PPT presentation ?

    How can you create a writable PDF document from a PPT presentation ? Upper part with the image , lower part with a free space in order to take notes for students during presentation or course.
    Thanks.
    B

    You can make a PDF file out of you notes and handouts but using the Adobe PDF printer.
    Open your PowerPoint Document then go to “File” “Print”
    Select ‘Adobe PDF” Printer
    Under slides, select which way you want to print. Note it will not print to a printer but to a PDF file.
    After then go into printer Properties and Setup PDF properties, do the following: (see second image below)
    Default: PDF/A 1-b
    Adobe Security: none (change as needed)
    Adobe Output folder: Prompt for Adobe file name
    Adobe Page size: Letter (change as needed)
    Check the following check boxes
    View Adobe PDf Results,
    Add Document Information,
    Rely on system fonts only,
    Delete Log files for successful jobs.
    Select OK
    A pop will ask you where you want to save the document. The file extension should be PDF. After giving the file name select okay and the file should popup as a PDF. Down side is if you want to speaker notes included then you will have to do another file, like wise with just screen shots then combine into one PDF document.
    I used Acrobat IX Pro. So to do this you need Acrobat IX or X Pro.
    Hope this will help.
    Tiger26

  • Display only 1 record using uploaded PDF document from 3rdparty Website

    Hi,
    Any help will be very much appreciated....
    I'm trying to create my first BI publisher report using a PDF document from 3rd party website. I want to populate the name from EMP table to one of the fields in the PDF doc.
    Here's the steps I've done:
    1. Created and saved a data set using only the ENAME column of EMP table. 14 records are available from the table.
    2. Run xml output and then save as sample data.
    3. Downloaded the PDF doc from the 3rd party website (government form - US Custom Form 7512).
    4. Using Adobe Acrobat X Version 10.1.4, I mapped the element name (ENAME) from my input XML file to the Name field.
    <output type="data-structure" >
    <dataStructure tagName="DATA_DS">
    <group name="G_2" source="Employee" label="G_2" >
    <element name="ENAME" value="ENAME" dataType="xsd:string" label="ENAME" breakOrder="None" fieldOrder="1"/>
    </group>
    </dataStructure>
    </output>
    5. Uploaded the revised PDF document to BI publisher.
    6. Created and saved the report.
    7. When I viewed the report in PDF, only 1 page is displayed. I'm expecting to see 14 pages because I have 14 records from the table EMP.
    Any report properties that I need to change to allow me to view all the records from the EMP table?
    Version of BI and Adobe
    Oracle BI Publisher 11.1.1.5.0
    Adobe Acrobat X Version 10.1.4

    There could be an issue with the Loop. I guess your Template is looking at the first record only and not reading through all the records.
    Try to get the BI Publisher Desktop tool. Using this tool you can merge PDF document and XML to see the output from your local PC/Laptop. It will be easy for you to debug.
    Rgds
    Chundi

  • How to open the pdf document from KM  through Link to URL UI element

    Hi All,
    I have Link to URL UI element  in webdynpro java layout - on click of the link we need to open the pdf document from KM respository.
    KM Document location : irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf.
    Once this is transported to Test and Production portals , we need to retrieve the KM document from the respective portal location through the Link to URL UI element .
    Thanks,
    Portaluser100

    Hi,
    If you set the link to your document in a Context attribute by using a relative path this should work just fine.
    Example:
    wdContext.currentContextElement().setUrl("/irj/go/km/docs/documents/RHPortal//USA/A/Test/Employee_details.pdf");
    Bind that attribute to the reference property of the LinkToURL element.
    Cheers,
    Leo

  • How do I create a pdf document from my scanner?

    How do I create a pdf document from my scanner?

    If you are using Acrobat , then follow the below mentioned steps:-
    Scan a paper document to PDF using Autodetect Color Mode (Windows)
    1. Choose File > Create > PDF from Scanner > Autodetect Color Mode.
    2. If prompted to scan more pages, select Scan More Pages, Scan Reverse Sides, or Scan Is Complete, and click OK.
    Scan a paper document to PDF using a preset (Windows)
    1. Choose File > Create > PDF from Scanner > [document preset].
    2. If prompted to scan more pages, select Scan More Pages, Scan Reverse Sides, or Scan Is Complete, and click OK.
    Scan a paper document to PDF without presets
    1. In Acrobat, do one of the following:
    (Windows) Choose File > Create > PDF from Scanner > Custom Scan.
    (Mac OS) Choose File > Create > PDF from Scanner.
    2. Select scanning options in the Scan dialog box, as needed, and then click Scan.
    If you specify that you want to use the native scanner user interface instead of the Acrobat user interface, other windows or dialog
    boxes appear. Consult the scanner documentation information on available options. In Mac OS, the scanner user interface is always shown.
    3. If prompted to scan more pages, select Scan More Pages, Scan Reverse Sides, or Scan Is Complete, and click OK.

  • In order to transfer a document from Internet I am asked to save it first in my computer. In another PC I can simply open it. How can I do this in the former?

    In order to transfer a document from Internet in one of my computers, I am asked to save it first (in my computer). In another computer I am not asked to save it and I can simply open it. IO would like to have the possibility to simply open it on the first computer and save it only if I want.

    Difficult to understand why Disk Utility can be hard to find. It is listed in the Finder Menu/Services. You can also find it in your Applications Folder under Utilities.
    What Mac do you have and what version of OS X ?

  • When I open a pdf document from my dropbox to view it, the document shows up blank, even though it is filled out. This also happened with pdf documents that have been e-mailed to me.

    When I open a pdf document from my dropbox to view it, the document appears blank, even though I know the information is actually there. This also has happened with pdf documents that have been e-mailed to me, then opened to view and they are blank?? Why are they showing up blank?

    When I open emails with PDFs I click on the attachment (doing this all on my iPad) it gives me the option to "open in iBooks", I accept then after that the document is sucked into my iPad but I can't do anything with the PDF after that.  Where is the actual file on my iPad? Why can't I email or send these PDFs to my cloud (Dropbox)?
    It's like once they go into iBooks they're stuck forever.

  • Is there a way of protecting PDF documents from printing and/or copying?

    Does anybody know a way of protecting PDF documents from printing and/or copying? All this within the OS possibilities? Is there a way?
    know one can buy expensive programmes like from Adobe, but I use it so little that I would like a cheaper solution. Freeware would be great, shareware also.
    Any suggestion grateful received.

    No way to do that using the OS (although the entire pdf can be encrypted, once the password is applied the document is open for copying/printing).
    However, the freeware PDFLab does allow password protection, the 'owner' pw allows full access, the 'user' pw can be restricted for printing, copying, etc:
    http://www.iconus.ch/fabien/pdflab/
    This can also be done with Adobe's Create PDF Online, but the above is free, and works well.
    Hope this helps...

  • Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.

    == Issue
    ==
    Firefox is having problems with certain web sites
    == Description
    ==
    Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.
    == URL of affected sites
    ==
    http://
    == Troubleshooting information
    ==
    Firefox Version
    3.6.3
    Extensions
    Name
    Version
    Enabled
    ID
    Skype extension for Firefox 2.2.0.70 false
    Java Console 6.0.01 false
    Java Console 6.0.02 true
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows 7
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Office Plugin for Netscape Navigator
    *Download and Print Plug-in DLL
    *Default Plug-in
    *Shockwave Flash 10.0 r45
    *Adobe PDF Plug-In For Firefox and Netscape

    Hi.
    Does this only open on that specific site?
    In any case, you may want to:
    - instruct Firefox to handle PDF files in a specific way by going into Tools > Options > Applications and selecting the option you want for the PDF files
    - reinstall Adobe Reader and its Firefox plugin
    - install another reader instead of Adobe Reader. I recommend Foxit Reader ( http://www.foxitsoftware.com/pdf/reader/ ), since it's free, VERY light, VERY fast, safe and also has a Firefox plugin (make sure you don't have both Adobe Reader plugin and Foxit Reader plugin enabled/installed at the same time in Firefox)

  • How do I open a PDF document from a website while in Safari on my iPad.

    How do I open a PDF document from a website while in Safari on my iPad.

    When you see a PDF link in Safari, click on it. It will preview in Safari. Then click the Share icon, and choose Open With, then select Adobe Reader.

  • How can I download a .pdf document from a web link without Adobe Reader starting automatically and i

         How can I download a .pdf document from a web link without Adobe Reader starting automatically and preempting the download?                         

    That depends on your operating system and browser.  On Windows, e.g. using Firefox, you right-click on the link, then select 'Save link as...'.

  • How do I get a .pdf document from my PC onto my ipadmini?

    How do I get a .pdf document from my PC onto my ipadmini?

    1. Email to your iPad Mini
    2. File Sharing in iTune
    3. Upload PDF to the cloud and share with computer and iDevice e.g. Dropbox

Maybe you are looking for

  • Changing Default Print Quality for Photosmart Printers in Stand Alone mode

    Hello Everyone. I am using a group of Photosmart Printers in Stand Alone mode for events where I shoot and print on site. Although I have quite a few printers with me (6 total at a time), I prefer to have the printers print in "Normal" Print Quality

  • Multiple devices multiple users

    Hi, I'm unsure what to do here and can't really find a straight answer anywhere. I have 2 iPads, iPhone 4s all synced to icloud under my apple ID I use to purchase from iTunes (still on PC, haven't upgraded to Mac yet).  My wife has just got an iPhon

  • Old airport express advice...

    I would like to know why Apple have forced me to throw away a perfectly working Airport express (2005). They have chosen to not provide support. That is all there is wrong with it. The Utility says I have to use an older version of the utility. But t

  • Should I buy an iPod touch?

    I'm thinking about buying an iPod touch but I'm not sure if this is a good time to do this. Should I wait more for any new announcements or something like that?

  • Working with many sequences- best practice

    Hi. I´ve just started using Adobe Premiere CS6. My goal is to create a 2 hour long movie, based on 30 hours of raw gopro footage recorded on a recent vacation. Now my question is, what is the best practice for working with so many sequences/movie cli