<?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: Passing Variables Between Programs in Background Mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763771#M643512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT/IMPORT works in Background mode provided the export &amp;amp; import both are done in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this program: it has export/import in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Before the export, fill the data fields before CLUSTR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  wa_index-aedat = sy-datum.&lt;/P&gt;&lt;P&gt;  wa_index-usera = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXPORT s_matnr&lt;/P&gt;&lt;P&gt;       TO DATABASE indx(st) FROM wa_index ID wa_index_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Before the import, fill the data fields before CLUSTR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  wa_index1-aedat = sy-datum.&lt;/P&gt;&lt;P&gt;  wa_index1-usera = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Import the selection screen data from Calling Program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;  IMPORT i_mara&lt;/P&gt;&lt;P&gt;  FROM DATABASE indx(st) ID wa_index_key1 TO wa_index1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FREE MEMORY ID wa_index_key1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Prashant Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 11:33:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T11:33:12Z</dc:date>
    <item>
      <title>Passing Variables Between Programs in Background Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763766#M643507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can you pls. suggest how I can pass a variable from one program to the other while in the background mode. &lt;/P&gt;&lt;P&gt;The Export and Import parameters do not work while in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 09:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763766#M643507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T09:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variables Between Programs in Background Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763767#M643508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using SET parameter and GET parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 09:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763767#M643508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T09:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variables Between Programs in Background Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763768#M643509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in first program use Set PARAMETER ID 'PER' FIELD 'variable'.&lt;/P&gt;&lt;P&gt;and in second&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'PER' FIELD 'variable'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 10:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763768#M643509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T10:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variables Between Programs in Background Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763769#M643510</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;Create a Background Job with 2 Steps for 2 Report programs.&lt;/P&gt;&lt;P&gt;Now you can use EXPORT and IMPORT to pass the Data between these programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Calling program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT XTAB FROM  ITAB1  TO MEMORY ID 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Called program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT XTAB TO ITAB2 FROM MEMORY ID 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: SET / GET parameters can pass the Data to Screen fields only....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 10:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763769#M643510</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-05T10:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variables Between Programs in Background Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763770#M643511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither the EXPORT/IMPORT nor the SET/GET parameters work while in the background mode.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the program is running in the background, i did debugging using SM50 (Process Overview). And thats I find out that the variable is not imported into the called program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 10:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763770#M643511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T10:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variables Between Programs in Background Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763771#M643512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT/IMPORT works in Background mode provided the export &amp;amp; import both are done in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this program: it has export/import in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Before the export, fill the data fields before CLUSTR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  wa_index-aedat = sy-datum.&lt;/P&gt;&lt;P&gt;  wa_index-usera = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXPORT s_matnr&lt;/P&gt;&lt;P&gt;       TO DATABASE indx(st) FROM wa_index ID wa_index_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Before the import, fill the data fields before CLUSTR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  wa_index1-aedat = sy-datum.&lt;/P&gt;&lt;P&gt;  wa_index1-usera = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Import the selection screen data from Calling Program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;  IMPORT i_mara&lt;/P&gt;&lt;P&gt;  FROM DATABASE indx(st) ID wa_index_key1 TO wa_index1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FREE MEMORY ID wa_index_key1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Prashant Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763771#M643512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variables Between Programs in Background Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763772#M643513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET /GET parameter IDs or IMPORT/EXPORT will not work in background mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better u create a Function group, inside it create Two separate Function modules.&lt;/P&gt;&lt;P&gt;There two FMs can talk to each other ( thru the common top include of the Function group). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U call the FM1  in the first prog - &lt;/P&gt;&lt;P&gt;CALL FUNCTION Z_FM_1 exporting L_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and from the seond prog where u need the data call the second FM&lt;/P&gt;&lt;P&gt;CALL FUNCTION Z_FM_1 importing L_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will definitely solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;SKC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763772#M643513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variables Between Programs in Background Mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763773#M643514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the solution.. We can Export/Import to the Shared Buffer instead of the normal way i.e. memory id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those who want a good example... Pls. refer to this thread:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="183318"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou all for your replies...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 14:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-variables-between-programs-in-background-mode/m-p/2763773#M643514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T14:11:52Z</dc:date>
    </item>
  </channel>
</rss>

