<?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: Problem with control break statement...? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134513#M1190104</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 LAND1 field should be precceding field of REGIO in itab. Now you can group the data LAND wise and Region wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Sort Itab by LAND1 REGIO.
Loop at itab.

AT new Regio.

ENDAT.

AT END of Regio.

ENDAT.


ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Feb 2009 07:48:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-07T07:48:05Z</dc:date>
    <item>
      <title>Problem with control break statement...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134512#M1190103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;                 I am having some problem with control break statement..&lt;/P&gt;&lt;P&gt;My requirement is as follows:&lt;/P&gt;&lt;P&gt;there is a select option on selection screen for state&lt;/P&gt;&lt;P&gt;Now suppose field REGIO = 34.&lt;/P&gt;&lt;P&gt;This 34 can be for a sate in india as well in any other&lt;/P&gt;&lt;P&gt;but the difference is there code which is LAND1&lt;/P&gt;&lt;P&gt;i am doing this very well&lt;/P&gt;&lt;P&gt;But now my problem is that&lt;/P&gt;&lt;P&gt;I have to do grouping BaseD on regio and land1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134512#M1190103</guid>
      <dc:creator>aarif_baig</dc:creator>
      <dc:date>2009-02-07T07:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with control break statement...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134513#M1190104</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 LAND1 field should be precceding field of REGIO in itab. Now you can group the data LAND wise and Region wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Sort Itab by LAND1 REGIO.
Loop at itab.

AT new Regio.

ENDAT.

AT END of Regio.

ENDAT.


ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134513#M1190104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T07:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with control break statement...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134514#M1190105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using control breaks, it is very important to maintain the field hierarchy. For your requirement, since the region code is dependent on LAND1 field, LAND1 field should be declared as the first field in the table/structure which should be followed by REGIO. When you want to use a control break on REGIO, the logic would check for a combination of LAND1 and REGIO which results in a unique combination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134514#M1190105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T07:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with control break statement...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134515#M1190106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Before going for the control break statements you have sort u r internal table..this is a prerequisite to use control break statement..like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check your internal table structure also..&lt;/P&gt;&lt;P&gt;when we use control events,suppose if use connid the fields before the connid also take it as key fields.based on the the records will be grouped..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by field1 ...field n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt; sort itab by carrid connid.&lt;/P&gt;&lt;P&gt;loop at itab into fs_itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new connid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did u sort ur internal table or not....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kiran Saka on Feb 7, 2009 9:19 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kiran Saka on Feb 7, 2009 9:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 08:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134515#M1190106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T08:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with control break statement...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134516#M1190107</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;For control break statements ,first sort the table by the fields you want to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u use a field in control break,then it will see the left handside fields of field you mentioned,&lt;/P&gt;&lt;P&gt;so,the field sequence should be looked into while  using these control statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 08:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134516#M1190107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T08:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with control break statement...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134517#M1190108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;If your internal table has fields field1, field2, field3, then in order for your output be triggered at field3, it must be&lt;/P&gt;&lt;P&gt;at new  field3, here the output is triggered for every field  preceeding the field mentioned in the control break statement.&lt;/P&gt;&lt;P&gt;So check in the debugger if there is any change of field value even before the field you mentioned in the control break statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sharath Panuganti on Feb 7, 2009 9:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 08:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134517#M1190108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T08:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with control break statement...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134518#M1190109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,,&lt;/P&gt;&lt;P&gt;u decalre the table like this&lt;/P&gt;&lt;P&gt;begin of internal table,&lt;/P&gt;&lt;P&gt;regio,&lt;/P&gt;&lt;P&gt;landi,&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;end of internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can sort the internal table based in the keys..ie:here regio land1.in this order.so now if u use an at new statement within the loop,and if ur using land1 as the at new statement,then whener there is a change in the value of fields upto land1(that is land1 and above)it will break.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 10:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-control-break-statement/m-p/5134518#M1190109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T10:32:08Z</dc:date>
    </item>
  </channel>
</rss>

