<?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: ALV grid display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/3605547#M868475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, refer this sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the code below and for summation use gs_fieldcat-do_sum = 'X':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV data declarations &lt;/P&gt;&lt;P&gt;data: it_sortcat type slis_sortinfo_alv occurs 1,&lt;/P&gt;&lt;P&gt;wa_sort like line of it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform build_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form build_sortcat&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build Sort catalog &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;FORM build_sortcat .&lt;/P&gt;&lt;P&gt;wa_sort-spos = 1.&lt;/P&gt;&lt;P&gt;wa_sort-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;wa_sort-SUBTOT = 'X'. "subtotals any totals column by this field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gd_sortcat-tabname &lt;/P&gt;&lt;P&gt;APPEND wa_sort TO it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_sort-spos = 2.&lt;/P&gt;&lt;P&gt;wa_sort-fieldname = 'EBELP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gd_sortcat-tabname &lt;/P&gt;&lt;P&gt;APPEND wa_sort TO it_sortcat.&lt;/P&gt;&lt;P&gt;ENDFORM. " build_sortcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_callback_program = gd_repid&lt;/P&gt;&lt;P&gt;i_callback_top_of_page = 'TOP-OF-PAGE'&lt;/P&gt;&lt;P&gt;is_layout = gd_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = fieldcatalog[]&lt;/P&gt;&lt;P&gt;it_sort = it_sortcat&lt;/P&gt;&lt;P&gt;i_save = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = it_ekko&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;others = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye,\&lt;/P&gt;&lt;P&gt;madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Mar 2008 13:31:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-23T13:31:18Z</dc:date>
    <item>
      <title>ALV grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/3605545#M868473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I am new to ALVs, can anyone pls send me some docs on report programming in ALV. Hoping for early replies, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2008 13:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/3605545#M868473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-23T13:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/3605546#M868474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;To put default values to parameters or select-options use this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: p_matnr like mara-matnr default 'test1'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_matnr for mara-matnr default 'test1' to 'test2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can do it in INITIALIZATION event assigning values to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;p_matnr = 'test3'.&lt;/P&gt;&lt;P&gt;s_matnr-low = 'test4'.&lt;/P&gt;&lt;P&gt;s_matnr-high = 'test5'.&lt;/P&gt;&lt;P&gt;s_matnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_matnr-option = 'BT'.&lt;/P&gt;&lt;P&gt;append s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to display those 2 fields only, create your own fieldcatalog. and pass it to it_fieldcat export parameter in the reuse...... FMs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2008 13:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/3605546#M868474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-23T13:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/3605547#M868475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, refer this sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the code below and for summation use gs_fieldcat-do_sum = 'X':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV data declarations &lt;/P&gt;&lt;P&gt;data: it_sortcat type slis_sortinfo_alv occurs 1,&lt;/P&gt;&lt;P&gt;wa_sort like line of it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform build_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form build_sortcat&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build Sort catalog &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;FORM build_sortcat .&lt;/P&gt;&lt;P&gt;wa_sort-spos = 1.&lt;/P&gt;&lt;P&gt;wa_sort-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;wa_sort-SUBTOT = 'X'. "subtotals any totals column by this field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gd_sortcat-tabname &lt;/P&gt;&lt;P&gt;APPEND wa_sort TO it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_sort-spos = 2.&lt;/P&gt;&lt;P&gt;wa_sort-fieldname = 'EBELP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gd_sortcat-tabname &lt;/P&gt;&lt;P&gt;APPEND wa_sort TO it_sortcat.&lt;/P&gt;&lt;P&gt;ENDFORM. " build_sortcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_callback_program = gd_repid&lt;/P&gt;&lt;P&gt;i_callback_top_of_page = 'TOP-OF-PAGE'&lt;/P&gt;&lt;P&gt;is_layout = gd_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = fieldcatalog[]&lt;/P&gt;&lt;P&gt;it_sort = it_sortcat&lt;/P&gt;&lt;P&gt;i_save = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = it_ekko&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;others = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye,\&lt;/P&gt;&lt;P&gt;madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2008 13:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/3605547#M868475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-23T13:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/3605548#M868476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;To display sub-totals in ALV , Use SORT Tables of TYPE Slis_sortinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'BUKRS'.&lt;/P&gt;&lt;P&gt;x_sort-spos = '1'.&lt;/P&gt;&lt;P&gt;x_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;x_sort-group = '*'.&lt;/P&gt;&lt;P&gt;x_sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;APPEND x_sort TO t_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display Sub-total lines only , use TOTLINES_ONLY in the fieldcatalog to 'X'.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2008 13:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/3605548#M868476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-23T13:31:40Z</dc:date>
    </item>
  </channel>
</rss>

