<?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: Global Data Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982156#M1802127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin Thombre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abap executes programs in line by line(like interpreter). So, according to first write statement, it shows the number '1234567890 &lt;/P&gt;&lt;P&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;after&lt;/SPAN&gt; that it comes to the execution of &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;perform&lt;/SPAN&gt; statement. Whenever a perform statement executes its call the subroutine to be executed. So in &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;subroutine&lt;/SPAN&gt;, it's giving the output&amp;nbsp; '&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abcde&lt;/SPAN&gt;. It's come out of the routine and executes the next write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Suneel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2014 17:30:21 GMT</pubDate>
    <dc:creator>suneel_uggina</dc:creator>
    <dc:date>2014-01-17T17:30:21Z</dc:date>
    <item>
      <title>Global Data Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982150#M1802121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below example &amp;amp; highlighted in Red is the output of the below program. In first write statement 1234567890 is displayed then write statement below datatest displays ABCDE, I am confused why 1234567890 again is displayed becuase in the 3rd write statment ABDCEFGHJK is written. I am looking ABCDE.... to be displayed twice not sure why numbers are dislayed twice, can some one please expalin me this ? Thansk in advance for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;TYPES word(10) TYPE c.&lt;BR /&gt;DATA&amp;nbsp; text TYPE word.&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;STRONG&gt;&lt;SPAN lang="DE" style="font-family: 'Courier New';"&gt;text = '1234567890'.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&amp;nbsp; WRITE / text.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;PERFORM datatest.&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;STRONG style="font-family: 'Courier New';"&gt;WRITE / text.&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;STRONG&gt;&lt;SPAN lang="DE" style="font-family: 'Courier New';"&gt;FORM datatest.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;SPAN lang="DE" style="font-family: 'Courier New';"&gt;&amp;nbsp; TYPES word(5) TYPE c.&lt;BR /&gt;&amp;nbsp; DATA&amp;nbsp; text TYPE word.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;SPAN lang="DE" style="font-family: 'Courier New';"&gt;&amp;nbsp; text = 'ABCDEFGHJK'.&lt;/SPAN&gt; &lt;SPAN lang="DE" style="font-family: 'Courier New';"&gt;WRITE / text.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;BR /&gt;ENDFORM.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;the following is displayed:&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;SPAN class="UserInput5"&gt;1234567890&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;SPAN class="UserInput5"&gt;ABCDE&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;STRONG style="color: #ff0000;"&gt;1234567890&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt; &lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;SPAN style="color: #575757; font-weight: normal;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="NoteParagraph48"&gt;&lt;SPAN style="color: #575757; font-weight: normal;"&gt;Sachin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982150#M1802121</guid>
      <dc:creator>sachin_thombre</dc:creator>
      <dc:date>2014-01-15T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Global Data Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982151#M1802122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = &lt;STRONG style=": ; color: #333333; font-size: 12px; font-style: inherit; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;SPAN lang="DE" style="font-weight: inherit; font-style: inherit;"&gt;'ABCDEFGHJK'&lt;/SPAN&gt;&lt;/STRONG&gt; has scope only inside form dataset.&lt;/P&gt;&lt;P&gt;So, once control comes out of DATASET, text = &lt;STRONG style=": ; color: #333333; font-size: 12px; font-style: inherit; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;SPAN lang="DE" style="font-weight: inherit; font-style: inherit;"&gt;'ABCDEFGHJK'&lt;/SPAN&gt;&lt;/STRONG&gt; is no more valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Shyam Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 18:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982151#M1802122</guid>
      <dc:creator>former_member207661</dc:creator>
      <dc:date>2014-01-15T18:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Global Data Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982152#M1802123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The scope of the local variables is limited to the subroutines, forms, class methods,etc.&lt;/P&gt;&lt;P&gt;1st the number is printed as expected.&lt;/P&gt;&lt;P&gt;Then because of the form the alphabets are printed.&lt;/P&gt;&lt;P&gt;Then again the control comes back to the main program and proceeds with the code written after the perform&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 04:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982152#M1802123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-16T04:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Global Data Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982153#M1802124</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;The first data declaration acts as a global vairable and second data declaration inside the subroutine is local to the subrotuine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so obviously once the control comes out of subroutine the variable will have the value '1234567890', that is the reason you can see 3rd time '123..' isntead of 'ABCD..'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are expecting 3rd time also ABCD then you have use the same global variable in the subroutine signature instead of declaring it locally again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Logic:&lt;/STRONG&gt;&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;SPAN class="L0S52"&gt;TYPES word&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;10&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;DATA&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;text &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;word&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;text &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'1234567890'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;/ &lt;SPAN class="L0S52"&gt;text&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;PERFORM &lt;/SPAN&gt;datatest &lt;SPAN class="L0S52"&gt;CHANGING &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;text&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;/ &lt;SPAN class="L0S52"&gt;text&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;FORM &lt;/SPAN&gt;datatest &lt;SPAN class="L0S52"&gt;CHANGING &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;text &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;word&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;text &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ABCDEFGHJK'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;/ &lt;SPAN class="L0S52"&gt;text&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;ENDFORM&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Hope this is helpful.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Naresh&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 05:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982153#M1802124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-16T05:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Global Data Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982154#M1802125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have declared &lt;STRONG style="color: #333333; font-size: 11.818181991577148px; font-style: inherit; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;SPAN lang="DE" style="font-weight: inherit; font-style: inherit;"&gt;text&lt;/SPAN&gt;&lt;/STRONG&gt; twice,&lt;/P&gt;&lt;P&gt;No need to declare &lt;STRONG style="color: #333333; font-size: 11.818181991577148px; font-style: inherit; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;SPAN lang="DE" style="font-weight: inherit; font-style: inherit;"&gt;text&lt;/SPAN&gt;&lt;/STRONG&gt; inside FORM....ENDFORM, &lt;/P&gt;&lt;P&gt;As you have declared &lt;STRONG style="color: #333333; font-size: 11.818181991577148px; font-style: inherit; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;SPAN lang="DE" style="font-weight: inherit; font-style: inherit;"&gt;text&lt;/SPAN&gt;&lt;/STRONG&gt; inside FORM....ENDFORM, this &lt;STRONG&gt;text&lt;/STRONG&gt; is local for &lt;SPAN style="color: #333333; font-size: 11.818181991577148px;"&gt;subroutine.&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.818181991577148px; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Delete that &lt;STRONG&gt;text&lt;/STRONG&gt; declaration part from inside FORM....ENDFORM and execute, u'll get the your result.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.818181991577148px; color: #333333;"&gt;&lt;SPAN lang="DE" style="font-weight: inherit; font-style: inherit; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.818181991577148px; color: #333333;"&gt;&lt;SPAN lang="DE" style="font-weight: inherit; font-style: inherit; font-family: 'Courier New';"&gt;Your subroutine should be like this..&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.818181991577148px; color: #333333;"&gt;&lt;SPAN lang="DE" style="font-weight: inherit; font-style: inherit; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;FORM &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;datatest&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPES &lt;/SPAN&gt;word&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;5&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;text &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ABCDEFGHJK'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;/ &lt;SPAN class="L0S52"&gt;text&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN class="L0S52"&gt;ENDFORM&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 06:05:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982154#M1802125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-16T06:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Global Data Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982155#M1802126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All for your replies...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 16:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982155#M1802126</guid>
      <dc:creator>sachin_thombre</dc:creator>
      <dc:date>2014-01-17T16:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Global Data Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982156#M1802127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin Thombre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abap executes programs in line by line(like interpreter). So, according to first write statement, it shows the number '1234567890 &lt;/P&gt;&lt;P&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;after&lt;/SPAN&gt; that it comes to the execution of &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;perform&lt;/SPAN&gt; statement. Whenever a perform statement executes its call the subroutine to be executed. So in &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;subroutine&lt;/SPAN&gt;, it's giving the output&amp;nbsp; '&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;abcde&lt;/SPAN&gt;. It's come out of the routine and executes the next write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Suneel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 17:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982156#M1802127</guid>
      <dc:creator>suneel_uggina</dc:creator>
      <dc:date>2014-01-17T17:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Global Data Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982157#M1802128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sachin,&lt;/P&gt;&lt;P&gt;The first Write statement executes with the value '1234567890', which is global.&lt;/P&gt;&lt;P&gt;The second Write statement inside the perform executes with the value 'ABCDEFGHIJK', which is local to that particular form.&lt;/P&gt;&lt;P&gt;The third Write statement executes with the value '1234567890', which is again from global value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 19:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-data-object/m-p/9982157#M1802128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-17T19:09:09Z</dc:date>
    </item>
  </channel>
</rss>

