<?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 alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2593321#M593868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in alv can i display dynamic display of months for a given period in the format yyyymm. Also the field should be displayed as jan07-h and it should change correspondingly for the given input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2007 10:59:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-26T10:59:22Z</dc:date>
    <item>
      <title>alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2593321#M593868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in alv can i display dynamic display of months for a given period in the format yyyymm. Also the field should be displayed as jan07-h and it should change correspondingly for the given input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 10:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2593321#M593868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T10:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2593322#M593869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi veera,&lt;/P&gt;&lt;P&gt;          I dont know about the dymamic display,but probably you can do is use two different internal table and call them according to your condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sourabh Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 11:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2593322#M593869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T11:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2593323#M593870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use sy-datum and sy-uzeit system fields as a part of internal table.&lt;/P&gt;&lt;P&gt;or take sy-datum in a variable and change its format.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 11:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2593323#M593870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T11:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2593324#M593871</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;please check out the sample program below it might help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ztest_tmp.&lt;/P&gt;&lt;P&gt;data: datum1 type sy-datum.&lt;/P&gt;&lt;P&gt;data: uzeit1 type sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: datum2 type sy-datum.&lt;/P&gt;&lt;P&gt;data: uzeit2 type sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: result type sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datum1 = sy-datum - 1.&lt;/P&gt;&lt;P&gt;datum2 = sy-datum .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uzeit1 = '140000'.&lt;/P&gt;&lt;P&gt;uzeit2 = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'GET_DELTA_TIME_FROM_DT'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;t1 = uzeit1&lt;/P&gt;&lt;P&gt;t2 = uzeit2&lt;/P&gt;&lt;P&gt;d1 = datum1&lt;/P&gt;&lt;P&gt;d2 = datum2&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;t3 = result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out the following link it might help you for comaprision between dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas620/helpdata/en/fc/eb3509358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas620/helpdata/en/fc/eb3509358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE CHECK OUT THE BELOW PROGRAM IT MIGHT HELP YOU for date difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZDATEDIFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: EDAYS LIKE VTBBEWE-ATAGE,&lt;/P&gt;&lt;P&gt;EMONTHS LIKE VTBBEWE-ATAGE,&lt;/P&gt;&lt;P&gt;EYEARS LIKE VTBBEWE-ATAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,&lt;/P&gt;&lt;P&gt;TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_date_from = FROMDATE&lt;/P&gt;&lt;P&gt;i_date_to = TODATE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_FLG_SEPARATE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;E_DAYS = EDAYS&lt;/P&gt;&lt;P&gt;E_MONTHS = EMONTHS&lt;/P&gt;&lt;P&gt;E_YEARS = EYEARS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ 'Difference in Days ', EDAYS.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Difference in Months ', EMONTHS.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Difference in Years ', EYEARS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;FROMDATE = SY-DATUM - 60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check out the below program to fine date difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: d1 like sy-datum,&lt;/P&gt;&lt;P&gt;d2 like sy-datum.&lt;/P&gt;&lt;P&gt;data: diff type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d1 = '20060331'.&lt;/P&gt;&lt;P&gt;d2 = '20060220'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff = d1 - d2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / diff .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also chek these FMs:&lt;/P&gt;&lt;P&gt;'CSCP_PARA1_GET_PERIODS'&lt;/P&gt;&lt;P&gt;HR_99S_INTERVAL_BETWEEN_DATES(Months, Years and days)&lt;/P&gt;&lt;P&gt;COMPUTE_YEARS_BETWEEN_DATES&lt;/P&gt;&lt;P&gt;EHS_CALC_YEARS_BETWEEN_DATES&lt;/P&gt;&lt;P&gt;DAYS_BETWEEN_TWO_DATES &lt;/P&gt;&lt;P&gt;MONTHS_BETWEEN_TWO_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For No of week days between two dates please check out the below program it might help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrich_0003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;datum type sy-datum,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: weekday like dtresr-weekday.&lt;/P&gt;&lt;P&gt;data: number_lines type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_sdatum type sy-datum,&lt;/P&gt;&lt;P&gt;p_edatum type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-datum = p_sdatum.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab-datum = p_edatum.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-datum = itab-datum + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'DATE_TO_DAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;date = itab-datum&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;weekday = weekday.&lt;/P&gt;&lt;P&gt;if weekday = 'Sat.'&lt;/P&gt;&lt;P&gt;or weekday = 'Sunday'.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table itab lines number_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'Number of days between dates is', number_lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********&lt;STRONG&gt;please reward points if the information is helpful to you&lt;/STRONG&gt;**************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 11:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2593324#M593871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T11:12:25Z</dc:date>
    </item>
  </channel>
</rss>

