How to Launch a PDF on Webgui

Dear Experts:
What I am trying to do is to convert PO smartform to PDF file and then launch the PDF file in a new window on Webgui.
I am using function BBP_OUTUT_PO_PREVIEW_SMART, in which the function BBP_ALEWEB_DOWNLOAD is invoked.
This program has been putted on Webgui. But when i execute it on webgui, it's keeping on running status, no error message, no new PDF window pop-up.
I searched the thread below, but not answered.
Re: Launching a PDF through ITS.
Please tell me the detail about how can a launch PDF on Webgui.
Many Thanks
Best Regards
Attached my test code:
REPORT  ZSRPOCHR_CR001_POPRINT.
*INCLUDE LBBP_PO_APPF35.
data: gv_objectid type CRMT_OBJECT_ID_DB.
data: cs_context TYPE bbps_po_ui_global,
      ev_abort   TYPE flag.
start-of-selection.
  cs_context-header_guid = '4818123C61873D53E10000000A0A1CC6'.
perform preview_po in program SAPLBBP_PO_APP if found
                    changing cs_context
                             ev_abort.
  perform fm_print_po.
*&      Form  FM_PRINT_PO
FORM FM_PRINT_PO .
  DATA: ES_PDF     TYPE     XSTRING,
  EV_DOC_DESCR     TYPE     SO_OBJ_DES.
  DATA: lv_smartform TYPE tdsfname.
  LV_SMARTFORM = 'BBP_PO'.
  CALL FUNCTION 'BBP_OUTPUT_PO_PREVIEW_PREPARE'
    EXPORTING
      ip_medium          = 'PRN'
    IMPORTING
      ep_smartform       = lv_smartform
    EXCEPTIONS
      no_triggertypecoll = 1
      no_mediacoll       = 2
      no_medium          = 3
      no_media_map       = 4
      OTHERS             = 5.
  CALL FUNCTION 'BBP_OUTPUT_PO_PREVIEW_SMART'
    EXPORTING
      IV_GUID                  = '4818123C61873D53E10000000A0A1CC6'
      IV_SMARTFORM             = 'BBP_PO'
    IV_LOCAL                 = 'X'
     IV_SCENARIO              = 'PREVIEW'
IMPORTING
     ES_PDF                   = ES_PDF
     EV_DOC_DESCR             = EV_DOC_DESCR
   EXCEPTIONS
     NO_SMARTFORM             = 1
     NO_PARTNER               = 2
     NO_DATA                  = 3
     PSF_ERROR                = 4
     OTF_ERROR                = 5
     ITS_ERROR                = 6
     NO_PRINTER               = 7
     NO_TRIGGERTYPECOLL       = 8
     NO_MEDIACOLL             = 9
     NO_MEDIUM                = 10
     NO_MEDIA_MAP             = 11
     ARCHIV_ERROR             = 12
     OTHERS                   = 13
  IF SY-SUBRC = 0.
    MESSAGE 'Smartform preview successfully!' type 'S'.
  ELSE.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    " FM_PRINT_PO
Edited by: Xiaomei on Oct 15, 2008 5:31 AM

The display of Rich Media Annotations depends on the rendering software; many browsers have their own PDF display tools (Firefox, Chrome, etc) which have no support for RMAs and Flash, so your file's rendition is ultimately at the mercy of whether your consumers will install Adobe Reader, and if their browser has taken charge of the PDF file format. You can't influence that, nor can you realistically even detect it.
Making a PDF file (or any other) show a download/save prompt rather than being displayed inline is done by sending extra HTTP headers (setting a Content-Disposition entry). That requires changes on the webserver, either with direct configuration of the server (via an .htaccess file) or by delivering the PDF file through a wrapper program in PHP, ASP etc. that adds the extra headers. Nothing about the file itself will change how it's served.

Similar Messages

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How to Launch an Integration Builder under two different java versions

    How to Launch an Integration Builder under two different java versions     1
    1. Situation     2
    2. How To Do     2
    2.1 jre preparation     2
    2.2 Put them into the system     2
    2.3 Execute a Java Web Start under jre 1.4.x version     3
    2.4 Change Java Runtime Versions     3
    2.5 Launch an Integration Builder     6
    1. Situation
    OS: windows 2000 pro – English
    Java version: jdk 1.5.x was already installed. (It’s not permitted to change.)
    I don’t have any authorization to install any software on the PC.
    But I need to use an Integration Builder.
    I already knew URLs of an Integration Builder (http://<hostname>:50000/rep/start/repository.jnlp).
    2. How To Do
    At this moment, an Integration Builder (XI 3.0) can be launch under jre 1.4.x environment (on windows).
    2.1 jre preparation
    I download j2re-1_4_2_10-windows-i586-p.exe from http://java.sun.com/j2se/1.4.2/download.html
    I installed it on my home PC and copied all files from C:\Program Files\Java\ j2re1.4.2_10\ into my USB.
    2.2 Put them into the system
    I pasted j2re1.4.2_10 folder from my USB into the windows 2000 pro system.
    Finally, I could list up all of javaws.exe under this system.
    c:\j2re1.4.2_10\javaws\javaws.exe
    c:\Program Files\Java\jdk1.5.0_05\bin\javaws.exe
    c:\Program Files\Java\jdk1.5.0_05\jre\bin\javaws.exe
    c:\Program Files\Java\jre1.5.0_05\bin\javaws.exe
    2.3 Execute a Java Web Start under jre 1.4.x version
    I executed c:\j2re1.4.2_10\javaws\javaws.exe .
    2.4 Change Java Runtime Versions
    Go to File-> Preferences -> Java
    As you can see, it indicates 1.5 version.
    Click [FIND] button.
    Click [NEXT] button.
    Click the j2re1.4.2_10 folder.
    Click [NEXT] button.
    A JRE Finder is able to find javaw.exe automatically. Or you can indicate C:\j2re1.4.2_10\bin\javaw.exe directly.
    Click [NEXT] button.
    Finally, there are two Java Runtime Versions. Now you need to uncheck the Enabled column of 1.5 version and check 1.4 version.
    Click [OK] button.
    Well, in the General tab, I selected None for Proxies.
    2.5 Launch an Integration Builder
    In the Location field, I typed the URL of an Integration Builder jnlp.
    http://<hostname>:50000/rep/start/repository.jnlp
    SAP Integration Builder comes up inside Applications area.
    Select it and click [Start] button.
    If you click Environment-> Integration Builder (Configuration), you can launch Integration Builder: Configuration.
    [PDF file location] with screenshots
    http://SDN.mobilian.org/SDN/How2LaunchIB.rar
    ===================Advertisement==========================
    How do you search SDN?
    What about [<b>SDN Search Widget</b>]?
    SDN Search Widget
    =========================================================

    I am not getting anywhere with deploying my application or
    applet.
    I have set up my bc4j project. It contains all my VO info,
    links, application module. (proj a)
    I then have another project with DbInfo in it(has all my rowset
    info), Multiple Frames, and my Applet.java file.
    Actually I have an Applet.java file and a Application.java file
    because I was seeing if both/either worked. Anyway they seem the
    same, except for that extra window that comes up when you run the
    applet.
    I follow the steps in the oracle directions (from earlier post).
    And all seems ok. But at ---->
    [*] Select the subdirectory under myhtml where your applet's HTML
    file
    is located, and enter the directory path of the 'staging'
    directory you
    created in step 3 above, if different from the default.</li>
    [*]Select the HTML files that JDeveloper created to run your
    applet.</li>
    [*]Select all of the Java source files in your project that make
    up the
    applet.</li>
    I have no HTML file associated with my applet, at least that I
    know of.
    So do I need to create one, or should it of been done
    automatically.
    Also, I trying to figure out what will be the best way to deploy
    my project. Applet or stand alone application is what my first
    choices have been so far. I have read that there is some issues
    with applets being served from a different server than the
    database. So a stand alone application was my front runner, but
    I haven't gotten either way to work yet.

  • Javascript error when launching XFA pdf from browser

    Hi all,
    I am trying to use my XFA PDF from a browser. On my local system I have  set up a web server and am launching my PDF from there. However, I am getting a ReferenceError with regards to one of my Javascript functions.
    My PDF has dependency on a javascript file that resides in the Acrobat path as follows:
    C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts\
    When I use my PDF directly from an Acrobat instance, everything works fine. The issue comes up only when launching from server. How do I link the javascript file to my PDF?
    Edit: The user is going to be launching the PDF from the server via a web browser. In such a case where do I place the javascripts?
    Help appreciated,
    Thanks

    @George: thanks for the quick response!
    My JS code contains a readFileIntoStream which I learnt is also to be run under privileged context. (still learning the ropes here.. ).  I have been trying to incorporate the JS code directly into the PDF to get around this privileged context..  but I am unable to find a non-privileged equivalent for readFileIntoStream..
    Basically my users would be accessing the PDF from the server direct via the browser. For my testing purposes I am able to run the PDF directly from my desktop via an Acrobat instance without any hitch as the scripts are folder level like you mentioned. Is it possible for the users to be able to access the javascripts from anywhere on the server rather than directly from the PDF?  Please note, users will not be saving copies of the PDF on to their local machines (in which case we could have pushed the JS file along to their machines) . I need to ultimately run the PDF from browser.
    I hope I am clear..
    Thanks.

  • How do I download PDF files using Safari.  All I get is a black screen.

    How do I download PDF files using Safari.  All I get is a black screen.

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Launch a PDF from htmlText

    Hi - I need to launch a PDF in a blank window - or at least
    give the user the choice to "download" it from my app to their
    desktop.
    The attached code shows how I got it to work using getURL and
    an onRelease command...but I need to get the same to work from a
    text field. On rolling over the text appears in the field as shown.
    When I rollover the btn I get the hand cursor - not so with
    the text link. When I rollover the text I get an "I" beam...if that
    matters.
    The attached code is on the same frame, same layer - so I
    can't imagine that the path to the pdf would be different. I
    couldn't use getURL on the text so I tried what you see below.
    How can I do this?
    TIA your help.
    JL

    kglad - Thanks for that. I meant RollOut. That's funny. In
    one of these little modules I've made - I HAD to use onRollOut. All
    I did was repeat the onRollover code under onRollOut - otherwise
    the text would disappear when the user left the hit zone of the
    button. I did as you suggest and the text stays put on the roll
    out. I'll have to dig that old file up to see what I did that was
    different.
    AND - as far as that link to a PDF - the reason I was getting
    the "I" beam over the links in the text had nothing to do with the
    code in the htmlText. I had a "vagrant" textField overlaying the
    one I was trying to interact with. It was blocking me from
    clicking. So the code in the htmlText above WILL work and DOES work
    afterall.
    Thanks for your help.
    JL

  • New document: How to avoid known PDF email attachment problems

    Have you ever had problems with PDF attachments sent from Adobe Reader for iOS using Share > E-mail Document?
    You may find this document useful to avoid the problems.
    How to avoid known PDF email attachment problems
    Please let us know if you have encountered different types of problems with PDF attachments.  We can look for solutions or workarounds for you.

    Unfortunately, we (Adobe Reader mobile team) do not know if/when Apple will fix the attachment problems (software defects) in Apple Mail.
    In particular, the attachment problem with Microsoft Outlook (See Problem #2 in How to avoid known PDF email attachment problems) appears to be a long-standing defect that has been known for years.  However, Apple has not provided any fix for Apple Mail yet.
    Adobe Reader for iOS merely launches Apple Mail (the default mail app on iOS) to send a PDF document as an attachment.  Adobe Reader has no control over whether or not to embed a preview image of an attachment in the body of an email message, which is known to cause the problem with Microsoft Outlook (on the receiving side).  The same problem happens when you send a single-page PDF document as an attachment along with an email signature from Apple iBooks on iOS.
    For now, all iPad/iPhone users can do is to avoid the problems by using the workarounds that are described in How to avoid known PDF email attachment problems.
    When new and different problems with PDF attachments are reported by Adobe Reader for iOS users, we will update the document above.
    Sorry for the inconvenience.

  • How can I remove PDF password?

    Hi guys, recently I've got a really annoying problem at work. Some of my PDFs can not be copyed, edited or printed. I know that's because they're secured but how can I remove the password? Any idea to work out the problem?

    Hello,
    As there is no any C# solution ,I would like to psot some sample codes to achieve this.
    using Spire.Pdf;
    using Spire.Pdf.Security;
    namespace modify_PDF_passwords
    class Program
    static void Main(string[] args)
    //load a encrypted file and decrypt it
    String encryptedPdf = @"..\Encrypt.pdf";
    PdfDocument doc = new PdfDocument(encryptedPdf, "e-iceblue");
    //reset PDF passwords and set user password permission
    doc.Security.OwnerPassword = "Spire.PDF";
    doc.Security.UserPassword = "pdfcomponent";
    doc.Security.Permissions = PdfPermissionsFlags.Print | PdfPermissionsFlags.FillFields;
    //Save pdf file.
    doc.SaveToFile("Encryption.pdf");
    doc.Close();
    //Launching the Pdf file.
    System.Diagnostics.Process.Start("Encryption.pdf");
    Anyway ,it is a PDF component based solution,which works pretty fine for me.
    You can also read more from
    this article
    REGARDS
    Today is a gift. That's why it's called the Present!

  • How to launch a workflow  in ucm

    how to launch a workflow without starting it from the start button in admin workflow.
    i want to launch aworkflow whenever a particular event occur

    You want a criteria workflow. Setting one up is discussed, among other places, in the "Workflow Implementation Guide".
    http://download-west.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/admin/workflow_guide_10gr3en.pdf
    -Alan

  • How do I save PDF files by default to the folder of the source file?

    How do I save PDF files by default to the folder of the source file with Acrobat 9.0.0 Standard?

    I am not seeing that behaviour. If I right-click a link to a .pdf file, I get the file saved with the original filename.
    Maybe one of the settings in about:config controls that?
    pdfjs.previousHandler.preferredAction is a setting that has a value of 4 with my setup. I have no idea what that means, and I could not find any explanation anywhere. You could try using different numbers for that value and see if any make any difference. Why has nobody bothered to explain that setting anywhere?

  • How to edit a PDF in Photoshop CS4

    Hi there,
    I'm having some real trouble trying to figure out how to edit a PDF in photoshop cs4. So i need to edit/change text, move things around, that type of thing.
    I work in Windows.
    Could someone give me a bit a low down on how this is done?
    Much appreciated,
    Victoria

    You can open them but you will totally rasterize everything.
    PDFs are not intended to be edited. They are a final format but as
    mentioned you can use Acrobat for some minor text edits or use it to
    extract the images to Photoshop for further editing.
    Bob

  • Does anyone know how i can view PDF files using Galaxy Note 2?

    Does anyone know how i can view PDF files using Galaxy Note 2?
    This is what i have been doing;
    I click on the file i wish to view (via a portal)
    this file goes to notification widget (i drag down screen)
    notification/message says download complete
    i click on notification/message
    nows it says complete action using (here i only have 2 icon options 1= DB Text Editor 2 = HTML Viewer)
    I have installed Adobe Reader.

    Can you confirm if the downloaded file is a pdf file, that is it ends with .pdf?

  • How do you delete .pdf files?

    How do you delete pdf files from android Adobe Reader?  I  can delete the files, how do I
    delete the file name from the Adobe Reader file list, especially duplicate file names.
    someone  please help me. this will have to be done from  within the Reader, I  think. ?

    The full instructions are here: http://learn.adobe.com/wiki/display/readermobile/Android+FAQ.
    Ben

  • How do i synch my pdf/books to my library. I was able to synch my ipod touch purchases by transferring them but can't figure out how to do my pdfs. Also why is my ipod picture greyed out-the one that lets my move the icons around.

    How do i synch my pdf/books to my Itunes  library. I was able to synch my ipod touch app purchases by transferring them but can't figure out how to do my pdfs. Also why is my ipod picture greyed out-the one that lets my move the icons around.
    I am afraid if i don't get the pdfs into my book library, i will lose them when i update to IOS 5-is that true?

    thank you-i have to check into the authorization and the account-i gave my husband my old ipod when i updated last year so both at one time have been on this computer but as it stands, it only comes up with my device when i plug into Itunes.
    i don't think i have any restrictions for installing apps although my normal way of doing it is to download from the ipod touch. i did find that all i had to do was right click on my device name and got the message to transfer my apps and then they showed up in my library. Also when i clicked the synch checkbox i was able to view the ipod touch picture without it being greyed out. after all that i was able toupdate to IOS 5 successfully except my videos and podcast, and pdfs  did not come over. This confuses me since i had dragged them over to my library to make sure that i had everything in my library and on my device. Not a big problem, since i just dragged them in itunes from my library to my device but sometimes i wonder if i understand the big picture:)

  • How to show a pdf file in bi publisher report

    Hi All,
    We need to show a pdf file as report which was saved in a given location. How to call that pdf file as report. We need to give a hyperlink in the report and when we click on the report the pdf file should be displayed.
    When we open a report, there will be just hyperlinks to call serveral reports. When we click on each link , one should call a pdf saved in a particular location.
    Thanks.

    In Word, if you have set the borders on then you should see them in the output. In Word it has a setting to let you see 'gridlines' even if they are not set ie you have turned the borders off. Highlight the table and set all the borders on and re-try. If that fails, try building the table from scratch and copy the cell contents across to the new table
    Tim

Maybe you are looking for

  • HT5557 How do I tell what PDFs and Books are NOT in a collection?

    I just loaded my collection of PDF articles into my iPad, about 600 academic articles.  I've been putting them into collections, but when I go back to the "see my PDFs" portion of iBooks every PDF I have in iBooks shows up. How do I show only the one

  • Help with screen layout in PSE 12

    Is there anyway to adjust the screen layout in PSE12? I really don't like how the task bars are at the bottom and the panel on the left can't be locked to show the effects window and the layers pallete. All these extra mouse clicks to open and close

  • Node missing - subcontracting with chargeable components

    Dear Experts, Our system is ERP EHP5 SPS05. In SPRO under MM - Inventory Management and Physical Inventory - the node Subcontracting with chargeable components is missing Please help. Thanks.

  • RAW 5.02 update installed without asking for admin creds

    I was prompted to install this update while logged in to a non-admin account.  I went ahead, but it never asked me for admin credentials which I thought was odd.  Is this correct behavior?  I did check disk permissions and nothing showed up. Regards,

  • IPhoto can see thumbnails but cannot get full pictures

    My iPhoto library seems to be corrupted. I can see all the thumbnails but when I click on some I get a triangular sign with an exclamation point. Others work. Thinking that perhaps the iPhoto database was corrupted, I attempted to load an older time