<?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: Using control breaks in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105465#M104605</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;Thanks alot for your replies.&lt;/P&gt;&lt;P&gt;My requirement is like this: at end of every material i have to select the summarized data some thing like this&lt;/P&gt;&lt;P&gt;AT END OF matnr.&lt;/P&gt;&lt;P&gt;      SELECT SUM( vmeng ) SUM( off_wert )&lt;/P&gt;&lt;P&gt;       INTO  (gt_data-rueck, gt_data-rueckw)&lt;/P&gt;&lt;P&gt;       FROM yvbbe WHERE matnr =&lt;/P&gt;&lt;P&gt;      gt_data-matnr and mbdat &amp;lt; p_datum.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;Then I have to display that rueck and rueckw for each material in ALV.&lt;/P&gt;&lt;P&gt;I hope it will clear.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;chandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2005 13:28:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-29T13:28:16Z</dc:date>
    <item>
      <title>Using control breaks in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105459#M104599</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;My requirement is at end of each material i have to display summarised  open quantity in ALV.&lt;/P&gt;&lt;P&gt;I know how to do it with normal write statement using control breaks.&lt;/P&gt;&lt;P&gt;I want to display this requirement in ALV.&lt;/P&gt;&lt;P&gt;If possible please provide some code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Chandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 11:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105459#M104599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T11:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using control breaks in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105460#M104600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you fill the field catalog, fill the do_sum option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 11:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105460#M104600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T11:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using control breaks in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105461#M104601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Pass those break level statements to ....events_get&lt;/P&gt;&lt;P&gt; or else after display u can set this using Layout setting where u will get subtotal as per the Materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 11:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105461#M104601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T11:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using control breaks in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105462#M104602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's is standard in the alv, you can sum, and sub-sum any field that you want, just make sure that this field is numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandre Nogueira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 11:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105462#M104602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using control breaks in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105463#M104603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi In alv Create a sort table based on your material.&lt;/P&gt;&lt;P&gt;in your sort table .&lt;/P&gt;&lt;P&gt;    IT_SORT_DATA-SPOS      = L_SPOS.&lt;/P&gt;&lt;P&gt;    IT_SORT_DATA-FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;    IT_SORT_DATA-TABNAME   = 'IT_DISPLAY'.&lt;/P&gt;&lt;P&gt;    IT_SORT_DATA-DOWN      = 'X'.&lt;/P&gt;&lt;P&gt;    IT_SORT_DATA-GROUP = 'X'.  "Separations like breaks&lt;/P&gt;&lt;P&gt;    IT_SORT_DATA-SUBTOT = 'X'.&lt;/P&gt;&lt;P&gt;    APPEND IT_SORT_DATA.&lt;/P&gt;&lt;P&gt;    CLEAR IT_SORT_DATA.&lt;/P&gt;&lt;P&gt;and in your field catlaog &lt;/P&gt;&lt;P&gt;   specify DO_SUM = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that will solve your Problem.&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>Tue, 29 Nov 2005 11:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105463#M104603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T11:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using control breaks in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105464#M104604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You Need to Specify in fieldcat of Field for which you are going to sum  &amp;lt;b&amp;gt;DO_SUM = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_CALLBACK_PROGRAM       = V_REPID
      I_CALLBACK_PF_STATUS_SET = V_PF_STAT_FORMNAME
      I_CALLBACK_USER_COMMAND  = V_USER_FORMNAME
      IS_LAYOUT                = X_LAYOUT_DATA
      IT_FIELDCAT              = IT_FIELDCAT_DATA[]
   &amp;lt;b&amp;gt;   IT_SORT                  = IT_SORT_DATA[]&amp;lt;/b&amp;gt;
      IT_EVENTS                = IT_EVENTS_DATA[]
    TABLES
      T_OUTTAB                 = IT_DISPLAY
    EXCEPTIONS
      PROGRAM_ERROR            = 1
      OTHERS                   = 2.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;reagards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 11:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105464#M104604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T11:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using control breaks in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105465#M104605</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;Thanks alot for your replies.&lt;/P&gt;&lt;P&gt;My requirement is like this: at end of every material i have to select the summarized data some thing like this&lt;/P&gt;&lt;P&gt;AT END OF matnr.&lt;/P&gt;&lt;P&gt;      SELECT SUM( vmeng ) SUM( off_wert )&lt;/P&gt;&lt;P&gt;       INTO  (gt_data-rueck, gt_data-rueckw)&lt;/P&gt;&lt;P&gt;       FROM yvbbe WHERE matnr =&lt;/P&gt;&lt;P&gt;      gt_data-matnr and mbdat &amp;lt; p_datum.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;Then I have to display that rueck and rueckw for each material in ALV.&lt;/P&gt;&lt;P&gt;I hope it will clear.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;chandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 13:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105465#M104605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T13:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using control breaks in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105466#M104606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi why can't you maintain the data in the same table and&lt;/P&gt;&lt;P&gt;proceed in the same way as i told.&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>Tue, 29 Nov 2005 13:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105466#M104606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T13:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using control breaks in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105467#M104607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for your valuable replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;chandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 13:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-control-breaks-in-alv/m-p/1105467#M104607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T13:53:36Z</dc:date>
    </item>
  </channel>
</rss>

