<?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: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249284#M1212793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the system variable SY-TABIX. This will give the current record number in the loop irrespective of whether you are using a control-break or not. Only when you are performing a READ TABLE within the loop, then SY-TABIX will be set with the record read from the other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, move the SY-TABIX value to a variable in the AT END OF...ENDAT control break. It will give you the position of the last record to be processed for the vendor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2009 07:07:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-20T07:07:43Z</dc:date>
    <item>
      <title>ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249282#M1212791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Guru's,&lt;/P&gt;&lt;P&gt;                 I have a requirement where i have to move the values to variable when control break (AT END OF) process. So i want to move the values according to the end of Vendor so for that  i want to know is there any sy-index available which reflects changes when Control break (AT end of) process.&lt;/P&gt;&lt;P&gt;LIKE Sy-subrc = 0 when select statement fetches record or sy-tabix is like counter for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to get reply soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu Rangappa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249282#M1212791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249283#M1212792</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;SY_TABIX will show the record position in the internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249283#M1212792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249284#M1212793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the system variable SY-TABIX. This will give the current record number in the loop irrespective of whether you are using a control-break or not. Only when you are performing a READ TABLE within the loop, then SY-TABIX will be set with the record read from the other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, move the SY-TABIX value to a variable in the AT END OF...ENDAT control break. It will give you the position of the last record to be processed for the vendor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249284#M1212793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249285#M1212794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;use sy-tabix &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249285#M1212794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249286#M1212795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tharani,&lt;/P&gt;&lt;P&gt;                  Is there any System field available which counts how many time control break statement process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249286#M1212795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249287#M1212796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think there is a system variable available to count that. You can declare a variable yourself and increment it within the AT END OF...ENDAT statement. This will give you the total number of times the control break is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: W_COUNTER TYPE I.

LOOP AT T_TABLE INTO FS_WORKAREA.

AT END OF LIFNR.

W_COUNTER = W_COUNTER + 1.

ENDAT.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249287#M1212796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249288#M1212797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there is no system field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use a counter inside the AT NEW.&lt;/P&gt;&lt;P&gt;Every time AT NEW is triggered increment the Counter by 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;AT NEW FEILD.&lt;/P&gt;&lt;P&gt;ADD 1 TO COUNTER.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249288#M1212797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249289#M1212798</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;Put a counter in the control-break&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: count like I.

count = 0.
AT NEW itab-fname.
      count = count + 1.
...
ENDAT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249289#M1212798</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-02-20T07:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249290#M1212799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Avinash,&lt;/P&gt;&lt;P&gt;                   I don't want to move the value from my internal table. My requirement is like that  there are 20 vendor available for a single matarial  &amp;amp; for every material we have to check the quality(like fe, sio2 ).&lt;/P&gt;&lt;P&gt;so at end of every vendor for a same material I have to move the particular value for calculation purpose.&lt;/P&gt;&lt;P&gt;So for that I have to check the counter for contol break.&lt;/P&gt;&lt;P&gt;Is there any sy-field available which counts the control break statement process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249290#M1212799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249291#M1212800</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;There is no system Fields for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your requirement can be done with 'AT NEW' and 'AT END' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this sample example,&lt;/P&gt;&lt;P&gt;loop at otab.&lt;/P&gt;&lt;P&gt;    at new module.&lt;/P&gt;&lt;P&gt;      move otab-module to otab2-module.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      at END OF effort.&lt;/P&gt;&lt;P&gt;      sum.               "Do your calculations here&lt;/P&gt;&lt;P&gt;      move otab-count to otab2-count.&lt;/P&gt;&lt;P&gt;      append otab2.&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249291#M1212800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249292#M1212801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 08:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-sy-index-reflect-changes-when-control-break-statement-process/m-p/5249292#M1212801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T08:58:06Z</dc:date>
    </item>
  </channel>
</rss>

