<?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: Control Break statement query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784718#M1120742</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 can do it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;      g_fld2 type it1-fld2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at IT1 into wa_it1.&lt;/P&gt;&lt;P&gt;   if g_fld2 is initial.                   "IF 1&lt;/P&gt;&lt;P&gt;      g_fld2 = wa_it1-fld2.&lt;/P&gt;&lt;P&gt;      append wa_it1 to IT2.&lt;/P&gt;&lt;P&gt;   else.                                    "IF 1&lt;/P&gt;&lt;P&gt;       if g_fld2 = wa_it1-fld2.       "IF 2&lt;/P&gt;&lt;P&gt;          append wa_it1 to IT2.&lt;/P&gt;&lt;P&gt;      else.                                "IF 2&lt;/P&gt;&lt;P&gt;          call function &amp;lt;FM you want to call with IT2&amp;gt; &lt;/P&gt;&lt;P&gt;          refresh IT2.&lt;/P&gt;&lt;P&gt;          clear g_fld2.&lt;/P&gt;&lt;P&gt;          g_fld2 = wa_it1-fld2.&lt;/P&gt;&lt;P&gt;          append wa_it1 to IT2.&lt;/P&gt;&lt;P&gt;      endif.                                "IF 2&lt;/P&gt;&lt;P&gt;   endif.                                   "IF 1&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Nov 19, 2008 1:47 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Nov 19, 2008 1:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2008 12:46:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-19T12:46:27Z</dc:date>
    <item>
      <title>Control Break statement query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784713#M1120737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a requirement like this - there is an internal table IT1 with fld1 fld2. It is sorted in fld1 fld2 order. I want to append the fld1 fld2 entries in another internal table IT2 until there is a change in fld2. Whenever fld2 changes, I want to call a function module and pass internal table IT2. After the execution of function module, I want to refresh IT2. Again populate fld1 fld2 of internal table IT2 until fld2 changes and then call function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 12:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784713#M1120737</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2008-11-19T12:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784714#M1120738</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 can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at IT1.&lt;/P&gt;&lt;P&gt; AT New fld2.&lt;/P&gt;&lt;P&gt;  "Cal your function module here to copy the fields "&lt;/P&gt;&lt;P&gt; clear fld2.&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;Mudit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 12:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784714#M1120738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T12:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784715#M1120739</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;Sort the table on fld2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Loop at Itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append the data to itab2.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;at end of fld2.&lt;/P&gt;&lt;P&gt;  call the function module.&lt;/P&gt;&lt;P&gt;  refresh itab2.&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;Edited by: avinash kodarapu on Nov 19, 2008 6:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 12:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784715#M1120739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T12:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784716#M1120740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at it1 into wa1.&lt;/P&gt;&lt;P&gt;  descibe table it2 lines v_line.&lt;/P&gt;&lt;P&gt;  read table it2 into wa2 index v_line.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    if wa1-fld1 &amp;lt;&amp;gt; wa2-fld2.&lt;/P&gt;&lt;P&gt;      " Call FM.&lt;/P&gt;&lt;P&gt;      refresh it2.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;       append wa1 to it2.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 12:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784716#M1120740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T12:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784717#M1120741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi srikar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Use the control break as the at end of fid2 mean while u push all the records into the table 2 at the end of the fld 2 comes make the operation as pushing the whole rtable to function module. and refresh table 2 after getting the output. this process will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 12:42:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784717#M1120741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T12:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Control Break statement query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784718#M1120742</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 can do it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;      g_fld2 type it1-fld2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at IT1 into wa_it1.&lt;/P&gt;&lt;P&gt;   if g_fld2 is initial.                   "IF 1&lt;/P&gt;&lt;P&gt;      g_fld2 = wa_it1-fld2.&lt;/P&gt;&lt;P&gt;      append wa_it1 to IT2.&lt;/P&gt;&lt;P&gt;   else.                                    "IF 1&lt;/P&gt;&lt;P&gt;       if g_fld2 = wa_it1-fld2.       "IF 2&lt;/P&gt;&lt;P&gt;          append wa_it1 to IT2.&lt;/P&gt;&lt;P&gt;      else.                                "IF 2&lt;/P&gt;&lt;P&gt;          call function &amp;lt;FM you want to call with IT2&amp;gt; &lt;/P&gt;&lt;P&gt;          refresh IT2.&lt;/P&gt;&lt;P&gt;          clear g_fld2.&lt;/P&gt;&lt;P&gt;          g_fld2 = wa_it1-fld2.&lt;/P&gt;&lt;P&gt;          append wa_it1 to IT2.&lt;/P&gt;&lt;P&gt;      endif.                                "IF 2&lt;/P&gt;&lt;P&gt;   endif.                                   "IF 1&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Nov 19, 2008 1:47 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Nov 19, 2008 1:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 12:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-break-statement-query/m-p/4784718#M1120742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T12:46:27Z</dc:date>
    </item>
  </channel>
</rss>

