<?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: Script : global variable value is not visible in form when call from std pr in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416068#M200130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are already having that option to export that value to memory and call again through a subroutine but we were looking out for some solution apart from this b'cuz we have a number of global variables like that and exporting all of them and again getting it back might not be a good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2006 07:13:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-06T07:13:03Z</dc:date>
    <item>
      <title>Script : global variable value is not visible in form when call from std pr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416063#M200125</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;We have declared certain gloabl variables in our print program(custom) which is being called in the layout(custom layout). In this case it is working fine but when we are trying to run it through standard SAP transaction(VL02N) by assigning the same print prog and layout in NACE we are not able to see the values of those global variables in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help us out in solving this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 06:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416063#M200125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T06:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script : global variable value is not visible in form when call from std pr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416064#M200126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u  declare  variable  in custom driver  programm so  i  show  value   when u attech this  programm in nace.&lt;/P&gt;&lt;P&gt;but  when u attech standared  programm to nace  than  it  does  not  show  because  it  is  not  dclare  in standared programm.&lt;/P&gt;&lt;P&gt;for  this  u  can  use perform in form  to dispaly  ur  value....&lt;/P&gt;&lt;P&gt;:PERFORM get_date IN PROGRAM zreport &lt;/P&gt;&lt;P&gt;/:USING &amp;amp;SALESORDER&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;S_DATE&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can print S_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write this code in the new ABAP program would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zreport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_date TABLES in_tab STRUCTURE ITCSY &lt;/P&gt;&lt;P&gt;out_tab STRUCTURE ITCSY .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE in_tab INDEX 1.&lt;/P&gt;&lt;P&gt;SELECT some_date FROM ztab &lt;/P&gt;&lt;P&gt;WHERE salesorder = in_tab-value.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;READ TABLE out-tab INDEX 1.&lt;/P&gt;&lt;P&gt;MOVE ztab-somedate TO out_tab-value&lt;/P&gt;&lt;P&gt;MODIFY out_tab INDEX 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 07:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416064#M200126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T07:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script : global variable value is not visible in form when call from std pr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416065#M200127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the print program is called from the standard program it calls a specific subroutine of your print program. So your other variables declared in the program will NOT be in scope at all. That is why it is not visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 07:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416065#M200127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T07:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script : global variable value is not visible in form when call from std pr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416066#M200128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;Put the breakpoint in your program in which you declared the global variable.See on executing the transaction VL02N,this program is caled or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 07:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416066#M200128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T07:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script : global variable value is not visible in form when call from std pr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416067#M200129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Yes u are right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This happens,&lt;/P&gt;&lt;P&gt;   bcos, &lt;/P&gt;&lt;P&gt;  when VL02N is used,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the MAIN PROGRAM is different,&lt;/P&gt;&lt;P&gt;  (not our Z Program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Hence, our variables (global for our Z Program)&lt;/P&gt;&lt;P&gt;   but not global for VL02N,&lt;/P&gt;&lt;P&gt;   do not get visible in layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. For such purposes,&lt;/P&gt;&lt;P&gt;  u may have to use the concept of&lt;/P&gt;&lt;P&gt;  EXTERNAL SUBROUTINES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. using &lt;/P&gt;&lt;P&gt;  PERFORM myform IN ZPROG&lt;/P&gt;&lt;P&gt;  using  a&lt;/P&gt;&lt;P&gt;  using b&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 07:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416067#M200129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T07:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script : global variable value is not visible in form when call from std pr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416068#M200130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are already having that option to export that value to memory and call again through a subroutine but we were looking out for some solution apart from this b'cuz we have a number of global variables like that and exporting all of them and again getting it back might not be a good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 07:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416068#M200130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T07:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script : global variable value is not visible in form when call from std pr</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416069#M200131</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 need to call external subroutines to populate those global variables, in your case they are not populating at all.so try to use performs and fill them then you can see them in your output,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 07:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-global-variable-value-is-not-visible-in-form-when-call-from-std-pr/m-p/1416069#M200131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T07:15:05Z</dc:date>
    </item>
  </channel>
</rss>

