<?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: Access a variable ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036385#M85198</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;You can do a global assign if the variable is a global variable in your program i.e. declared in TOP include or at the top in a report program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For example,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; FIELD-SYMBOLS: &amp;lt;fs_value&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ASSIGN ('(&amp;lt;your program name&amp;gt;)&amp;lt;your variable name&amp;gt;') &lt;/P&gt;&lt;P&gt; TO &amp;lt;fs_value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2005 11:32:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-08T11:32:31Z</dc:date>
    <item>
      <title>Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036383#M85196</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;My program is calling a function module.&lt;/P&gt;&lt;P&gt;Is there any way that i can access a variable of program &lt;/P&gt;&lt;P&gt;in function module without passing it in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036383#M85196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T11:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036384#M85197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the export to memory and/or the set parameter statements to pass values to memory before calling the fm. In the fm you need to make sure the value will be read from memory using import from memory and/or get parameter statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:31:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036384#M85197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T11:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036385#M85198</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;You can do a global assign if the variable is a global variable in your program i.e. declared in TOP include or at the top in a report program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For example,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; FIELD-SYMBOLS: &amp;lt;fs_value&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ASSIGN ('(&amp;lt;your program name&amp;gt;)&amp;lt;your variable name&amp;gt;') &lt;/P&gt;&lt;P&gt; TO &amp;lt;fs_value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036385#M85198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T11:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036386#M85199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siggi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually its a standard program and it is regarding implementing a user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036386#M85199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T11:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036387#M85200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using memory id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1. EXPORT obj1 ... objn TO MEMORY.                             &lt;/P&gt;&lt;P&gt; 2. EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.          &lt;/P&gt;&lt;P&gt; 3. EXPORT obj1 ... objn TO DATASET dsn(ar) ID key.             &lt;/P&gt;&lt;P&gt; 4. EXPORT obj1 ... objn TO SHARED BUFFER dbtab(ar) ID key.     &lt;/P&gt;&lt;P&gt;                                                                &lt;/P&gt;&lt;P&gt; EXPORT obj1 ... objn TO MEMORY.                                                                                &lt;/P&gt;&lt;P&gt;Additions:                                                                                &lt;/P&gt;&lt;P&gt;1. ... FROM g (for each field to be exported)                  &lt;/P&gt;&lt;P&gt; 2. ... ID key                                                                                &lt;/P&gt;&lt;P&gt;Exports the objects obj1 ... objn as a data cluster to ABAP/4  &lt;/P&gt;&lt;P&gt; memory.                                                        &lt;/P&gt;&lt;P&gt; If you call a transaction, report or dialog module (with CALL  &lt;/P&gt;&lt;P&gt; TRANSACTION, SUBMIT or CALL DIALOG), the contents of ABAP/4    &lt;/P&gt;&lt;P&gt; memory are retained, even across several levels. The called    &lt;/P&gt;&lt;P&gt; transaction can then retrieve the data from there using IMPORT &lt;/P&gt;&lt;P&gt; ... FROM MEMORY. Each new EXPORT ... TO MEMORY statement       &lt;/P&gt;&lt;P&gt; overwrites any old data in ABAP/4 memory - no data is appended.&lt;/P&gt;&lt;P&gt;If the processing leaves the deepest level of the call chain,  &lt;/P&gt;&lt;P&gt;the ABAP/4 memory is released.                                                                                &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to reward points, if answers helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036387#M85200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T11:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036388#M85201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at this weblog.&lt;/P&gt;&lt;P&gt;/people/brad.williams/blog/2005/04/25/userexits--how-do-i-access-inaccessible-data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036388#M85201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T11:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036389#M85202</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;Try to use this trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the program of function group is SALPZ.... and field1 the field you want to read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FIELD(30) VALUE '(SAPLZ....)FIELD1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_FIELD&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSING (FIELD) TO &amp;lt;FS_FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 11:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036389#M85202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T11:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036390#M85203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Svetlin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was a nice weblog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain the issue in more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program actually is calling FM in a form and that it is the local variable of the form which i need in FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 12:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036390#M85203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T12:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036391#M85204</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 think you can't externally read it, because the system places the variable in memory only while it runs the routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I believe you should modify the code of routine to export the data by IMPORT/EXPORT command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 12:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036391#M85204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T12:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036392#M85205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can. Try the following piece of code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data field_name(30) type c.&lt;/P&gt;&lt;P&gt;field_name = '(MP016800)EE_BENEFIT_DATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;MP016800 is the source program which contains the declaration for the field you need. EE_BENEFIT_DATA is the structure defined in that program which contains the string of data I need. I know that the data resides in the first 8 characters of the structure&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign (field_name) to &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;move &amp;lt;fs1&amp;gt; to l_ee.&lt;/P&gt;&lt;P&gt;l_pernr = l_ee(8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do something similar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 21:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036392#M85205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T21:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Access a variable ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036393#M85206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the program where you are calling that function module export the data to a memory id by below command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export variable to memory id 'MEMLOCATION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module just import that data by below command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import variable from memory id 'MEMLOCATION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here variable should be of same type in both program and function module and also the memory id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2005 22:15:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-a-variable/m-p/1036393#M85206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-08T22:15:38Z</dc:date>
    </item>
  </channel>
</rss>

