<?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: Submit ABAP report &amp; return in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139574#M114149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;  Do you have total control of all programs.  Meaning, are they all custom, or are they standard?  I'm thinking that we can play around with memory to achieve this.  Going under the assumption that you have contol over the driver and the first submitted report.  Here is the plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the driver.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: flag(1) type c.

free memory id 'TEST'.

submit zreport and return.

import flag = flag from memory id 'TEST'.
free memory id 'TEST'.
if flag = space.
submit zreport2 and return.
endif.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the submitted program....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


[code]

report zreport1.



data: flag(1) type c.

parameters: p_check type c.

start-of-selection.

flag = 'X'.  " Report was executed
export flag = flag to memory id 'TEST'.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do ya think? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2006 00:55:49 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-02-02T00:55:49Z</dc:date>
    <item>
      <title>Submit ABAP report &amp; return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139572#M114147</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 have to submit to two reports from my ABAP report, one after the other. Now, after submitting to the first ABAP report, suppose there is some problem with the selection paramters and user plans to exit out, so he presses on the back button, this not only brings him back to my program but also triggers the second following ABAP report to submission. The value of sy-subrc is 0, irrespective of the user runs the called report or not. Can anybody suggest how I can find out if the user was able to run the report at the first place or not, since the second report should only run if the first report was run successfully. We dont want the second report to run if the first report didnt run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 00:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139572#M114147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T00:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Submit ABAP report &amp; return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139573#M114148</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;You should update the first report has to be called, here you can populate an IMPORT/EXPORT parameter in START-OF-SELECTION event. After submitting the report you read this parameter and if it's filled you run the second report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZREPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA RUN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZREPORT2 VIA SELECTION-SCREEN AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT RUN FROM MEMORY ID 'ZRUN'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF RUN = 'X'.&lt;/P&gt;&lt;P&gt;  SUBMIT ZREPORT3 VIA SELECTION-SCREEN AND RETURN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZREPORT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA RUN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RUN = 'X'.&lt;/P&gt;&lt;P&gt;EXPORT RUN TO MEMORY ID 'ZRUN'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 00:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139573#M114148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T00:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Submit ABAP report &amp; return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139574#M114149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;  Do you have total control of all programs.  Meaning, are they all custom, or are they standard?  I'm thinking that we can play around with memory to achieve this.  Going under the assumption that you have contol over the driver and the first submitted report.  Here is the plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the driver.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: flag(1) type c.

free memory id 'TEST'.

submit zreport and return.

import flag = flag from memory id 'TEST'.
free memory id 'TEST'.
if flag = space.
submit zreport2 and return.
endif.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the submitted program....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


[code]

report zreport1.



data: flag(1) type c.

parameters: p_check type c.

start-of-selection.

flag = 'X'.  " Report was executed
export flag = flag to memory id 'TEST'.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do ya think? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 00:55:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139574#M114149</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-02T00:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Submit ABAP report &amp; return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139575#M114150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks interesting indeed.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well,fortunately, I am having to submit to a Z report first before a SAP report, so I think I can have a change in the report little bit at the start-of-selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think it will work from there. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have awarded required points too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 01:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139575#M114150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T01:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Submit ABAP report &amp; return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139576#M114151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, I'm sure that it will work then.  Looks like Max was thinking the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 01:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-abap-report-return/m-p/1139576#M114151</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-02T01:06:39Z</dc:date>
    </item>
  </channel>
</rss>

