<?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 Print dynamic document without viewing it in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-dynamic-document-without-viewing-it/m-p/1449331#M212904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the class cl_dd_document.&lt;/P&gt;&lt;P&gt;The manual says that it is possible to print a dd_document without viewing it, it says:&lt;/P&gt;&lt;P&gt;1. Build document&lt;/P&gt;&lt;P&gt;2. Merge document&lt;/P&gt;&lt;P&gt;3. Print document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until step 2 theres no Problem, but when i call the method print_document( ) the report crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dump information indicates that there's a null-pointer-exception for a html_control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it impossible to call this method, without displaying the document in a custom control first?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2006 12:00:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-28T12:00:57Z</dc:date>
    <item>
      <title>Print dynamic document without viewing it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-dynamic-document-without-viewing-it/m-p/1449331#M212904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the class cl_dd_document.&lt;/P&gt;&lt;P&gt;The manual says that it is possible to print a dd_document without viewing it, it says:&lt;/P&gt;&lt;P&gt;1. Build document&lt;/P&gt;&lt;P&gt;2. Merge document&lt;/P&gt;&lt;P&gt;3. Print document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until step 2 theres no Problem, but when i call the method print_document( ) the report crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dump information indicates that there's a null-pointer-exception for a html_control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it impossible to call this method, without displaying the document in a custom control first?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 12:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-dynamic-document-without-viewing-it/m-p/1449331#M212904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Print dynamic document without viewing it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-dynamic-document-without-viewing-it/m-p/1449332#M212905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are in ECC 5.0 version then check the example &amp;lt;b&amp;gt;DD_STYLE_TABLE&amp;lt;/b&amp;gt; there you have option to print in the output , it is working fine.place a button in the screen and when you click on it , in PAI do this code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE USER_COMMAND_0100 INPUT.
  CASE SY-UCOMM.
    WHEN 'BACK'.                       "Beenden
      LEAVE PROGRAM.
    &amp;lt;b&amp;gt;WHEN 'PRN'.
      CALL METHOD DO-&amp;gt;PRINT_DOCUMENT
              EXPORTING REUSE_CONTROL = 'X'&amp;lt;/b&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 12:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-dynamic-document-without-viewing-it/m-p/1449332#M212905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Print dynamic document without viewing it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-dynamic-document-without-viewing-it/m-p/1449333#M212906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this report is a good demonstration but it it can't solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to call the method display_document(parent=...) first, that means i need a custom control filled with the html control. Otherwise the report will crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 12:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-dynamic-document-without-viewing-it/m-p/1449333#M212906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T12:28:53Z</dc:date>
    </item>
  </channel>
</rss>

