Display pdf in a dialog screen

Hi,
I have to display an Interactive PDF in a screen, after the user enter data and click on submit button ( say ). I have to read the data using abap code.
I am able to display the PDF using HTML container in a screen,  need the input how to read back when a submit button. Need the logic submit button logic.

Hi,
go to PAI and read ok_code
A.

Similar Messages

  • Dialog box display won't update after screen blank or being moved

    I have a modeless dialog box used for status display by a plugin I wrote for Acrobat. Everything works fine until the screen blanks or the user moves the dialog box on the screen, at which point no further updates to the dialog box are displayed. My plugin consumes 100% of CPU for long periods of time so the program can appear dead without this display being updated, but nothing I have tried seems to make any difference. The dialog box is generated with ADM and things I have tried include calling "Update" on the dialog box at regular intervals, the windows "Sleep" function to yield the CPU periodically, and a host of similar tactics.
    I'm guessing all the code will get run together once I click submit, but here is how I create the diaglog box (it was working fine without the "WinAppRegisterModelessDialog", but I saw a reference to it elsewhere and tried it to see if it would help, not sure if it actually serves any useful purpose):
    statWin = sADMDialog->Create(inPluginRef, DIALOG_ID, IDB_DIALOG1, kADMModalDialogStyle, NULL, NULL, 0);
    WinAppRegisterModelessDialog((HWND)sADMDialog->GetWindowRef(statWin));
    infoBox = sADMDialog->CreateItem(statWin, 5, kADMTextStaticType, &coords, NULL, NULL, 0);
    // Status header
    coords.top = coords.bottom + 10;
    coords.bottom = coords.top + 12;
    statHeader = sADMDialog->CreateItem(statWin, kADMUniqueItemID, kADMTextStaticType, &coords, NULL, NULL, 0);
    // Status line
    coords.top = coords.bottom + 10;
    coords.bottom = coords.top + 12;
    statLine = sADMDialog->CreateItem(statWin, kADMUniqueItemID, kADMTextStaticType, &coords, NULL, NULL, 0);
    // Progress bar
    coords.top = coords.bottom + 10;
    coords.bottom = coords.top + 15;
    progress = sADMDialog->CreateItem(statWin, kADMUniqueItemID, kADMProgressBarType, &coords, NULL, NULL, 0);
    sADMItem->SetMinIntValue(progress, 0);
    sADMItem->SetMaxIntValue(progress, totalPages);
    // Set window size, and other attributes
    sADMDialog->Size(statWin, coords.right + BORDER, coords.bottom + BORDER);
    sADMDialog->SetText(statWin, PROD_NAME " - Progress");
    // Set header for status line
    sADMItem->SetText(statHeader, " Page # % Complete Estimated Time remaining");
    // Initialize progress bar
    sADMItem->Update(progress);
    Updates are currently performed with the following code segment. The last two lines are my attempts to get the display to update once the screen blanks:
    // show it
    sADMItem->SetText(statLine, textBuf);
    // Update progress bar
    sADMItem->SetIntValue(progress, pagesCompleted);
    // Force display update/refresh
    sADMDialog->Update(statWin);
    // Yield for display update (in case of screen blank or user changes)
    Sleep((DWORD)100);
    Everything works fine until the window is moved or screen blanking occurs, after that nothing seems to work, all updates to the box cease to be displayed. Any suggestions?

    OK guys here's an update. First I went to BIOS and updated the initial display setting to "LCD panel only" from "Auto". At first I thought it helped, because when I worked at the laptop without the external screen attached, the internal LCD panel resumed normally from off (previously this didn't work).
    But today while I was in the office with my external 19" LCD screen attached, and both of them went off after being idle for 10 minutes, the internal LCD panel didn't resume again. So I've tried the Fn + F5 key combination to switch between modes, and I switched from dualview back to single. The internal LCD panel blinked for a second and then turned off immediately, and from that moment on, I was without picture on both of them. SO I ended up hibernating and resuming again. :( An important note - as soon as the computer began hibernating, the LCD went on and I could see the whole progress of hibernation before it turned off.
    Also another note - when I'm in dualview, I always have keep the internal LCD panel as the primary screen. So unfortunately, when it doesn't resume, I don't have access to the taskbar etc to try more things...
    Any more thoughts?
    Thanks again!
    Rado

  • 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

  • Open and editor windown from a dialog screen.

    Hi,
    Does anybody know how to open an editor window to write large text notes (1,000 chars or more) from a dialog screen?
    Then how this data is stored on a table?
    I need to save large amounts of text and I have seen this on SAP transactions.
    Any help will be appreciated.
    Thanks,
    Orlando.

    Oh, I see.  I would not suggest using a sapscript editor. I would use the text editor that I mentioned early.  If you really want that functionality of the sapscript editor, you can do that.  Either way you will need to create a custom text object/id to save your text to the db.  Here is an example of using the sapscript editor.
    report zrich_0002.
    data: header type THEAD.
    data: txt_lines type table of tline with header line.
    header-TDOBJECT = 'AUFK'.
    header-TDNAME   = '001000000001'.
    header-TDID     = 'LTXT'.
    header-TDSPRAS  = sy-langu.
    header-TDLINESIZE = 70.
    * First read the text, if there is any.
    call function 'READ_TEXT'
      exporting
    *   CLIENT                        = SY-MANDT
        id                            = header-tdid
        language                      = sy-langu
        name                          = header-tdname
        object                        = header-TDOBJECT
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      tables
        lines                         = txt_lines
    * EXCEPTIONS
    *   ID                            = 1
    *   LANGUAGE                      = 2
    *   NAME                          = 3
    *   NOT_FOUND                     = 4
    *   OBJECT                        = 5
    *   REFERENCE_CHECK               = 6
    *   WRONG_ACCESS_TO_ARCHIVE       = 7
    *   OTHERS                        = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    * throw editor, allow user to change
    call function 'EDIT_TEXT'
      exporting
    *   DISPLAY             = ' '
    *   EDITOR_TITLE        = ' '
        header              = header
    *   PAGE                = ' '
    *   WINDOW              = ' '
        SAVE                = 'X'
    *   LINE_EDITOR         = ' '
    *   CONTROL             = ' '
    *   PROGRAM             = ' '
    *   LOCAL_CAT           = ' '
    * IMPORTING
    *   FUNCTION            =
    *   NEWHEADER           =
    *   RESULT              =
      tables
        lines               = txt_lines
    * EXCEPTIONS
    *   ID                  = 1
    *   LANGUAGE            = 2
    *   LINESIZE            = 3
    *   NAME                = 4
    *   OBJECT              = 5
    *   TEXTFORMAT          = 6
    *   COMMUNICATION       = 7
    *   OTHERS              = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    * When user comes back from editor, save the text
    call function 'SAVE_TEXT'
      exporting
        CLIENT                = SY-MANDT
        header                = header
    *   INSERT                = ' '
    *   SAVEMODE_DIRECT       = ' '
    *   OWNER_SPECIFIED       = ' '
    *   LOCAL_CAT             = ' '
    * IMPORTING
    *   FUNCTION              =
    *   NEWHEADER             =
      tables
        lines                 = txt_lines
    * EXCEPTIONS
    *   ID                    = 1
    *   LANGUAGE              = 2
    *   NAME                  = 3
    *   OBJECT                = 4
    *   OTHERS                = 5
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    So for your case, you must create a custom Text Object and ID via SE75.
    REgards,
    Rich Heilman

  • Does anyone know why after upgrading to Mavericks, Safari will not display PDF files, is there a solution?

    I cannot get Safari to display PDF files, it shows a blank screen with the comment that Safri has blocked PDF, however when you unblock it still does not show the PDF, I have had to rely on Firefox for this, which I find not too good. Any help very much appreciated.

    Update to 10.9.1
    Adobe Reader
    http://helpx.adobe.com/acrobat/kb/blocked-plugin-alert-safari-7.html
    Best.

  • Module Pool - Error message on a Modal Dialog screen with input

    Hello All,
    I have a modal dialog screen which is called on F4 help of a input field. This dialog screen has radio buttons on it to select. On selection, we check if the user is authorized to that option. If not, raise and error message with command MESSAGE msgid.....
    When the error message pops-up and when clicked ok on it, the radio buttons on the modal dialog screen gets disabled. I want to have the modal dialog box to be able to accept the new radio button as input.
    Can anyone please suggest.
    Thanks,
    Smita

    Put all of your Radio buttons in the CHAIN ... ENDCHAIN with one module.
    CHAIN.
        FIELD rb1.
        FIELD rb2.
        FIELD rb3.
        MODULE check_chain ON CHAIN-REQUEST.   "<< implement logic in check_Chain
      ENDCHAIN.
    If you want, you can even disable the options before displaying the screen. Do all necessary checks in the PBO and based on that disable the options.
    Regards,
    Naimesh Patel

  • Installing AcrobatPro after removing Adobe Reader Safari displayed pdf urls only as a black page anymore

    After installing Acrobat Pro it installs in Library/Internet Plugin-ins/AdobePDFViewer.plugin version 11.0.03. Allthough after selecting a PDF-link it leads to a displays it not in Acrobat Pro, it diplays it as a black page in Safari. When I have a look in Acrobat Pro into the preferences/internet/webbrowser-option/PDF to show inBrowser with: isnt checked! And there is still listed/Application/Adobe Reader.app instead of /Applikation/Adobe Acrobat Pro!!
    There is no way to select this Applikation. Having a look at Lbrary/Preferences/com.adobe.acrobat.pdfviewer.plist listed:
    AdobePDFDriver file://localhost/Volumes/Sicherung%20laptop/Applications/Adobe/Adobe%20Acrobat% 209%20Pro/Adobe%20Acrobat%20Pro.app/
    ReaderInstallPath file://localhost/Applications/Adobe%20Reader.app/
    WebBrowserUsePath file://localhost/Applications/Adobe%20Reader.app/
    Has anyone changed the ReaderInstallPath file or WebBrowserUsePath file to the path of Acrobat Pro  and as a result a good diplay of PDF-urls in Arcobat Pro or Safari??
    Thankx, I hope my english isn´t to bad for a german apple-user!

    Thanks for the screenshot, Pat. I think the light bulb went off for me. I was looking over the tips for configuring Firefox at the link:
    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    And I think what confused me the most was this screen shot for plug-ins for Firefox mentioned Acrobat.
    I had Acrobat installed myself, but most of our users do not use Acrobat, since it's not a free product. I uninstalled Adobe Acrobat, and the Adobe Acrobat plug-in was still there, so that forced me to realize that the plug-in that comes with Adobe Reader 11.0.3 is called "Adobe Acrobat".
    I went into Tools->Options->Applications and selected "Use Adobe Acrobat (in Firefox)", rather than "Use Adobe Reader (default)".
    This now allows me to not only view PDFs within a browser window in Firefox, but it also enables the save icon (which "Use Adobe Reader (default)" was not allowing me to do:
    It's a shame that the default setting is not for "in browser", because our customers may have to make a configuration change.
    There is no way to programmatically force a configuration change on a user's browser, is there?

  • How to display pdf file with java code?

    Hi All,
    i have a jsp pagein that page if i click one icon then my backing bean method will call and that method will create pdf document and write some the content in that file and now i want to display that generated pdf document.
    it should look like you have pressed one icon and it displayed pdf file to you to view.
    java code below:
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ec = fc.getExternalContext();
    HttpServletResponse resp = (HttpServletResponse) ec.getResponse();
    resp.setHeader("Content-Disposition", "filename=\"" + temppdfFile);
    resp.encodeRedirectURL(temppdfFile.getAbsolutePath());
    resp.setContentType("application/pdf");
    ServletOutputStream out = resp.getOutputStream();
    ServletUtils.returnFile(temppdfFile, out);
    out.flush();
    and above temppdfFile is my generated pdf file.
    when i am executing this code, it was opening dialog box for save and cancel for the file, but the name of the file it was showing me the "jsp file name" with no file extention (in wich jsp file i am calling my backing bean method) and type is "Unknown File type" and from is "local host"
    it was not showing me open option so i am saving that file then that file saved as a pdffile with tha name of my jsp file and there is nothing in that file(i.e. empty file).
    what is the solution for this. there is any wrong in my code.
    Please suggest me.
    Thanks in advance
    Indira

    public Object buildBarCodes() throws Exception
    File bulkBarcodes = null;
    String tempPDFFile = this.makeTempDir();
    File tempDir = new File("BulkPDF_Files_Print");
    if(!tempDir.exists())
    tempDir.mkdir();
    bulkBarcodes = File.createTempFile
    (tempPDFFile, ".pdf", tempDir);
    //bulkBarcodes = new File(tempDir, tempPDFFile+"BulkBarcode"+"."+"pdf");
    if(!bulkBarcodes.exists())
    bulkBarcodes.createNewFile();
    Document document = new Document();
    FileOutputStream combinedOutput = new FileOutputStream(bulkBarcodes);
    PdfWriter.getInstance(document, combinedOutput);
    document.open();
    document.add(new Paragraph("\n"));
    document.add(new Paragraph("\n"));
    Image image = Image.getInstance(bc.generateBarcodeBytes(bc.getBarcode()));
    document.add(image);
    combinedOutput.flush();
    document.close();
    combinedOutput.close();
    FacesContext facesc = FacesContext.getCurrentInstance();
    ExternalContext ec = facesc.getExternalContext();
    HttpServletResponse resp = (HttpServletResponse) ec.getResponse();
    resp.setHeader("Content-Disposition", "inline: BulkBarcodes.pdf");
    resp.encodeRedirectURL(bulkBarcodes.getAbsolutePath());
    resp.setContentType("application/pdf");
    resp.setBufferSize(10000000);
    ServletOutputStream out = resp.getOutputStream();
    ServletUtils.returnFile(bulkBarcodes, out);
    out.flush();
    return "success";
    This is my action method which will call when ever i press a button in my jsp page.
    This method will create the barcode for the given barcode number and write that barcode image in pdf file
    (i saw that pdf file which i have created through my above method, This PDF file opening when i was opening manually and the data init that is also correct means successfully it writes the mage of that barcode)
    This method taking the jsp file to open because as earlier i said it was trying to open unknown file type document and i saved that file and opended with editplus and that was the jsp file in which file i am calling my action method I mean to say it was not taking the pdf file which i have created above it was taking the jsp file

  • How to add favorite folders to "Save As.." dialog screen

    Hi all,
    To the Windows Explorer shell it is possible to add favorite folders to the "Save as..." dialog screen (done so by dragging shortcuts to an open "Save as..." screen). [ see screendump for what I am referring to ]
    Now one would suppose the same is possible for the "Save As..." screen from within Adobe Acrobat Pro.
    Unfortunately, it is not: no possibility to add favorite locations there....
    This isn't productive at all, since my docs are on a separate disc in non-standard folders. Each time I wish to save PDF-scanned documents to the harddisk, I need to click my way through too much folders...
    Anyone know a way (registry edit perhaps?) that enables me to add favorites to the Adobe "Save As..." screen?
    (I really need it there, instead of e.g. creating shortcuts on my Desktop...)
    Thanks for your help!
    Willy

    Ok, here are three solutions I tested, all seem to work in my copy of vista.
    The easiest: grab the 'places bar editor' from here: http://melloware.com/download/
    Moderate: use TweakUI, the windows XP utility.  You need to jump through some hoops to get it to run in Vista, but it seems to work fine.  Follow the instructions by n8barber a few posts down: http://forums.techarena.in/vista-help/700353.htm
    Hardest: edit the registry.  I added the string using a single \ in the path, but somehow when i exported it I show a double \.  I guess you will have to fiddle with this.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\PlacesBar]
    "Place4"="h:\\Project Files"

  • How to suppress the protocol dialog screen in ALV grid ?

    To check the values in the ALV grid we make use of the method add_protocol_entry from the class interface CL_ALV_CHANGED_DATA_PROTOCOL. The coloring of the wrong cells in the ALV grid is a nice feature but the popup screen that appears on every entry that is incorrect is not so nice. Is there a possibility to suppress this dialog screen without stopping the coloring feature? Or is there an other way to get this coloring feature in the specific cells of the ALV grid. We have already tried the emphasize option in the field catalog but in this case the coloring of a cell disappears when the cursor is set on the colored field in the ALV grid.
    I hope somebody can help us.
    Thanks and greetings,
    Ad Pegels
    Suiker Unie
    Netherlands

    As I understand by adding the PROTOCOL you are trying to validate some fields and display those with a different color.
    Instead, if you can validate and can change the color manually I think the pop ups can be avoided. All you have to  do is to add a nested internal table to the main internal table that has the display data. This nested table will be of type LVC_T_STYLE. You can add rows, one for each field that you want to display in a different color and also spcify the style in which you want to display.
    Once you do that those fields should be displayed with different colors.
    Regards,
    Ravi
    Note : Please allocate points if you find this useful.

  • Unexpected behaviour upon pressing the 'Enter' key on dialog screen

    Hi.
    I have two dialog screens that exhibit unexpected behaviour when i pressed the 'Enter' key.
    Screen 1: When I pressed the 'Enter' key, the focus shifted to another input field and the content of the previous input field is cleared. The thing is, I did not have any codes in PAI for 'Enter'. Why is this happening?
    Screen 2: On load, some of the fields on this screen will be disabled. However, when I pressed the 'Enter' key, all the disabled fields become enabled. Again, I did not have any codes that handle the 'Enter' key in PAI. Why is this happening?
    Any help is appreciated.

    Hi Atish.
    Yes, I have used CHAIN... END CHAIN.
    I thought that CHAIN... END CHAIN allows my input fields to be re-activated after an error message is displayed.
    How would CHAIN... END CHAIN cause the unexpected behaviour?
    Thanks.

  • Adobe Reader XI enterprise deploy-disable display PDF in browser?

    There appears to be conflicting information about Adobe Reader XI and how to pre-configure the "disable display pdf in browser".
    The Enterprise Administration Kit/Guide says you can do this via the MSI Property:
    DISABLE_BROWSER_INTEGRATION = YES
    However, acrobat help, indicates you can ONLY do this manually via individual browser add-ons.
    I have the redestributable version from Adobe and I used the Enterprise Guide to make the AIP and used the Customization Wizard to create the package and am using the properties line when the msi is installed to disable the display
    so which one is right?

    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

  • Can't display pdf's using IE 10

    This issue I have had for several months even using IE 9.  I can display PDF's just fine using Firefox.
    I have read and read and have exhausted all options...I think.
    I have the latest Reader and also have X Pro installed, using WIN 7, 64 BIT
    When I click on a PDF document on any webpage all I get is a circle with a line through it on the top left corner of the screen when a new window opens up.
    Any help is greatly appreciated!

    Could you please check the following settings/preferences:
    1.Launch Reader/Acrobat (specifically the one which has its plugin used for brwoser-  you better change the preferences for both).
    2.Goto Edit->Preferences-> Internet (in categories pane)
    Check whether Display PDF in browser is enabled; if not, enable it- and then retry.

  • 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 disable Display PDF in Browser in Adobe Reader XI?

    I am having troubles with opening a report in PDF form from a web browser, and I'm trying to figure out how to disable opening a PDF in a browser in Reader XI.  I tried disabling "Open in Read Mode" and "Allow Fast Web View" both individually and seperately, and none of those combinations did the trick.
    Any suggestions/help are appreciated.  Thanks.

    Hello Lloyd6770
    Try these steps.  ( I'm using Windows 7 x64 Ultimate, Internet Explorer 9,  and Adobe XI )
    1. Open Adobe XI
    2. Click Edit
    3. Click Accessibility
    4. Click Setup Assistant
    5. Click top radio button 'Set Options for Screen Readers'
    6. Click Next
    7. Do not change options on Screen 2 of 4, Click Next
    8. Do not change options on Screen 3 of 4, Click Next
    9. On screen 4 of 4, remove the check mark on ' Display PDF documents in the web browser '
    NOTE: I checked Internet Explorer 9 / Tools / Manage add-ons and Adobe PDF Link Helper is still enabled in Internet Explorer 9.
    PDF's will open in Adobe XI as you preferred and not in your brower.
    Cheers!

Maybe you are looking for