<?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 Program run in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727815#M2020219</link>
    <description>&lt;P&gt;hello Export,&lt;/P&gt;
  &lt;P&gt;Please help me, I am try to fech data from one of already developmed Z program. But Not able to fetch data after execute. Please check my below code.&lt;/P&gt;
  &lt;P&gt; step 1 : SUBMIT Zxxxxxxxx EXPORTING LIST TO MEMORY USING SELECTION-SCREEN '1000'&lt;BR /&gt; WITH SELECTION-TABLE RSPAR_TAB&lt;BR /&gt; AND RETURN.&lt;/P&gt;
  &lt;P&gt; step 2 : CL_SALV_BS_RUNTIME_INFO=&amp;gt;GET_DATA_REF( IMPORTING R_DATA = O_ZFICAG ).&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt; ASSIGN O_ZFICAG-&amp;gt;* TO &amp;lt;LT_DATA&amp;gt;.&lt;/P&gt;
  &lt;P&gt; unable to read data into &amp;lt;LT_DATA&amp;gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 07:15:41 GMT</pubDate>
    <dc:creator>former_member751806</dc:creator>
    <dc:date>2022-12-12T07:15:41Z</dc:date>
    <item>
      <title>Program run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727815#M2020219</link>
      <description>&lt;P&gt;hello Export,&lt;/P&gt;
  &lt;P&gt;Please help me, I am try to fech data from one of already developmed Z program. But Not able to fetch data after execute. Please check my below code.&lt;/P&gt;
  &lt;P&gt; step 1 : SUBMIT Zxxxxxxxx EXPORTING LIST TO MEMORY USING SELECTION-SCREEN '1000'&lt;BR /&gt; WITH SELECTION-TABLE RSPAR_TAB&lt;BR /&gt; AND RETURN.&lt;/P&gt;
  &lt;P&gt; step 2 : CL_SALV_BS_RUNTIME_INFO=&amp;gt;GET_DATA_REF( IMPORTING R_DATA = O_ZFICAG ).&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt; ASSIGN O_ZFICAG-&amp;gt;* TO &amp;lt;LT_DATA&amp;gt;.&lt;/P&gt;
  &lt;P&gt; unable to read data into &amp;lt;LT_DATA&amp;gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 07:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727815#M2020219</guid>
      <dc:creator>former_member751806</dc:creator>
      <dc:date>2022-12-12T07:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Program run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727816#M2020220</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can try the function LIST_FROM_MEMORY to retrieve the result.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codezentrale.de/tag/exporting-list-to-memory/"&gt;EXPORTING LIST TO MEMORY | Die Codezentrale&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 07:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727816#M2020220</guid>
      <dc:creator>ThorstenHoefer</dc:creator>
      <dc:date>2022-12-12T07:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Program run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727817#M2020221</link>
      <description>&lt;P&gt;To get data from ALV you first need to inform the ALV framework BEFORE calling the program using it, like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Set Handler&lt;BR /&gt;  CALL METHOD cl_salv_bs_runtime_info=&amp;gt;set&lt;BR /&gt;    EXPORTING&lt;BR /&gt;      display  = abap_false&lt;BR /&gt;      metadata = abap_true&lt;BR /&gt;      data     = abap_true.

* Your ALV program goes here

* get data back&lt;BR /&gt;  TRY.&lt;BR /&gt;      cl_salv_bs_runtime_info=&amp;gt;get_data_ref(&lt;BR /&gt;        IMPORTING r_data      = gr_submit_output ).&lt;BR /&gt;      ASSIGN gr_submit_output-&amp;gt;* TO &amp;lt;gfs_table&amp;gt;.&lt;BR /&gt;    CATCH cx_salv_bs_sc_runtime_info.&lt;BR /&gt;      MESSAGE: TEXT-m01 TYPE 'S' DISPLAY LIKE 'E'.&lt;BR /&gt;      LEAVE LIST-PROCESSING.&lt;BR /&gt;  ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then it works. &lt;A href="https://github.com/AndreaBorgia-Abo/ABAP-Examples/blob/main/src/forum/zabo_oop_submit_calling.prog.abap" target="_blank"&gt;Complete example&lt;/A&gt; is avaiable.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 07:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727817#M2020221</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2022-12-12T07:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Program run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727818#M2020222</link>
      <description>&lt;P&gt;Thanks for Replay.&lt;/P&gt;&lt;P&gt;I had already done this activity. When checking below import component was fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;import t_component to lt_component from memory id cl_salv_bs_runtime_info=&amp;gt;c_memid_data_def.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pradip Patel&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 08:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727818#M2020222</guid>
      <dc:creator>former_member751806</dc:creator>
      <dc:date>2022-12-12T08:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Program run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727819#M2020223</link>
      <description>&lt;P&gt;Rewrite your Z program so that it instantiates a class that has methods for getting the report data and returning it. I.e. separate the business logic from the gui/frontend/view logic.&lt;/P&gt;&lt;P&gt;Then call the class directly from your calling program. &lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 09:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727819#M2020223</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2022-12-12T09:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Program run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727820#M2020224</link>
      <description>&lt;P&gt;Could you remove the EXPORTING LIST TO MEMORY in the SUBMIT statement, it  could prevent creation of the ALV grid, so preventing the class to access data.&lt;/P&gt;&lt;P&gt;Also free the memory once data read with &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;cl_salv_bs_runtime_info=&amp;gt;clear_all( ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Dec 2022 13:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727820#M2020224</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-12-12T13:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Program run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727821#M2020225</link>
      <description>&lt;P&gt;Please share the important parts of your submitting program, we can see that some very important steps are missing, like calling cl_salv_bs_runtime_info=&amp;gt;set.&lt;/P&gt;&lt;P&gt;Please share the code how the program Zxxxxxxxx outputs data to the screen. Not everything can be captured.&lt;/P&gt;&lt;P&gt;Also, did you debug Zxxxxxxxx to make sure that it runs as expected?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727821#M2020225</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-12-12T16:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Program run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727822#M2020226</link>
      <description>&lt;P&gt;Also what do you mean "unable to read data into &amp;lt;LT_DATA&amp;gt;", what is shown in debug, what is your code to read?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727822#M2020226</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-12-12T16:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Program run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727823#M2020227</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;pradipmca&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You have marked this answer "best/accepted" just now, but at the time of the answer, you said that this solution did not work. Was it right finally?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 12:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-run-in-background/m-p/12727823#M2020227</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-01-24T12:20:08Z</dc:date>
    </item>
  </channel>
</rss>

