<?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 program can't return for submit program with submit another program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746021#M2021446</link>
    <description>&lt;P&gt;If you say you do "clear_all" right before doing a "get*", I hope you can understand that it's normal you get nothing.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 06:45:25 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-10-02T06:45:25Z</dc:date>
    <item>
      <title>Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746011#M2021436</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;In program_1, I am using the following code for submit program_2:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;  cl_salv_bs_runtime_info=&amp;gt;set(
  exporting display = abap_false
  metadata = abap_true
  data = abap_true ).


  submit (v_program_2)
  with free selections texpr
  with selection-table i_select
  and return.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;In program_2, I am using submit to program_3 with similar code.&lt;/P&gt;
  &lt;P&gt;When running program_1, the program will stop on the alv display of program_2 and can not receive data from memory.&lt;/P&gt;
  &lt;P&gt;How to solve this problem?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 07:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746011#M2021436</guid>
      <dc:creator>pataselano</dc:creator>
      <dc:date>2023-09-27T07:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746012#M2021437</link>
      <description>&lt;P&gt;Did you try to use SUBMIT with EXPORTING LIST TO MEMORY?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 07:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746012#M2021437</guid>
      <dc:creator>thkolz</dc:creator>
      <dc:date>2023-09-27T07:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746013#M2021438</link>
      <description>&lt;P&gt;It's something specific to (V_PROGRAM_2) which seems to deactivate the feature.&lt;/P&gt;&lt;P&gt;If you run on a test program, it should work. Try to see by debug of CL_SALV_BS_RUNTIME_INFO why there's a difference between the test program and (V_PROGRAM_2).&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 14:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746013#M2021438</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-28T14:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746014#M2021439</link>
      <description>&lt;P&gt;Check if the program_3 use a call of cl_salv_bs_runtime_info=&amp;gt;clear_all() or similar method that would deactivate the handling of ALV events?&lt;/P&gt;&lt;P&gt;NB: The class use memory id cl_salv_bs_runtime_info=&amp;gt;c_memid_info to pass information, so a recursive call may not be allowed/handled.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 15:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746014#M2021439</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-09-28T15:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746015#M2021440</link>
      <description>&lt;P&gt; SUBMIT zzh99cwtr0 "ZZRPMENUSTART00&lt;/P&gt;                               WITH pnppernr IN r_pernr&lt;BR /&gt;                               WITH begd_cal = s_begda  " '20190321'"    " PERIOD START&lt;BR /&gt;                               WITH endd_cal = s_endda   " '20190420'"     " PERIOD END&lt;BR /&gt;                               WITH grid = 'X'&lt;BR /&gt;                               WITH lv = ''&lt;BR /&gt;                               USING SELECTION-SET 'FOR_DEVELOPERS'&lt;BR /&gt;                               EXPORTING LIST TO MEMORY&lt;BR /&gt;                               AND RETURN.&lt;P&gt;for example above code return data into memory and make sure to memory id must be unique .&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 12:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746015#M2021440</guid>
      <dc:creator>amirbarzegar</dc:creator>
      <dc:date>2023-09-30T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746016#M2021441</link>
      <description>&lt;P&gt;It's a good workaround, but I think that it's best to use cl_salv_bs_runtime_info as far as possible. So, understand first why the called program ignores cl_salv_bs_runtime_info, then I guess the best workaround can be found.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 19:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746016#M2021441</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-30T19:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746017#M2021442</link>
      <description>&lt;P&gt;It's a good workaround, but I think that it's best to use cl_salv_bs_runtime_info as far as possible. So, understand first why the called program ignores cl_salv_bs_runtime_info, then I guess the best workaround can be found.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 19:03:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746017#M2021442</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-09-30T19:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746018#M2021443</link>
      <description>&lt;P&gt;Yes, in program_2, I used cl_salv_bs_runtime_info=&amp;gt;clear_all() after submit program_3.&lt;BR /&gt;&lt;BR /&gt;Any solution for solve that problem?&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 01:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746018#M2021443</guid>
      <dc:creator>pataselano</dc:creator>
      <dc:date>2023-10-02T01:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746019#M2021444</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt;,&lt;BR /&gt;In program_2. I used cl_salv_bs_runtime_info=&amp;gt;clear_all() after submit program_3.&lt;/P&gt;&lt;P&gt;Any solution for solve that problem?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 01:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746019#M2021444</guid>
      <dc:creator>pataselano</dc:creator>
      <dc:date>2023-10-02T01:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746020#M2021445</link>
      <description>&lt;P&gt;I can't reproduce your case, you are not precise enough, so as I said you should make sure that it works well in simple case, then tri to debug CL_SALV_BS_RUNTIME_INFO why it stops working in the special case of program_2 and program_3, I'm pretty sure you don't do it correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 06:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746020#M2021445</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-10-02T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746021#M2021446</link>
      <description>&lt;P&gt;If you say you do "clear_all" right before doing a "get*", I hope you can understand that it's normal you get nothing.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 06:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746021#M2021446</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-10-02T06:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746022#M2021447</link>
      <description>&lt;P&gt;In fact, by using cl_salv_bs_runtime_info=&amp;gt;clear_all(), you prevent cl_salv_bs_runtime_info from continuing to run.&lt;/P&gt;&lt;P&gt;The called program should check in memory whether it has already been called with cl_salv_bs_runtime_info (check the contents of the memory identifier cl_salv_bs_runtime_info=&amp;gt;c_memid_info with cl_salv_bs_runtime_info=&amp;gt;get) and save the contents before calling the class a second time, and restore it to its previous value after receiving the data).&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 07:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746022#M2021447</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-10-02T07:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746023#M2021448</link>
      <description>&lt;P&gt;Thank you all for comment and answer.&lt;/P&gt;&lt;P&gt;Finally, I can solve this problem by myself.&lt;/P&gt;&lt;P&gt;After get data from program_3, cl_salv_bs_runtime_info=&amp;gt;clear_all() for clear alv data of program_3 and before display data to alv for program_2, I set cl_salv_bs_runtime_info again.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;cl_salv_bs_runtime_info=&amp;gt;set(
  exporting display = abap_false
  metadata = abap_true
  data = abap_true ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, program_1 can get data from submit of program_2 without displayed alv of program_2.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 04:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746023#M2021448</guid>
      <dc:creator>pataselano</dc:creator>
      <dc:date>2023-10-05T04:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746024#M2021449</link>
      <description>&lt;P&gt;-1 just because I think that Raymond answer is much more useful answer for future visitors. The problem is not about the number of programs called, it's just because you used "clear_all" which of course has reset the preceding calls.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 10:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746024#M2021449</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-10-05T10:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program can't return for submit program with submit another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746025#M2021450</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;If I don't use "clear_all" then I can't use alv for program_2 because alv still use by program_3.&lt;/P&gt;&lt;P&gt;So, I set the alv again with two conditions:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;"display = abap_true" for the tcode that directly runs program_2&lt;/LI&gt;&lt;LI&gt;"display = abap_false" for the tcode that runs program_2 through program_1.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 06 Oct 2023 01:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-can-t-return-for-submit-program-with-submit-another-program/m-p/12746025#M2021450</guid>
      <dc:creator>pataselano</dc:creator>
      <dc:date>2023-10-06T01:33:28Z</dc:date>
    </item>
  </channel>
</rss>

