<?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 sharing variables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963627#M946800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I share an internal table within a package with other&lt;/P&gt;&lt;P&gt;reports. When excecuting report 3 variables of report 1&lt;/P&gt;&lt;P&gt;must be available with its values. How is that possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ertas ilhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 14:15:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T14:15:07Z</dc:date>
    <item>
      <title>sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963627#M946800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I share an internal table within a package with other&lt;/P&gt;&lt;P&gt;reports. When excecuting report 3 variables of report 1&lt;/P&gt;&lt;P&gt;must be available with its values. How is that possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ertas ilhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963627#M946800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963628#M946801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ilhan,&lt;/P&gt;&lt;P&gt;   YOu must use the Export and Import to memory ids.&lt;/P&gt;&lt;P&gt;Check the example programs:&lt;/P&gt;&lt;P&gt;DEMO_DATA_EXT_CLUSTER_EXPORT&lt;/P&gt;&lt;P&gt;DEMO_DATA_EXT_CLUSTER_EXPORT_D&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;DEMO_DATA_EXT_CLUSTER_IMPORT   Reading Data Objects from Memory&lt;/P&gt;&lt;P&gt;DEMO_DATA_EXT_CLUSTER_IMPORT_2 Creating a Directory of a Data Cluster&lt;/P&gt;&lt;P&gt;DEMO_DATA_EXT_CLUSTER_IMPORT_D Reading Data Objects from Cluster Databases&lt;/P&gt;&lt;P&gt;DEMO_DATA_EXT_CLUSTER_IMPORT2  Program DEMO_DATA_EXT_CLUSTER_IMPORT2&lt;/P&gt;&lt;P&gt;DEMO_DATA_EXT_CLUSTER_IMPORT3  Program DEMO_DATA_EXT_CLUSTER_IMPORT3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963628#M946801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963629#M946802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try "begin of common part..." .... "end of common part." keyword for sharing the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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/db97c435c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db97c435c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963629#M946802</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2008-06-12T14:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963630#M946803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a GET and SET FM. Create an FM that will set the VALUE and then get the Values via GET FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saket Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963630#M946803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963631#M946804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;..... can you pls give me an little code example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ertas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963631#M946804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963632#M946805</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;first of all, internal tables are not contained in a package, the program is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now according to your problem, two solutions are possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If your report1 and report2 are going to run in the same sap session, then you can use export to memory id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; syntax:  export var1 to memory id 'VARIABLE1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the second report, use this to get the value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT var1 TO var4 FROM MEMORY ID 'VARIABLE1'.&lt;/P&gt;&lt;P&gt;Note that if the sap session changes, the value will be lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Using this method , you can preserve data across sessions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT tab = var1&lt;/P&gt;&lt;P&gt;                TO DATABASE indx(xy)&lt;/P&gt;&lt;P&gt;                CLIENT sy-mandt&lt;/P&gt;&lt;P&gt;                ID 'VARIABLE1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT tab TO var1&lt;/P&gt;&lt;P&gt;      FROM DATABASE indx(xy)&lt;/P&gt;&lt;P&gt;      CLIENT sy-mandt&lt;/P&gt;&lt;P&gt;      ID 'VARIABLE1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will make the data available across sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jun 12, 2008 11:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963632#M946805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963633#M946806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when excecuting report 3 variables of report 1&lt;/P&gt;&lt;P&gt;must be available with its values without &lt;/P&gt;&lt;P&gt;executing report 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible with the above mentioned methods ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ertas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:33:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963633#M946806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963634#M946807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will explain for one variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a FM  say ZSETFM. It will have an impotring parameter as IM_FLAG. In the Top include of this FG&lt;/P&gt;&lt;P&gt;declare a variable IG_FLAG. Code in the ZSETFM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IG_FLAG  = IM_FLAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a ZGETFM in the Same FG as ZSETFM. It will have an exporting parameter EX_FLAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX_FLAG = IG_FLAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now call the ZSETFM and Pass the Variable and call the FM ZGETFM to get the value that you had passed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963634#M946807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963635#M946808</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 can't  set any value in may case for FM  ZSETFM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the internal table is populated normally &lt;/P&gt;&lt;P&gt;after the report1 is executed. I need a way&lt;/P&gt;&lt;P&gt;to run report1 in order to fill the internal table &lt;/P&gt;&lt;P&gt;and pass it finally to it to report 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ertas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963635#M946808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: sharing variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963636#M946809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Shared Memory Object..&lt;/P&gt;&lt;P&gt;Here is the link with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900e3d9d-559e-2910-9dae-b132157a220f" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900e3d9d-559e-2910-9dae-b132157a220f&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 14:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sharing-variables/m-p/3963636#M946809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T14:49:02Z</dc:date>
    </item>
  </channel>
</rss>

