<?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 Global variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/3411287#M819268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have define a global variable in top include as&lt;/P&gt;&lt;P&gt;g_okcode type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code = 'AUDIT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_okcode1 = ok_code then am calling the FM&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EDI_DOCUMENTS_LIST_ONE_SEGMENT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      I_EDIDC       = choose_edidc&lt;/P&gt;&lt;P&gt;*Here my requirement is to retain the values in the global variable in FM to check. &lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Padmasri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 18, 2008 10:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2008 15:48:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-18T15:48:09Z</dc:date>
    <item>
      <title>Global variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/3411287#M819268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have define a global variable in top include as&lt;/P&gt;&lt;P&gt;g_okcode type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code = 'AUDIT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_okcode1 = ok_code then am calling the FM&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EDI_DOCUMENTS_LIST_ONE_SEGMENT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      I_EDIDC       = choose_edidc&lt;/P&gt;&lt;P&gt;*Here my requirement is to retain the values in the global variable in FM to check. &lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Padmasri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 18, 2008 10:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 15:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/3411287#M819268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T15:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/3411288#M819269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that FM standard? I'm in 4.6C and we don't have it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If is not standard, just do the following in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data ls_text(40).
field-symbols &amp;lt;fs&amp;gt; type sy-ucomm.

ls_text = 'NAME_OF_YOUR_PROGRAM(g_okcode)'.

assign (ls_text) to &amp;lt;fs&amp;gt;.

if sy-subrc = 0
if &amp;lt;fs&amp;gt; = 'whatever you want to validate'
...
endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramiro Escamilla on Feb 18, 2008 5:44 PM&lt;/P&gt;&lt;P&gt;fixed not enough chars in ls_text&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 16:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/3411288#M819269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T16:10:46Z</dc:date>
    </item>
  </channel>
</rss>

