<?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 display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260246#M1016715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I think the requirement of pradeep is to print a counter in the 2nd column of the ALV. It is not to print when it reaches a certain number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2008 07:11:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-29T07:11:09Z</dc:date>
    <item>
      <title>alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260241#M1016710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have 5 fields in my internal table to display.(date n1 n2 n3 n4 n5)&lt;/P&gt;&lt;P&gt;n1 n2... are basically counters.&lt;/P&gt;&lt;P&gt;i am getting records like this 200807 1 0 0 0 0.&lt;/P&gt;&lt;P&gt;i may get the similar records.&lt;/P&gt;&lt;P&gt;but finaly i need to disply the total count i.e if i have 2 records output will be 200807 2 0 0 0 0.&lt;/P&gt;&lt;P&gt;please help me in this issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 06:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260241#M1016710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T06:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260242#M1016711</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;1. sort your table by field 2 ascending&lt;/P&gt;&lt;P&gt;2. use describe table to get the number of records in table&lt;/P&gt;&lt;P&gt;3. retrieve the last record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab BY n2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES ld_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab INDEX ld_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 06:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260242#M1016711</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-07-29T06:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260243#M1016712</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 implement your alv with sub totals on date field then all the corresponding values have been added and displayed in the sub totals column. For this you can create one work area of type 'slis_sortinfo_alv' and internal table of type SLIS_T_SORTINFO_ALV&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;  gx_sort-fieldname = 'DATE'.&lt;/P&gt;&lt;P&gt;  gx_sort-up        = 'X'.&lt;/P&gt;&lt;P&gt;  gx_sort-subtot    = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND gx_sort TO gt_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before do this make sure that you have to pass 'X' to the do_sum field in the field catelog for the corresponding field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass this gt_sort to the corresponding it_sort of the import parameter of the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 06:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260243#M1016712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T06:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260244#M1016713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;before passing the internal table to reuse_alv_grid_dispaly&lt;/P&gt;&lt;P&gt;do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table itab lines v_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab&lt;/P&gt;&lt;P&gt;itab-n1 = v_line&lt;/P&gt;&lt;P&gt;itab-n2 = sy-tabix&lt;/P&gt;&lt;P&gt;modify itab&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with this, reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 06:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260244#M1016713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T06:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260245#M1016714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab where n2 = 2.
write:"print now.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 06:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260245#M1016714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T06:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260246#M1016715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I think the requirement of pradeep is to print a counter in the 2nd column of the ALV. It is not to print when it reaches a certain number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 07:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260246#M1016715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T07:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260247#M1016716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in the situation what u can do is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: loop at the internal table and check for the same records if u get same records on particular field then append those into new internal table suppose itab1 and rest of the records into another itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2: use collect statement on itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3: finally merge the two tables itab1 after collect and itab2 into final_itab and then pass it to FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ashu Singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 07:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260247#M1016716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T07:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260248#M1016717</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;can u plesae explain how to merge the 2 internal table....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 09:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260248#M1016717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T09:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260249#M1016718</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 internal table on date descending order&lt;/P&gt;&lt;P&gt;--read each record and check with next record if it matches increase counter otherwise update another intrnal table to display in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer below code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES ZAP_COUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;            L_DATE LIKE ZAP_COUNT-L_DATE,&lt;/P&gt;&lt;P&gt;            N1 LIKE ZAP_COUNT-N1,&lt;/P&gt;&lt;P&gt;            END OF ITAB.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;DATA: N1 TYPE ZAP_COUNT-N1 VALUE 1,&lt;/P&gt;&lt;P&gt;          L_DATE LIKE ZAP_COUNT-L_DATE,&lt;/P&gt;&lt;P&gt;          IT_ITAB LIKE ITAB OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT L_DATE N1 FROM ZAP_COUNT INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY L_DATE DESCENDING.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;  IF ITAB-L_DATE EQ L_DATE.&lt;/P&gt;&lt;P&gt;    N1 = N1 + 1.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    IF L_DATE IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      IT_ITAB-N1 = N1.&lt;/P&gt;&lt;P&gt;      IT_ITAB-L_DATE = L_DATE.&lt;/P&gt;&lt;P&gt;      APPEND IT_ITAB.&lt;/P&gt;&lt;P&gt;      N1 = 1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  L_DATE = ITAB-L_DATE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_ITAB-N1 = N1.&lt;/P&gt;&lt;P&gt;IT_ITAB-L_DATE = L_DATE.&lt;/P&gt;&lt;P&gt;APPEND IT_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 10:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260249#M1016718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T10:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260250#M1016719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do in the following way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose u have data in itab .... now what u do is declare itab1 like itab and also declare wa for itab1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;wa1-name = wa-name.&lt;/P&gt;&lt;P&gt;wa1-address = wa-address.&lt;/P&gt;&lt;P&gt;wa1-dob = wa-dob.&lt;/P&gt;&lt;P&gt;wa1-salary = wa-salary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;collect wa1 into itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the small example i have given... now u have the itab1 in which u have records which have common as u told as well as uncommon records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use this logic and i m sure u will get the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ashu Singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 10:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260250#M1016719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T10:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260251#M1016720</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;if u get problem then let me know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ashu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 10:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/4260251#M1016720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T10:29:59Z</dc:date>
    </item>
  </channel>
</rss>

