<?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: tables statement in procedure. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258074#M1829929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in form_f, u have declared table proj so it becomes local declaration so outside this form proj-pspnr will consider the declaration from report ytest_table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Local y declared variables have exisance within same orm they have no existence outside this form.&lt;/P&gt;&lt;P&gt;But in ur case, outside form form_f, it has already taken declaration from report ytest_table1 and hence the value 12345678 for proj-pspnr will remain at break3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2014 07:49:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-10T07:49:42Z</dc:date>
    <item>
      <title>tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258070#M1829925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;today i get a program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ytest_table1.&lt;/P&gt;&lt;P&gt;tables:proj.&lt;/P&gt;&lt;P&gt;form frm_f1.&lt;/P&gt;&lt;P&gt; proj-pspnr = '12345678'. &lt;/P&gt;&lt;P&gt;endform.&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;report ytest_table.&lt;/P&gt;&lt;P&gt;form frm_f.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; tables:proj.&lt;/P&gt;&lt;P&gt;&amp;nbsp; if proj is initial.&lt;/P&gt;&lt;P&gt;&amp;nbsp; endif.&amp;nbsp; "breakpoint1&lt;/P&gt;&lt;P&gt;&amp;nbsp; clear proj-pspnr.&lt;/P&gt;&lt;P&gt;&amp;nbsp; if proj is initial.&lt;/P&gt;&lt;P&gt;&amp;nbsp; endif.&amp;nbsp; "breakpoint2&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp; perform frm_f1 in program ytest_table1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; perform frm_f.&lt;/P&gt;&lt;P&gt; write: 1. "breakpoint3&lt;/P&gt;&lt;P&gt;when i run ytest_table and found:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt;the value is 12345678 when break1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;the value is initial when break2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;the value is 12345678 when break&lt;/SPAN&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break 1 and break 2 i can understand that is a table work area,&lt;/P&gt;&lt;P&gt;but why break 3 is still 12345678?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258070#M1829925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T07:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258071#M1829926</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;please read the follwing note from the keyword help for TABLES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table work areas declared with &lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/SPAN&gt; can be declared in subroutines and function modules. However, this is not recommended. A table work area declared in a &lt;A style="color: #505050;"&gt;procedure&lt;/A&gt; is not local but belongs to the context of a &lt;A style="color: #505050;"&gt;framework program&lt;/A&gt;. The table work area can be viewed starting from the declaration in the framework program and lives as long as the framework program. In contrast to normal program-global data, the content of the table work areas declared in subroutines and function modules is stored temporarily when these subroutines and function modules are called. Value assignments that were made during runtime of the procedure are preserved until the procedure is completed. &lt;STRONG&gt;When exiting the procedure, the table work areas are filled with the contents that they contained when the procedure was called.&lt;/STRONG&gt; Table work areas declared in procedures behave like global data to which the statement &lt;A&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;LOCAL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/A&gt; is applied in the procedure. &lt;/EM&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258071#M1829926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T07:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258072#M1829927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi hua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in form frm_f, u have declared table proj so it becomes local declaration for the program ytest_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So once it comes out of this fm, proj-pspnr will have the values from ytest_table1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258072#M1829927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T07:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258073#M1829928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but &lt;SPAN style="color: #333333; font-size: 12px;"&gt;in form frm_f, it get the global value 12345678&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258073#M1829928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T07:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258074#M1829929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in form_f, u have declared table proj so it becomes local declaration so outside this form proj-pspnr will consider the declaration from report ytest_table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Local y declared variables have exisance within same orm they have no existence outside this form.&lt;/P&gt;&lt;P&gt;But in ur case, outside form form_f, it has already taken declaration from report ytest_table1 and hence the value 12345678 for proj-pspnr will remain at break3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258074#M1829929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T07:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258075#M1829930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Klaus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; i already reading sap f1 for tables,&amp;nbsp; and also know its not recommed in procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for break 1, it get the global value.&lt;/P&gt;&lt;P&gt;and for break 2 it clear the global value.&lt;/P&gt;&lt;P&gt;and for break 3 it still is 12345678.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the form &lt;SPAN style="color: #333333; font-size: 12px;"&gt; frm_f.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;if the proj is local , it should not&amp;nbsp; get the global&lt;/SPAN&gt; value for break 1 and if the proj is global,it should not get the value for break 3 because it already clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 07:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258075#M1829930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T07:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258076#M1829931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sachin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; im not clear for this :&lt;/P&gt;&lt;P&gt;in form_f the proj is local or global?&lt;/P&gt;&lt;P&gt;if local ,it shouldnt get the global&amp;nbsp; value, and if global , it should clear the global value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258076#M1829931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T08:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258077#M1829932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;declaring with tables dosent clear the work area, it is just the declaration.&lt;/P&gt;&lt;P&gt;While in case of "data: lv_matnr type matnr" means a delcaration with clearing data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258077#M1829932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T08:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258078#M1829933</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;&lt;EM&gt;... A table work area declared in a &lt;A href="https://community.sap.com/" style="color: #505050;"&gt;procedure&lt;/A&gt; &lt;STRONG&gt;is not local&lt;/STRONG&gt; ... When exiting the procedure, the table work areas are filled with the contents that they contained when the procedure was called. ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this means, that TABLES is always a global definition and the value gets reset to th value at call when leaving the form. That would perfectly describe the behaviour you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table work areas declared with &lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/SPAN&gt; can be declared in subroutines and function modules. However, this is not recommended.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you shouldn't do that anyway.&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;Klaus &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258078#M1829933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T08:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: tables statement in procedure.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258079#M1829934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; there is a statement clear proj-pspnr between break 1 and break 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 08:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-in-procedure/m-p/10258079#M1829934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-10T08:30:58Z</dc:date>
    </item>
  </channel>
</rss>

