<?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 Variable (?) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795805#M40440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two things you need to check:&lt;/P&gt;&lt;P&gt;a) How many places have you declared that variable ?&lt;/P&gt;&lt;P&gt;b) Have you declared this in Z*TOP , as mentioned by John.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have declared it in the TOP and if you have only a single global variable, then there would be no reason for it to change(at least no obvious reasons).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Dec 2004 07:37:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-12-07T07:37:15Z</dc:date>
    <item>
      <title>Global Variable (?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795800#M40435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written code in user-exit for MB31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPLIPW1_001 and EXIT_SAPLIPW1_008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPLIPW1_001 is getting fired first when user clicks "Create Serial Number automatically" button. If this is code is executed I don't want to execute  EXIT_SAPLIPW1_008. So now I want to keep some global flag variable (?) and check the status. If the status is updated then I will not execute the code in EXIT_SAPLIPW1_008. If the status is not updated i.e. user has not clicked "Create Serial Number automatically" button then I want to execute EXIT_SAPLIPW1_008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji Viswanath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2004 15:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795800#M40435</guid>
      <dc:creator>balaji_viswanath</dc:creator>
      <dc:date>2004-12-06T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Global Variable (?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795801#M40436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the first screen of the exit EXIT_SAPLIPW1_001 goto global data and choose include ZXQSMTOP which will be created the first time you click. Any data defined in this include will be global data, so define a switch here which will be set in EXIT_SAPLIPW1_001. You can then check in exit EXIT_SAPLIPW1_008 if the switch has been set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2004 15:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795801#M40436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-06T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Global Variable (?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795802#M40437</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 created include ZXQSMTOP and having a variable (l_flag) there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In  EXIT_SAPLIPW1_001 I am updating the variable (i.e. l_flag = 'T')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In EXIT_SAPLIPW1_008 also I include ZXQSMTOP and checking for the l_flag value... but in l_flag there is no value. But what I am expecting is 'T'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji Viswanath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 06:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795802#M40437</guid>
      <dc:creator>balaji_viswanath</dc:creator>
      <dc:date>2004-12-07T06:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Global Variable (?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795803#M40438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you clicked the button 'Create Serial Numbers Automatically', check the value for l_flag. &lt;/P&gt;&lt;P&gt;a) Does it change to 'T' ?  &lt;/P&gt;&lt;P&gt;b) Are there any places where you are clearing this value ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User-Exits can be a little troublesome at times, and in most cases, frustrating. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugging patiently will yield good results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 06:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795803#M40438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-07T06:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Global Variable (?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795804#M40439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, initially it's getting changed to 'T' but immeditely another exit is getting fired but that time value is ' '. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. variable is getting initlized. Nowhere else I am changing the value. Why variable is getting initlized? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or any work-around is there to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji Viswanath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 07:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795804#M40439</guid>
      <dc:creator>balaji_viswanath</dc:creator>
      <dc:date>2004-12-07T07:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Global Variable (?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795805#M40440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two things you need to check:&lt;/P&gt;&lt;P&gt;a) How many places have you declared that variable ?&lt;/P&gt;&lt;P&gt;b) Have you declared this in Z*TOP , as mentioned by John.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have declared it in the TOP and if you have only a single global variable, then there would be no reason for it to change(at least no obvious reasons).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 07:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795805#M40440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-07T07:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Global Variable (?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795806#M40441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have declared that variable in only one place i.e. in ZXQSMTOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am including ZXQSMTOP in both user-exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first in EXIT_SAPLIPW1_001 I have updating the value of l_flag to 'T' but in EXIT_SAPLIPW1_008 it's becoming ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji Viswanath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 08:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795806#M40441</guid>
      <dc:creator>balaji_viswanath</dc:creator>
      <dc:date>2004-12-07T08:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Global Variable (?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795807#M40442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should NOT include the ZXQSMTOP in your user exit! It is already included in the function pool to which both user exits belong. Just declare your variable in the include and then set the variable in the first user exit and check it in the second one!&lt;/P&gt;&lt;P&gt;&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 08:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795807#M40442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-07T08:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Global Variable (?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795808#M40443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot John, it's working now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji. V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 09:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-variable/m-p/795808#M40443</guid>
      <dc:creator>balaji_viswanath</dc:creator>
      <dc:date>2004-12-07T09:06:49Z</dc:date>
    </item>
  </channel>
</rss>

