<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PDF within dynpro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-within-dynpro/m-p/12749299#M2021646</link>
    <description>&lt;P&gt;I would create a Z ICF service to return the PDF and display it via SHOW_URL. It would load asynchronously. There are more details in the forum about ICF services (e.g. &lt;A href="https://blogs.sap.com/2018/07/06/creating-a-gos-attachment-with-sapui5/"&gt;Creating a GOS attachment with SAPUI5 | SAP Blogs&lt;/A&gt;). In case your PDF is a GOS attachment, I don't know a standard ICF service for that.&lt;/P&gt;</description>
    <pubDate>Sat, 30 Sep 2023 14:11:19 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-09-30T14:11:19Z</dc:date>
    <item>
      <title>PDF within dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-within-dynpro/m-p/12749298#M2021645</link>
      <description>&lt;P&gt;Hello, I do use CL_GUI_HTML_VIEWER-&amp;gt;SHOW_URL to display a PDF in an SAP gui dynpro. Find the ABAP code part below. The dynpro is showing logistics invoice data where the PDF is part of the screen. This works as expected. However, when the connection to SAP application server is slow or for PDF holding a lot of data then the dynpro will not be displayed until the complete PDF is loaded into the SAP gui. &lt;/P&gt;
  &lt;P&gt;Is it possible to display the dynpro data immediately and PDF the moment it is fully loaded into the SAP gui ? Comparable to what web browsers do.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  METHOD DOCUMENT.&lt;BR /&gt;    DATA:&lt;BR /&gt;      ls_document_data TYPE sofolenti1,&lt;BR /&gt;      lt_data          TYPE solix_tab,&lt;BR /&gt;      lv_url           TYPE url.&lt;BR /&gt;&lt;BR /&gt;*   Read document&lt;BR /&gt;    CALL FUNCTION 'SO_DOCUMENT_READ_API1'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        document_id                = CONV so_entryid( is_link-instid_b )&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        document_data              = ls_document_data&lt;BR /&gt;      TABLES&lt;BR /&gt;        contents_hex               = lt_data&lt;BR /&gt;      EXCEPTIONS&lt;BR /&gt;        document_id_not_exist      = 1&lt;BR /&gt;        operation_no_authorization = 2&lt;BR /&gt;        x_error                    = 3&lt;BR /&gt;        OTHERS                     = 4.&lt;BR /&gt;    CHECK syst-subrc EQ 0.&lt;BR /&gt;&lt;BR /&gt;*   Update viewer document&lt;BR /&gt;    go_viewer-&amp;gt;load_data(&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        url                    = ls_document_data-obj_descr&lt;BR /&gt;        type                   = 'application'&lt;BR /&gt;        subtype                = ls_document_data-obj_type&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        assigned_url           = lv_url&lt;BR /&gt;      CHANGING&lt;BR /&gt;        data_table             = lt_data&lt;BR /&gt;      EXCEPTIONS&lt;BR /&gt;        dp_invalid_parameter   = 1&lt;BR /&gt;        dp_error_general       = 2&lt;BR /&gt;        cntl_error             = 3&lt;BR /&gt;        html_syntax_notcorrect = 4&lt;BR /&gt;        OTHERS                 = 5 ).&lt;BR /&gt;    CHECK syst-subrc EQ 0.&lt;BR /&gt;&lt;BR /&gt;*   Show viewer&lt;BR /&gt;    go_viewer-&amp;gt;show_url(&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        url                    = lv_url&lt;BR /&gt;      EXCEPTIONS&lt;BR /&gt;        cntl_error             = 1&lt;BR /&gt;        cnht_error_not_allowed = 2&lt;BR /&gt;        cnht_error_parameter   = 3&lt;BR /&gt;        dp_error_general       = 4&lt;BR /&gt;        OTHERS                 = 5 ).&lt;BR /&gt;    CHECK syst-subrc EQ 0.&lt;BR /&gt;  ENDMETHOD.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Sep 2023 11:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-within-dynpro/m-p/12749298#M2021645</guid>
      <dc:creator>JackGraus</dc:creator>
      <dc:date>2023-09-30T11:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: PDF within dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-within-dynpro/m-p/12749299#M2021646</link>
      <description>&lt;P&gt;I would create a Z ICF service to return the PDF and display it via SHOW_URL. It would load asynchronously. There are more details in the forum about ICF services (e.g. &lt;A href="https://blogs.sap.com/2018/07/06/creating-a-gos-attachment-with-sapui5/"&gt;Creating a GOS attachment with SAPUI5 | SAP Blogs&lt;/A&gt;). In case your PDF is a GOS attachment, I don't know a standard ICF service for that.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 14:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-within-dynpro/m-p/12749299#M2021646</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-30T14:11:19Z</dc:date>
    </item>
  </channel>
</rss>

