<?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 SUBMIT report and dynamic data... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-and-dynamic-data/m-p/977060#M71110</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;I've developed a report, named Z99BC044, that allow to publish the output of any report in our intranet and in HTML format. The idea is simple: I call the target report with a SUBMIT command like this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ( pprog )&lt;/P&gt;&lt;P&gt;  USING SELECTION-SET pvari&lt;/P&gt;&lt;P&gt;  EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this call I process the output of the target report and finally I call the function module WWW_HTML_FROM_LISTOBJECT to create the HTML version of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method works fine for batch jobs: I create a variant in Z99BC044 for every job that I schedule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I want to use Z99BC044 to create a batch job from a dialog transaction, I need to call Z99BC044 using a SUBMIT command, and it does not allow to pass any table, with the target report selection screen, for example. As a dirt workaround I can create a variant dynamycally before to submit Z99BC044, but this means that I need to do cleaning tasks in programs because there will be a lot of variants only used once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way ?? Clever, if possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joan B. Altadill&lt;/P&gt;&lt;P&gt;CELSA SAP Admin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2005 16:08:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-23T16:08:55Z</dc:date>
    <item>
      <title>SUBMIT report and dynamic data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-and-dynamic-data/m-p/977060#M71110</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;I've developed a report, named Z99BC044, that allow to publish the output of any report in our intranet and in HTML format. The idea is simple: I call the target report with a SUBMIT command like this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ( pprog )&lt;/P&gt;&lt;P&gt;  USING SELECTION-SET pvari&lt;/P&gt;&lt;P&gt;  EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this call I process the output of the target report and finally I call the function module WWW_HTML_FROM_LISTOBJECT to create the HTML version of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method works fine for batch jobs: I create a variant in Z99BC044 for every job that I schedule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I want to use Z99BC044 to create a batch job from a dialog transaction, I need to call Z99BC044 using a SUBMIT command, and it does not allow to pass any table, with the target report selection screen, for example. As a dirt workaround I can create a variant dynamycally before to submit Z99BC044, but this means that I need to do cleaning tasks in programs because there will be a lot of variants only used once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way ?? Clever, if possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joan B. Altadill&lt;/P&gt;&lt;P&gt;CELSA SAP Admin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 16:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-and-dynamic-data/m-p/977060#M71110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T16:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT report and dynamic data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-and-dynamic-data/m-p/977061#M71111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Dialog Program use .&lt;/P&gt;&lt;P&gt;EXPORT PAVRI TO MEMORY ID 'XXXX'.&lt;/P&gt;&lt;P&gt;SUBMIT Z99BC044 .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Z99BC044&lt;/P&gt;&lt;P&gt;IMPORT ITAB FROM MEMORY ID 'XXXX'.&lt;/P&gt;&lt;P&gt;SUBMIT ( pprog )&lt;/P&gt;&lt;P&gt;USING SELECTION-SET pvari&lt;/P&gt;&lt;P&gt;EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;FREE MEMORY ID 'XXXX' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 16:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-and-dynamic-data/m-p/977061#M71111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T16:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT report and dynamic data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-and-dynamic-data/m-p/977062#M71112</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;I can think only one solution to pass the data for selection-screen by IMPORT/EXPORT TO MEMORY. If you use that, you can pass a table, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_SEL_SCREEN LIKE STANDARD TABLE OF TVARV &lt;/P&gt;&lt;P&gt;                                        WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) in dialog transaction:&lt;/P&gt;&lt;P&gt;   - Build Variant and fill T_SEL_SCREEN&lt;/P&gt;&lt;P&gt;   - EXPORT T_SEL_SCREEN TO MEMORY ID 'MY_ID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) in Z99BC044&lt;/P&gt;&lt;P&gt;   - IMPORT T_SEL_SCREEN TO MEMORY ID 'MY_ID'.&lt;/P&gt;&lt;P&gt;   - build variant (get data from T_SEL_SCREEN)&lt;/P&gt;&lt;P&gt;   - SUBMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 16:37:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-report-and-dynamic-data/m-p/977062#M71112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T16:37:36Z</dc:date>
    </item>
  </channel>
</rss>

