Display PDF on Web via ITS.

Hello everyone,
I am trying to display a pdf that I am converting from OTF on web directly via ITS in SAP GUI for HTML based IAC.  The following is the code behind scenes. 
CALL FUNCTION 'CONVERT_OTF'
  EXPORTING
    format = 'PDF'
    max_linewidth = 132
  IMPORTING
    bin_filesize = g_bin
*    BIN_FILE =
  TABLES
    otf = p_T_OTF
    lines = t_lines
    EXCEPTIONS
      err_max_linewidth = 1
      err_format = 2
      err_conv_not_possible = 3
      err_bad_otf = 4
      OTHERS = 5.
CALL FUNCTION 'ALEWEB_DOWNLOAD'
    EXPORTING
      data_len                = g_bin
      mime_type               = 'application/pdf'
      DATA_TYPE               = 'BIN'
    tables
      data_tab                = t_lines.
Then the following garbage is getting displayed.
•ä‘†â´±â¸³à´Šâ—¢îíŒà¨²â€°â¯æ‰ªà´Šã°¼
But if I use GUI_DOWNLOAD as shown below, then the PDF is getting downloaded into my local PC without any problem and I am able to read the PDF also.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = g_bin
filename = 'test.pdf'
filetype = 'BIN'
TABLES
data_tab = t_lines.
I am using ECC 5.0 and ITS 6.20 Patch 23.  What should I do to see the PDF on web.
Thanks,
-Bharath

Hi
I have a doubt so thought i will ask you. I am creating a spool request number through VF02. How can get the OTF format in to my internal table using the spool request number to use this function module. I am using the FM CONVERT_OTFSPOOLJOB_2_PDF and getting the PDF in to the internal table but i am getting some authorization problems in reading the spool request can you help me on this.
CALL FUNCTION 'CONVERT_OTF'
  EXPORTING
    format = 'PDF'
    max_linewidth = 132
  IMPORTING
    bin_filesize = g_bin
   BIN_FILE =
  TABLES
    otf = p_T_OTF
    lines = t_lines
    EXCEPTIONS
      err_max_linewidth = 1
      err_format = 2
      err_conv_not_possible = 3
      err_bad_otf = 4
      OTHERS = 5.
Thanks in Adv.
Regards
Lakshmikanth.T.V

Similar Messages

  • Display PDF in Web Browser Setting

    Good Morning,
    We recently encountered some issues with Adobe 9.0.0 on Citrix servers. We updated to Version 9.3.4, since we had not fully tested Reader X yet.
    The issue is that we have an application that calls to Adobe and opens PDF files within the application.  When I log on to the citrix server locally, the setting Display in PDF Browser is selected.  My account is an admin of our domain. When I log in to the server with a standard account, the setting is not selected.
    I found the bBrowsing Integration key in HKCU\Software\Adobe\Acrobate Reader\9.0\Originals and when I am logged in with admin account it is set to 1, when I login with the non-admin account it is set to 0.
    The same key also appears in HKEY_Users\.Default\Software\Adobe\Acrobat Reader\9.0\Originals.  My question is this, can I set this globally on my Citrix servers so that the Display PDF is Browser is selected. when users login to Citrix Presentation Server, launch the applications that call to Adobe, that the pdf open in a web browsers of the applications. Currently, if you hit the link the PDF file will open in its own window.
    Sorry if this is a bit wordy, but I figure it is best to give too much info as opposed to not enough.
    Thank You
    Brian Dougherty

    Yes the pdf is opening in adobe. But I don't want to open a new adobe browser to open.
    I want to display in the current web browser where my application is running.
    eg. if u are embedding pdf file like this.
    <EMBED src="temp1.pdf" width ="750" height="550"></EMBED>
    It won't open the new window. It displays the result in the current window.
    I have my pdf content in byte array. To wirte the above code i need a file. I even writes the byte array to a temporary pdf file. But I can't able to import that file dynamically to the WSAD workspace.
    Is there any other way to embed the (byte array)pdf file in the current window.
    Please advice me.
    Thanks in advance.

  • Display PDF Business Documents in ITS application on ECC6.0

    Hi SDN forum,
    We are currently migrate an ITS application that was plugged with SAP R/3 4.6C on a W.A.S 7.00 (ECC 6.0)
    One of our web pages enables us to display PDF documents (material technical documents). These documents were stored until now in web apache server frontend in DMZ.
    We manage to make work the web pages in new architecture but PDF document can't be displayed.
    We don't know where to put them today with integrated ITS in W.A.S architecture and how to configure new llinks.
    PS :PDF documents are linked with DIR objects in R/3. (CV03N)
    Thanks a lot for your precious help.

    Hi Joseph
    Many thanks for the info.
    I had raised an SR in Metalink as well as requesting info here and Metalink gave me a ftp link to the document.
    This solved my problems as I needed to undertake the extra configurations in opmn.xml, webappserver.cfg and add a .jar file (these are not shown anywhere in the standard BPA admin or install guides!!)
    Once all these done it works like a dream and users state it is faster then a Tom Cat based deployment.
    Cheers
    John

  • Adobe Reader X - Disable "Display PDF in Browser" via Registry

    I'm trying to configure my organization's Windows workstations so that web-based PDF files open in Adobe Reader rather than in internet browsers. I have been able to configure Adobe Reader 9 installations to open web-based PDF files in Reader rather than internet browsers by using the following registry setting:
    Hive
    HKEY_CURRENT_USER
    Key path
    Software\Adobe\Acrobat Reader\9.0\Originals
    Value name
    bBrowserIntegration
    Value type
    REG_DWORD
    Value data
    0x0 (0)
    My problem lies with Adobe Reader X: I used the following settings in attempting to prevent Adobe Reader X installations from opening web-based PDFs in internet browsers:
    Hive
    HKEY_CURRENT_USER
    Key path
    Software\Adobe\Acrobat Reader\10.0\Originals
    Value name
    bBrowserIntegration
    Value type
    REG_DWORD
    Value data
    0x0 (0)
    Hive
    HKEY_CURRENT_USER
    Key path
    Software\Adobe\Acrobat Reader\10.0\Originals
    Value name
    bAllowByteRangeRequests
    Value type
    REG_DWORD
    Value data
    0x0 (0)
    Hive
    HKEY_CURRENT_USER
    Key path
    Software\Adobe\Acrobat Reader\10.0\AVGeneral
    Value name
    bBrowserDisplayInReadMode
    Value type
    REG_DWORD
    Value data
    0x0 (0)
    I've only had partial success, though. Internet Explorer respects the registry settings and opens web-based PDFs in Reader X. Firefox 14.0.1, though, ignores the registry settings and opens web-based PDFs in Firefox.
    Is there a different registry setting I should be using so that Firefox sees "Display PDF in Browser" unchecked and allows web-based PDFs to be opened in Reader X? Is there another method I should be following for deploying this setting to Adobe Reader X clients?

    Hi,
    We'll, you've educated yourself well. Unfortunately, Acrobat products can't control what browsers do so uniform behavior is not possible.  The setting is Adobe's best attempt and forcing some consistency.
    The ReadMode setting only controls what happens in the UI after the PDF is open.
    Ben

  • How to display pdf in Web Dynpro Page

    Hi Experts,
    I need to display the pdf file in web dynpro page. I am using  Web dynpro 7.1(CE), in that no ui element like Iframe. With Iframe we can display the pdf file in web Dynpro page in 7.0.
    But My problem is how display pdf with out using Iframe.
    Please any one tell how to display with any other UI elements.
    Regards,
    Sunil.

    Hi sunil..
    chk this link..
    <u><b>Pdf</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59
    <u><b>Adobe</b></u>
    /people/achim.hauck/blog/2005/02/04/my-struggles-with-the-adobe-document-services-in-was640
    <u><b>Configuration</b></u>
    http://help.sap.com/saphelp_nw70/helpdata/en/43/8a1a8ece230c8ce10000000a11466f/content.htm
    <u><b>Adobe Document services</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e4e9afb-0701-0010-f8a8-b8cd093662c2
    <u><b>Configuring Guided procedure of Interactive Forms</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9ea34c2-0701-0010-e2a2-d8e9cd6d85dc
    <u><b>Forum Discussions abt Adobe Document Services</b></u>
    Re: Configuring the Destination URL for the Adobe Document Services
    Hop will this helpful for u..
    Regards,
    GS

  • Enabling/disabling the 'display PDF in browser' via a script after Reader 9 is installed

    So we have Reader 9 already installed on the machine, but we need a simple way that a user can click on a shortcut in the start menu to reconfigure how the PDF is opened - either from within the browser or outside of the brower.
    In Reader 7, I was able to use this:
    msiexec.exe /i {AC76BA86-7AD7-1033-7B44-A71000000002} Remove=ReaderBrowserIntegration /norestart /qb-!
    msiexec.exe /i {AC76BA86-7AD7-1033-7B44-A71000000002} ADDLOCAL=ReaderBrowserIntegration /norestart /qb-!
    which works well after the fact that Reader 7 is installed on the machine.
    For Reader 9, things have changed, and have tried this:
    msiexec.exe /i AcroRead.msi /qn DISABLE_BROWSER_INTEGRATION=YES
    msiexec.exe /i AcroRead.msi /qn DISABLE_BROWSER_INTEGRATION=NO
    The above don't work, nor if I run a repair instead of an install.  I also tried to modify the HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\Originals\bBrowserIntegration then following in up with the appropriate msiexec command and that didn't work
    No, asking users to go to the options and enable/disable the setting isn't ideal unfortunately as it requires too many clicks
    Anybody have any suggestions on this?

    Try this forum:
    http://forums.adobe.com/community/acrobat/acrobat_enterprise_install

  • Display pdf files in IE8

    I'd like to make IE8 by default to open pdf files instead of in Acrobat 9 window.
    Why do my pdf files open in Acrobat 9 window, even though i checked Display pdf in web browser? (it makes no difference if checked or unchecked anyway)
    thnx

    they are enabled.
    be well u 2.

  • Call a function module from CRM 5.0 via ITS to FICA

    Hi
    I want to call a function module in FICA (FICA is using sapgui) from CRM (IC-web) via ITS (Not integrated in FICA)
    Is it possible and how should this be done???
    If someone know how, please help
    BR//JL

    generally RFCs should not have user dialogs.
    any how to handle your case, you need ITS and since FICA is a WAS 6.20 system, you need to have a ITS installed for FICA system, without which you cannot do that.
    alternatively you can mimic the functionality of the RFC by programming the same in a BSP and call this from CRM system
    Regards
    Raja

  • Problem in web enabling ALV ABAP report via ITS. Please help!

    Hi Experts,
            I have a report that has a selection screen. On executing the selection screen an ALV output loads displaying data based on the selection criteria.
    I have web enabled it via ITS. I have used SICF transaction.
    When I run the internet service I can see only the selection screen. There is no execute button also. I also see a different layout then if my report has only selection screen. If my report has only selection screen then my page shows all the buttons including execute.
    How to resolve this problem? Please help!
    Thanks
    Gopal

    since you mentioned about SICF, i assume you are using integrated ITS.
    <i>When I run the internet service I can see only the selection screen. There is no execute button also</i>
    you wont see the execute icon, instead you will see a button with "execute" text. (you can also use F8 key)
    <i>I also see a different layout then if my report has only selection screen. If my report has only selection screen then my page shows all the buttons including execute.</i>
    the layout of SAPGUI for HTML is slightly different, if you want (somewhat) similar look of a wingui, either make your transaction as "Easy Web Transaction" or in the url pass ~webtransactiontype=EWT
    as a test can you run the following url and see how it looks.
    http://waserverhost.domain.com:port/sap/bc/gui/sap/its/webgui?sap-client=<clinetno>&~transaction=<you reports transaction code>
    Regards
    Raja

  • Display data in Web DynPro table from database via EJB

    I have a JavaBeans model which has a method populateDataToTable()to retrieve data from database via Session bean (calling entity bean, returning ArrayList of data) and the data needed to be display in the Web DynPro table.
    User Interface (Web DynPro) <-> JavaBeans Model <-> Busineess Logic (session bean) <-> Persistence (Entity Bean)<-> DB table.
    The context bindiing and table part is ok. How do i load the data to the table ? what the coding to put in wdDoInit() ?
    Any help would be appreciated.

    in wdinit(),
    Collection col = new ArrayList();
    try{                    
      MyCommandBean bean = new MyCommandBean();
      col = bean.getDataFromDbViaEJB();
      wdContext.nodeMyCommandBean().bind(col);
    } catch (Exception ex) {
       ex.printStackTrace(ex); 
    in your JavaBean model class, MyCommandBean getDatafromDbViaEJB() method:
    Collection col = new ArrayList();
    Collection newcol = new ArrayList();
    //include your own context initialization etc...
    col = local.getDataViaSessionBean(param);
    // if your returned result also a bean class, reassigned it to current MyCommandBean
    for (Iterator iterator = col.iterator(); iterator.hasNext();) {
        MyOtherBean otherBean=(MyOtherBean)iterator.next();
        MyCommmandBean bean = new MyCommandBean();
        bean.attribute1 = outBean.getAttirbute1();
        // get other attibutes
        newcol.add(bean);
    return newcol;

  • Incorrect font display in pdf document(web view)

    Adobe helpers,
    I am encountering a  very peculiar problem with incorrect display of fonts in pdf documents when viewed in a web browser. Briefly, the problem typically affects  the first page of a pdf document, the font being displayed as an unidentified mix of large and very small, skinny type.  Other pages may or may not be affected, and if one back-clicks to the previous page the text often displays the correct font, so the problem is in some (but not all) cases non-persistent.  The problem however is resolved completely if I uncheck the 'display pdf in browser' option  under edit>preferences in adobe reader. Fonts I use include Arial, Cambria, Franklin Gothic Book, and Garamond; as straight-up pdfs, the documents look fine. FYI, I have Adobe reader X 10.0.1 (Win 7) and 9.0 (Win XP sp3) installed on two different machines. Firefox 3.6 and IE9 are equally at fault. FWIW, all the pdf documents begin life as MS Word or Publisher 2010 documents, which are converted to pdf within these applications before publishing to web.   Since I can't control how people choose to view web pdfs, I'm concerned that display of the prone documents is impaired when viewed in a web browser.
    Not sure if this is a reader, browser, or distiller problem but this seems a logical place to start looking for answers. Any thoughts?
    Thanks!

    I've also had problems printing with Reader X.
    When printing an attachment from an email in Outlook, if I don't open the attachment first, sometimes it doesn't print correctly as everything shows with the following number or letter. Example 12345 will print as "23456" and invoice will show as "jowpjdf". Even if I open the attachment, sometimes it will print the first page ok, but the next pages will "mppl mjlf uijt".
    Never had this problem with previous versions.

  • 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 to retain focus in Web forms 6i item when displaying pdf image

    How to retain focus in Web forms 6i item when displaying pdf image in a multi-record block?
    Hello.
    I have a Web Forms 6i program (version Forms 6.0.8.19.2) running in a 3-tier application. The web form program has a multi-record block containing invoices. When navigating to a record, the form should display the PDF invoice image which is stored in an Oracle 8.1.7 database as a BLOB in another window. When user press down-arrow, the next PDF invoice image should be displayed.
    I am able to accomplish the functionality above by using web.show_document('URL', target') in the when-new-record-instance. The URL being called is a PL/SQL Web Toolkit stored procedure using wpg_docload.download_file built-in.
    The problem is that the focus is lost on the Webform and the focus is shifted to the PDF image window when you navigate to the next record using down-arrow. I want to retain the focus in the form as this is a data-entry form, the operator will use down-arrow to go to the next-record rather than the mouse. I also only want to do this for this Invoice Entry form and NOT to all forms.
    Please advise how to resolve this problem. Thank you.
    Regards,
    Armando

    Magesh,
    the issue of a SSO protected form showing the logon dialog is a knwon issue for Windows200 and the Oracle9iAS base release. If you applied Forms Patch 1 then this should be solved. Hope that I am right in that you are using Oracle9iAS and not Oracle9iDS. Do you see the Single Sign-On logon screen or the Forms logon dialog directly? Check the forms90.conf file in teh forms90/server directory as this contains the Form sso settings (mod_osso) which by default is commented out and therefore inactive. You need to remove the commenting '#' characters and make sure that each sentence having a '#' in front, after that starts on a new line.
    The Forms deployment documentation within the Oracle9iAS docu provides this information too.
    Frank

  • How to display smartform as PDF in web dynpro java

    Hi,
    Where can I find sample program to display smartform as PDF in web dynpro java.
    Thanks.
    Regards,
    Henry

    1. Create a smart form in the R/3 side
    2. Now create a function module with the corresponding export parameter:
    3. Make sure that the function module is marked remote enabled. 
    4. In NWDS  create an Adaptive RFC model which points to the FM created in R/3 under the webdynpro application
    5. Now create an application and view inside it to display the PDF and Insert a frame inside the view
    6. Create a  value node and an attribute say url of type string inside that node and bind it to the source
    7. In the doInit() method place the following code
    >    ZTest_Pdf_1_Input input = new ZTest_Pdf_Input();
    >    wdContext.nodeZTest_Pdf_Input().bind(input);      
    >    try {                       
    >            wdContext.currentZTest_Pdf_InputElement().modelObject().execute();
    >            }
    >  catch (Exception e) {
    >                        e.printStackTrace();
    >            }          
    >  wdContext.currentInternalElement().setUrl(convert(wdContext.currentOutputElement().getBin_File()));       
    Inside that view create a method to convert the string to url so that it can be passed as a string to the setUrl method of the currentContextElement() , say convet(byte[] doc_content) which return a string.
    Inside that methos write the following code,
    >         String url = "";
    >           WDWebResourceType webResType = WDWebResourceType.PDF;
    >            IWDWebResource webResource = WDWebResource.getWebResource(doc_content, webResType);
    >            try {
    >                        url = webResource.getURL();
    >            }
    >  catch (Exception e) {
    >                        e.printStackTrace();
    >            }          
    >            return url;
    Hope It will be helpful
    Regards,
    Sam Charles J.

  • Yosemite - MacBook Air 10.10 - "Notes" does not open - "Preview" opens, but does not display PDF's - "iCal" works in new strange ways, as if no one checked its operation - Everything worked very well until Upgrade to Yosemite ! - Happen to others?

    Yosemite - MacBook Air 10.10 - "Notes" does not open - "Preview" opens, but does not display PDF's - "iCal" works in new strange ways, as if no one checked its operation - Everything worked very well until Upgrade to Yosemite ! - Happen to others?

    Thanks for your lengthy reminder dude, I have a similar Mac with yours. I suspect its a software fault because it happens after I upgraded to Lion, 10.7.2.

Maybe you are looking for

  • How to send a mail from SAP 3.1H Ver.

    Hi,   I am working on SAP 3.1H Version. I need to send mail from one of my ABAP program. Since SAP 3.1H version does not have Standard function modules which send mails from any ABAP program so how can I achive this task in this version of SAP. The O

  • Zen Sleek... any way to hook to car speake

    <FONT color=#ff0000 size=4>Hello, <FONT color=#ff0000 size=4> <FONT color=#ff0000 size=4>Is there any type of adapter or hook ups that will let you hear your songs in your car thru the speakers? <FONT color=#ff0000 size=4>I only have a CD player... n

  • Why won't photos load in Apple TV 2?

    All of a sudden, my Apple TV 2 can no longer load my photos via Home Sharing. It brings up the "Loading Library" and then it tells me to Turn on Home Sharing in iTunes! ***? It's already on!! Music, Videos, and TV Shows all load and stream properly.

  • JDBC / oracle / date & TIME

    I am attempting to insert the date and time into a date-time field in an Orcale DB.  I am currently sending the following data into the field. 24-AUG-2007 13:45:44 and i am getting the error... Error while parsing or executing XML-SQL document: Error

  • Corrupted Data file. Please help.  No backups :(

    I have a problem with my test DB (Oracle 92. Solaris). One of the hard disk's down and we lost some data files. There are no backups as it's a test. after DB startup I get : ORA-01157: cannot identify/lock data file 38 - see DBWR trace file ORA-01110