<?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: Current year on the selection screen by default in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476347#M1253968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You guys are amazing. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2009 10:18:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-10T10:18:31Z</dc:date>
    <item>
      <title>Current year on the selection screen by default</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476342#M1253963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one small doubt. In my selection screen i am to fill one field which represent year. By default, i have to set the current year on the selection screen. I am using parameters for that field but am not sure how to set the current year as default. I dont want to hard code it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the same report, i have an alv which has heading like this " This is the alv report for the &amp;lt;Current month&amp;gt; of &amp;lt;Current year&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get the texts like-this is the alv report on the heading but not sure how to get the current month and current year to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476342#M1253963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Current year on the selection screen by default</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476343#M1253964</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;PRE&gt;&lt;CODE&gt;

1. PARAMETERS p_year TYPE char4.

INITIALIZATION.
P_year = sy-datum(4).

2. In PBO When you double click on the word TITLE a popup is displayed..give the &amp;amp; in the Title input box.

  CONCATENATE 'This is the alv report for the'  l_month  'of'  l_year INTO g_header SEPARATED BY space.
  SET TITLEBAR 'TITLE' OF PROGRAM sy-repid WITH g_header.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476343#M1253964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current year on the selection screen by default</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476344#M1253965</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;Parameters : p_year(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INITIALIZATION.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;p_year = sy-datum+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by doing above, u ill acheive the current year on selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the current yer and montht in the heading use concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: &lt;/P&gt;&lt;P&gt;data : lv_mnth(2),&lt;/P&gt;&lt;P&gt;       lv_year(4),&lt;/P&gt;&lt;P&gt;       lv_string TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_mnth = sy-datum+4(2).&lt;/P&gt;&lt;P&gt;lv_year = sy-datum+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concatenate&lt;/STRONG&gt; : 'This is an ALV report for month' lv_mnth 'for year' lv_year INTO lv_string separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : lv_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass the above string to FM &lt;STRONG&gt;REUSE_ALV_COMMENTRY_WRITE&lt;/STRONG&gt; and call this FM in FORM top_of_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto SE37 and type above FM and click on WHERE USED LIST, u ill come to understand how to use that FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476344#M1253965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Current year on the selection screen by default</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476345#M1253966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the year from sy-datum directly into the place where you want to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sy-datum+0(4).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476345#M1253966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Current year on the selection screen by default</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476346#M1253967</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;Use:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PARAMETERS p_year TYPE char4 DEFAULT sy-datum+0(4).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476346#M1253967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Current year on the selection screen by default</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476347#M1253968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You guys are amazing. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 10:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476347#M1253968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T10:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Current year on the selection screen by default</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476348#M1253969</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;Its simple , in your codes, do as follows. Also, create a title bar 'TEST1' for your program with title 'This is the alv report for the &amp;amp; of &amp;amp;.'.  It will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_year TYPE gjahr DEFAULT sy-datum,&lt;/P&gt;&lt;P&gt;            p_month TYPE monat DEFAULT sy-datum+4(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set TITLEBAR 'TEST1' WITH p_year p_month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 10:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-year-on-the-selection-screen-by-default/m-p/5476348#M1253969</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-04-10T10:22:55Z</dc:date>
    </item>
  </channel>
</rss>

