How to display an SAP document on the web (ECC 6.0)

Hello all,
  currently upgrading from 46C to ECC60 and we are having trouble with one of our current processes. 
We currently have a custom RFC that creates spool files and turns them into a PDF stream via CONVERT_OTFSPOOLJOB_2_PDF.  The RFC is called from one of our web applications that then displays the document via PDF on the web.
We are having trouble using this same process in ECC 6.0 so I'm wondering if there is a different approach to do this in ECC 6.0.
History of what has been done so far.
1) since we are now on a UNICODE system the PDF stream sent via the RFC call was displaying chinese characters instead of "%PDF" etc (2hex char vs 4hex char). We attempted to fix this by using the method cl_abap_conv_in_ce=>create to convert each line of the PDF stream.
2) After inserting the method some of the documents started working but others are getting a parsing error.
We are looking to see if anyone knows of a more standard approach to getting the same thing done.

We have experienced the same problem since we upgraded to ECC 6 and unicode last week.  The suggested code worked but there was a step missing in the example that I would like to share.
The spool output was table TLINE which is 134 characters.  Once you convert to non-unicode you actually have to put the results in a 268 char table.  When you read it in .NET and convert it to a binary array before passing it to Acrobat for viewing you have to make sure that you pad each record with spaces up to 268 charactes.  This was key!
Here is the code from our RFC after calling the CONVERT_OTFSPOOLJOB_2_PDF with a spool id:
data: PDF STRUCTURE  ZC268_STRUCT occurs 0 with header line.
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
  exporting
    src_spoolid                    = f_rqident
  tables
    pdf                            = pdf.
data:     rf_conv type ref to cl_abap_conv_in_ce.
rf_conv = cl_abap_conv_in_ce=>create( encoding = 'NON-UNICODE' ).
data: fta_data type table of zc268_struct with header line.
data: f_str    type string.
field-symbols: <f_src> type x.
loop at pdf assigning <f_src> casting.
     call method rf_conv->convert(
      exporting input = <f_src>
      importing data  = f_str ).
      fta_data        = f_str.
      append            fta_data.
      clear             fta_data.
endloop.
The data in fta_data can be passed to .NET
I hope that helps.
Hussam

Similar Messages

  • How to display an image located in the WEB-INF directory?

    Basically, When a user registers, they a directory is created with their username that holds images that they can upload. How do I display those images. All I am holding in the database is the location of the images.
    ive tried
    <img src="/WEB-INF/users/testuser/picture.jpg" />
    but this doesnt work and for obvious security reasons shouldnt.. but is there another way of doing what i want to do? perhaps a custom tag? thanks
    Jazz

    You would have to write a generic servlet that would return an image
    <img src="/getImage?user=testuser&pic=picture.jpg" />Your servlet would basically fetch the file from under web-inf, and then stream it back to the user.
    Methods to use:
    servletContext.getRealPath() (to help find the file on disk), relative to your web app
    getOutputStream (as opposed to getWriter)
    It is only in this way that you can access files on the server outside of the public web directories.
    Hope this helps
    Cheers,
    evnafets

  • Display word/pdf document in the HTML region or report

    Hi,
    How to display blob content stored in a table in HTML region or report region.
    I already have a process to display the image content.
    But my question here is how to display word/pdf document within the html region so that the user can read the document without downloading it.
    Any suggestions/solutions would be of great help.
    Thanks in advance...
    Thanks,
    Ramesh P.

    I was dead wrong.
    The display of images from BLOB is a special case because APEX provides a Display Image item type.
    Moreover, HTP/HTF packages also do not provide for handling of BLOB content. So AJAX cannot be used.
    Which implies that the only way to get binary content, other than images, is with the use of a WPG_DOCLOAD.DOWNLOAD_FILE call.
    This in turn implies that it may not be feasible to "inject" the BLOB into an exist HTML DOM in the Browser.
    Regards,

  • How to display properties of dimension on the input form and report in bpc

    Dear Expert,
    Please tell me how to display properties of dimension on the input form and report in bpc. I can only display dimension number.
    thanks so much
    hungth

    Hi Hungh,
    If your are using BPC 10 with EPM add in client, you can use the function:
    EPMDimensionProperty ()
    This function retrieves the properties of a specified dimension in a specified cell range.
    Thanks, Safa

  • How can I visualize 2 documents at the same time

    How can I visualize 2 documents at the same time?
    thanks

    Adobe Reader on mobile devices allows to view ONE document at a time.

  • Display a Word Document in the Output

    Hi All ,
    I would like to display a word document in the Output .
    I cheked the demo application 'ZIOS_TEST_SIMPLE_MS' , but i am not able to see the Word Document in the output.
    Do we need to do any settings or configuration to be done to use these controls ?
    Thank You ,
    Radhika.

    You might want to add a browser layer over your flex
    application and let the browser manage the file types. I personally
    use the HTML component from
    http://drumbeatinsight.com/.

  • Adobe Reader DC, doesn't disable "Display PDF Document in the web browser" when option is unchecked.

    The option under Accessibility>Setup Assistanct to uncheck the "Display PDF Document in the web browser" doesn't correctly disable Display PDF in browser when unchecked, it still defaults to opening in Internet Explorer even after restarting the browser.  Confirmed this tested agianst with IE 8, 9, 10 and 11 with the same behavior.  Moving back to Reader 11.0.10 and using this same setting works flawlessly.  Anyone else experiencing this issue?

    I am out of the office until 1/22/13.
    If you need assistance with technical issues, please contact the Help Desk at:  518-402-8888
    >>> Test Screen Name <[email protected]> 01/17/13 10:30 >>>
    Test Screen Name http://forums.adobe.com/people/Test+Screen+Name created the discussion
    "Re: Adobe Reader XI enterprise deploy-disable display PDF in browser?"
    To view the discussion, visit: http://forums.adobe.com/message/5001441#5001441

  • How can I attach a document to the answering email form?

    How can I attach a document to the answering email form?

    Hi;
    I am not sure what you mean by the answering email form, can you describe a bit more what you are looking to do?  Do you mean the "Email Receipt" that you can set up so the form filler receives an email after submitting their form?
    Thanks,
    Josh

  • How to display multi-channel image in the 'proxy'?

    There're many examples to show how to display composite channels in the 'proxy'. But I don't find any example to show how to display multi-channel image in the 'proxy'. I found that I can use PSPixelOverlay to display alpha channel data like this:
    int nSpotChannel = gChannelCount - 4;
    PSPixelOverlay* overlay = new PSPixelOverlay[nSpotChannel];
    for(int i = 0; i < nSpotChannel; i++){
           if( i != (nSpotChannel - 1) )
                 overlay[i].next = overlay + i + 1;
           else
           overlay[i].next = NULL;
           overlay[i].data = gChannelData + (4 + i) * nPlaneBytes;
           overlay[i].rowBytes = gProxyRect.Width() * gDocDesc->depth / 8;
           overlay[i].colBytes = 1;
           overlay[i].r  = 230;
           overlay[i].g = 161;
           overlay[i].b = 174;
           overlay[i].opacity = 255;
           overlay[i].overlayAlgorithm = kStandardAlphaOverlay;
    pixels.pixelOverlays = overlay;
    Then, Seeing red part, it will trigger a new problem, that is how to get the color value of the alpha channel by plung-in itself? It seems that no channel color value info is in FilterRecord.
    If you have other solution, please tell me. Many thanks!

    This is what I've been doing - was just curious if there was a way to see a more cohesive image.
    If the individual EQ plugins are in fact the answer, is there any way to smooth how the Analyzer displays? The image I posted above, all of the tonal curves are very smooth. The analyzer tool shows a lot of peaks and valleys within the overall curve and it's hard to pinpoint each instrument's "sweet spot." Vocals for example are very hard to spot.
    - Morgan

  • How to display language key (0LANGU) in the query for BW report

    Hi,
    Can someone tell me how to display language key (0LANGU) in the query? I want to display which language (English or French) is used for material description in BW report. Thx.

    hi,
    check if the infoobject is kept as lang dependent or not  for material text, else you need to create a masterdata attribute with text and lang keys and do corresponding mapping, so then it can be displayed in your report
    regards
    laksh

  • How to display existing sap form in our menuclick

    Hi All,
    I have created one addon for MRP in this addon when client click on menu i have to display "Order recomandation" form which will dispaly in existing MRP functions.
    How to display existing sap form in our menuclick. please help me as soon as possible.
    Regards,
    sri

    Thanks Teun,
    Thanks for giving reply.
    i am not getting any ActivateMenuItem method in menuclick event
    But here i am addding one menu item from my addon when i click on my menu 20.2.orderrecomnds i have to populate same screen which is coming in mrp order recomonds which form id is 65215
    if ((pVal.MenuUID == "Submenuordrecom") & (pVal.BeforeAction == false))
    // code
    in above menu click event i have to populate order recomonds screen so how to do that.
    Regards,
    sri
    Edited by: dns_sap on Jul 28, 2010 12:09 PM

  • How to display my country flag on the task bar in osx mavericks?

    How to display my country flag on the task bar in osx mavericks?

    System Preferences > Keyboard > Input Sources
    Checkmark the box beside "Show Input menu in menu bar".

  • How do i scan a document from the printer to send in an email to some one else i have a HP-B209

    how do i scan a document from the printer to send in an email to someone else

    Hi!
    To scan:
    You may press the start scan button on the printers control panel or use the HP solution center that must be installed in your computer to scan a document or photo.
    Scan to email:
    Some printers don't have the option in the control panel for scan to email. Mostly it is with the HP solution center software that should be installed in your printer.
    Note:
    For Windows the software is called HP solution center
    For Mac it is called HP utility
    *I am part of the HP family  but I do have my own stand
    *Clicking the Kudos at the left is highly appreciated
    *Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.
    *Have a HP "Happy Printing" day! =)

  • How do I change old documents to the new iWorks

    How do I change old documents to the new iWorks

    llamasprinkles wrote:
    How do I change old documents to the new iWorks
    What kind of "old documents" are you talking about, what format, where are they, etc?

  • How to convert a word document into the PDF format?

    Please instruct me step by step on how to convert several Word documents into the PDF format?

    If properly installed and updated (depending on the WORD version), you can simply do any of the following:
    1. Open the doc in WORD and select Print, choose the Adobe PDF printer, print.
    2. Open the doc in WORD and go to the Acrobat menu in WORD and select create PDF (this uses PDF Maker).
    3. Open the doc in Acrobat and the conversion should be done based on PDF Maker.

Maybe you are looking for