<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383527#M1042736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are multiple options...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) you can export your data to memory from the first report (using the EXPORT TO MEMORY ID statement) and retrieve them in the second report using IMPORT statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) for getting the output of second report, you can either use the option (1) or you can use the FMs LIST_TO_MEMORY and LIST_TO_ASCI to get the report output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) for passing inputs, you can use the SUBMIT statement using VIA selection screen as suggested&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 09:27:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-27T09:27:36Z</dc:date>
    <item>
      <title>Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383520#M1042729</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 one requirement such that i should use submit statement to run a zreport2 &lt;/P&gt;&lt;P&gt;from my current zreport1.&lt;/P&gt;&lt;P&gt;My doubt is that how can i pass the input values to this zreport2 and how can i &lt;/P&gt;&lt;P&gt;retrieve the output values from this  zreport2 in my current program zreport1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards.&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383520#M1042729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383521#M1042730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Submit via selection screen for more info Press F1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383521#M1042730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383522#M1042731</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;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba50035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba50035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383522#M1042731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383523#M1042732</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;Check this link-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/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/db9dd035c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/db9dd035c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383523#M1042732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383524#M1042733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Check this sample code.&lt;/P&gt;&lt;P&gt;Here I'm sending t_spfli table to memory Id ABC. Then I'm calling another program. In 2nd program, I'm extracting the same table from same memory Id.&lt;/P&gt;&lt;P&gt;PROGRAM 1&lt;/P&gt;&lt;P&gt;&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.
  ENDLOOP.
  HIDE:
    fs_spfli-carrid,
    fs_spfli-connid.
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;P&gt;&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>Wed, 27 Aug 2008 09:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383524#M1042733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383525#M1042734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT Report2 WITH  report2_field1 = report1_field1      &lt;/P&gt;&lt;P&gt;                         WITH  report2_field2 = report1_field2      &lt;/P&gt;&lt;P&gt;                         AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above statement call the report2 from report1 and process report2 and return to report1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383525#M1042734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383526#M1042735</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 have to use IMPORT and EXPORT the data from the reports into a memory ID...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT &amp;lt;f1&amp;gt; [TO &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [TO &amp;lt;g 2&amp;gt;] ... FROM MEMORY ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT &amp;lt;f1&amp;gt; [FROM &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [FROM &amp;lt;g 2&amp;gt;] ... TO MEMORY ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do an F1 Help on the IMPORT and EXPORT statements for syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then after the statement, Use the submit statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383526#M1042735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383527#M1042736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are multiple options...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) you can export your data to memory from the first report (using the EXPORT TO MEMORY ID statement) and retrieve them in the second report using IMPORT statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) for getting the output of second report, you can either use the option (1) or you can use the FMs LIST_TO_MEMORY and LIST_TO_ASCI to get the report output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) for passing inputs, you can use the SUBMIT statement using VIA selection screen as suggested&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383527#M1042736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383528#M1042737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first of all find out the variables of the selection-screen in report2&lt;/P&gt;&lt;P&gt;and then pass values from report1 to that values.&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;REPORTNAME&amp;gt;&lt;/P&gt;&lt;P&gt;VARIBLES........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING LIST TO MEMORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and then by using function modules u can achieve it&lt;/P&gt;&lt;P&gt;'LIST_FROM_MEMORY'.&lt;/P&gt;&lt;P&gt;'LIST_TO_ASCII'.&lt;/P&gt;&lt;P&gt;'WRITE_LIST'.&lt;/P&gt;&lt;P&gt;LIST_FREE_MEMORY'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383528#M1042737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Submit statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383529#M1042738</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;Chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Code used to populate 'select-options' &amp;amp; execute report&lt;/P&gt;&lt;P&gt;DATA: seltab type table of rsparams,&lt;/P&gt;&lt;P&gt;      seltab_wa like line of seltab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  seltab_wa-selname = 'PNPPERNR'.&lt;/P&gt;&lt;P&gt;  seltab_wa-sign    = 'I'.&lt;/P&gt;&lt;P&gt;  seltab_wa-option  = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;load each personnel number accessed from the structure into&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;parameters to be used in the report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at pnppernr.&lt;/P&gt;&lt;P&gt;    seltab_wa-low = pnppernr-low.&lt;/P&gt;&lt;P&gt;    append seltab_wa to seltab.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  SUBMIT zreport with selection-table seltab&lt;/P&gt;&lt;P&gt;                                via selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Code used to populate 'parameters' &amp;amp; execute report&lt;/P&gt;&lt;P&gt; SUBMIT zreport with p_param1 = 'value'&lt;/P&gt;&lt;P&gt;                with p_param2 = 'value'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Submit report and return to current program afterwards&lt;/P&gt;&lt;P&gt; SUBMIT zreport AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Submit report via its own selection screen&lt;/P&gt;&lt;P&gt; SUBMIT zreport VIA SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Submit report using selection screen variant&lt;/P&gt;&lt;P&gt; SUBMIT zreport USING SELECTION-SET 'VARIANT1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Submit report but export resultant list to memory, rather than&lt;/P&gt;&lt;P&gt;*it being displayed on screen&lt;/P&gt;&lt;P&gt; SUBMIT zreport EXPORTING LIST TO MEMORY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Once report has finished and control has returned to calling&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; program, use function modules LIST_FROM_MEMORY, WRITE_LIST and&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DISPLAY_LIST to retrieve and display report.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 09:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/4383529#M1042738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T09:28:28Z</dc:date>
    </item>
  </channel>
</rss>

