<?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: nested submit program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436014#M12614</link>
    <description>&lt;P&gt;There isn't one,  but you can look at the system call stack using function module SYSTEM_CALLSTACK.&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 07:02:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-05-04T07:02:02Z</dc:date>
    <item>
      <title>nested submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436012#M12612</link>
      <description>&lt;P&gt;if i call program B from program A and then call program C from program B using submit program statement i.e.&lt;/P&gt;&lt;P&gt;A-&amp;gt;submit program B-&amp;gt;B-&amp;gt;submit program C-&amp;gt; C&lt;/P&gt;&lt;P&gt;then how can i get execution sequence number for each program? i.e 1 for A, 2 for B etc&lt;/P&gt;&lt;P&gt;i didn't find any system field.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 05:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436012#M12612</guid>
      <dc:creator>former_member795937</dc:creator>
      <dc:date>2017-05-04T05:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: nested submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436013#M12613</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't know whether there is such parameter exists to count the sequence. But you can calculate it in each program you are calling.&lt;/P&gt;&lt;P&gt;Eg. &lt;/P&gt;&lt;P&gt;In Prog A define count as 1 and export to memory.In the calling program B import the parameter from memory and add 1 to it. same procedure follows for the second calling prog as well. I am not sure whether this is an effective idea or not, but sharing my thought on this.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 06:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436013#M12613</guid>
      <dc:creator>satyapriyanka_vana</dc:creator>
      <dc:date>2017-05-04T06:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: nested submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436014#M12614</link>
      <description>&lt;P&gt;There isn't one,  but you can look at the system call stack using function module SYSTEM_CALLSTACK.&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 07:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436014#M12614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-04T07:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: nested submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436015#M12615</link>
      <description>&lt;P&gt;I solved this by adding a hidden parameter in the selection screen:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: pa_mode TYPE char1 NO-DISPLAY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then you can get back your selection screen data and set the parameter for the next submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lt_sel TYPE TABLE OF rsparams.&lt;BR /&gt;
 FIELD-SYMBOLS: &amp;lt;rsparam&amp;gt; LIKE LINE OF lt_sel.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 curr_report = sy-cprog&lt;BR /&gt;
* IMPORTING&lt;BR /&gt;
* SP =&lt;BR /&gt;
 TABLES&lt;BR /&gt;
 selection_table = lt_sel&lt;BR /&gt;
* SELECTION_TABLE_255 =&lt;BR /&gt;
 EXCEPTIONS&lt;BR /&gt;
 not_found = 1&lt;BR /&gt;
 no_report = 2&lt;BR /&gt;
 OTHERS = 3&lt;BR /&gt;
 .&lt;BR /&gt;
 LOOP AT lt_sel ASSIGNING &amp;lt;rsparam&amp;gt; WHERE selname = 'PA_MODE'.&lt;BR /&gt;
 &amp;lt;rsparam&amp;gt;-low = 'X'.&lt;BR /&gt;
 ENDLOOP.&lt;BR /&gt;
 SUBMIT zreport WITH SELECTION-TABLE lt_sel AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 May 2017 12:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436015#M12615</guid>
      <dc:creator>W_Gerbert</dc:creator>
      <dc:date>2017-05-04T12:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: nested submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436016#M12616</link>
      <description>&lt;P&gt;If you properly design your programs and move the data getting logic into a separate class or function module from the display logic, you don't need to use SUBMIT at all.  &lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 13:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436016#M12616</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-05-04T13:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: nested submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436017#M12617</link>
      <description>&lt;P&gt;You are corrrect . In this case I needed a new logical session though.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 13:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436017#M12617</guid>
      <dc:creator>W_Gerbert</dc:creator>
      <dc:date>2017-05-04T13:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: nested submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436018#M12618</link>
      <description>It works only for the current internal session (only the stack of all CALL and PERFORM in the current program). SUBMIT starts a new internal session.</description>
      <pubDate>Thu, 04 May 2017 17:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436018#M12618</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-05-04T17:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: nested submit program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436019#M12619</link>
      <description>&lt;P&gt;CALL FUNCTION 'XXXX' DESTINATION 'NONE will give a new session, without the mixing of view and model coding.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 05:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-submit-program/m-p/436019#M12619</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-05-05T05:30:25Z</dc:date>
    </item>
  </channel>
</rss>

