<?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: Calling a report program in another program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342088#M1034182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harsha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can call one report in another report using submit statement.&lt;/P&gt;&lt;P&gt;Please find the syntax below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT {rep|(name)} [selscreen_options] &lt;/P&gt;&lt;P&gt;                    [list_options] &lt;/P&gt;&lt;P&gt;                    [job_options] &lt;/P&gt;&lt;P&gt;                    [AND RETURN]. &lt;/P&gt;&lt;P&gt;Please use the following links which shows examples (step by step) for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba50d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba50d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba50035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba50035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2008 12:31:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-25T12:31:51Z</dc:date>
    <item>
      <title>Calling a report program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342083#M1034177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can we call on report program in another report program. If yes, please give me the right syntax. Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 12:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342083#M1034177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T12:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a report program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342084#M1034178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;search the forum &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use submit statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 12:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342084#M1034178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T12:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a report program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342085#M1034179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;ya you can call.&lt;/P&gt;&lt;P&gt;syntax is : SUBMIT &amp;lt;report name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nisa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 12:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342085#M1034179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T12:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a report program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342086#M1034180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use submit statement.&lt;/P&gt;&lt;P&gt;SUBMIT {rep|(name)} [selscreen_options] &lt;/P&gt;&lt;P&gt;                    [ list_options ] &lt;/P&gt;&lt;P&gt;                    [ job_options] &lt;/P&gt;&lt;P&gt;                    [AND RETURN]. &lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manjari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 12:29:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342086#M1034180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T12:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a report program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342087#M1034181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUBMIT zreport_name AND RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 12:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342087#M1034181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a report program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342088#M1034182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harsha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can call one report in another report using submit statement.&lt;/P&gt;&lt;P&gt;Please find the syntax below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT {rep|(name)} [selscreen_options] &lt;/P&gt;&lt;P&gt;                    [list_options] &lt;/P&gt;&lt;P&gt;                    [job_options] &lt;/P&gt;&lt;P&gt;                    [AND RETURN]. &lt;/P&gt;&lt;P&gt;Please use the following links which shows examples (step by step) for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba50d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba50d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba50035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba50035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 12:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342088#M1034182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T12:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a report program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342089#M1034183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Use SUBMIT AND RETURN statement. In below given codes,&lt;/P&gt;&lt;P&gt;I'm sending an internal table t_spfli to a memory id abc. After that I'm calling another program by using SUBMIT &amp;lt;program name&amp;gt; AND RETURN.&lt;/P&gt;&lt;P&gt;Check these two programs&lt;/P&gt;&lt;P&gt;PROGRAM 1&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  z_abap_memory.
DATA:
  w_carrid TYPE spfli-carrid,
  BEGIN OF fs_spfli,
    carrid LIKE spfli-carrid,
    connid LIKE spfli-connid,
    fltime LIKE spfli-fltime,
  END OF fs_spfli.
DATA:
  t_spfli LIKE
    TABLE OF
          fs_spfli.
 
SELECT-OPTIONS:
  s_carrid FOR w_carrid.
 
START-OF-SELECTION.
  PERFORM get_spfli.
  PERFORM disp_spfli.
AT LINE-SELECTION.
  IF sy-lsind EQ 1.
    EXPORT t_spfli TO MEMORY ID 'ABC'.
    SUBMIT z_ABAP_MEMORY1 AND RETURN.
  ENDIF.
END-OF-SELECTION.
  PERFORM disp_spfli.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_spfli
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM get_spfli .
  SELECT carrid
         connid
         fltime
    FROM spfli
    INTO TABLE t_spfli
   WHERE carrid IN s_carrid.
 
ENDFORM.                    " get_spfli
*&amp;amp;---------------------------------------------------------------------
*
*&amp;amp;      Form  disp_spfli
*&amp;amp;---------------------------------------------------------------------
*
*       text
*----------------------------------------------------------------------
*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------
*
FORM disp_spfli .
  LOOP AT t_spfli INTO fs_spfli.
    WRITE: / fs_spfli-carrid,
             fs_spfli-connid,
             fs_spfli-fltime.
         HIDE:
    fs_spfli-carrid,
    fs_spfli-connid.
  ENDLOOP.
 
ENDFORM.                    " disp_spfli
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM 2&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  z_abap_memory1.
 
DATA:
  BEGIN OF fs_spfli,
    carrid LIKE spfli-carrid,
    connid LIKE spfli-connid,
    fltime LIKE spfli-fltime,
  END OF fs_spfli,
  fs_fl LIKE fs_spfli.
DATA:
  BEGIN OF fs_flight,
    carrid LIKE sflight-carrid,
    connid LIKE sflight-connid,
    fldate LIKE sflight-fldate,
  END OF fs_flight.
 
DATA:
  t_spfli LIKE
    TABLE OF
          fs_spfli.
 
DATA:
  t_fl LIKE t_spfli.
 
DATA:
  t_flight LIKE
     TABLE OF
           fs_flight.
 
IMPORT t_spfli FROM MEMORY ID 'ABC'.
t_fl = t_spfli.
 
SELECT carrid
       connid
       fldate
  FROM sflight
  INTO TABLE t_flight
  FOR ALL ENTRIES IN t_spfli
 WHERE carrid = t_spfli-carrid
   AND connid = t_spfli-connid.
 
 
LOOP AT t_flight INTO fs_flight.
  WRITE: / fs_flight-carrid,
           fs_flight-connid,
           fs_flight-fldate.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 12:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342089#M1034183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T12:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a report program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342090#M1034184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;ya you can call.&lt;/P&gt;&lt;P&gt;syntax is : SUBMIT &amp;lt;report name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nisa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 12:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342090#M1034184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T12:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a report program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342091#M1034185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 06:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-report-program-in-another-program/m-p/4342091#M1034185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-26T06:31:52Z</dc:date>
    </item>
  </channel>
</rss>

