<?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: Regarding Changing Date Format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918551#M381824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi for this u need to write some piece of code like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot declare a parameter in selection screen of sy-datum as it will give it as an invalid date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose that ur parameter in selection screen contains this 02.2007 then declare v_date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: v_date(10).&lt;/P&gt;&lt;P&gt;concatenate '01.'  v_date&lt;EM&gt;0(3) v_date&lt;/EM&gt;4(5) into v_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will do ur work seperated by dots.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;award points if found helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rahul Kavuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2007 12:24:34 GMT</pubDate>
    <dc:creator>rahulkavuri</dc:creator>
    <dc:date>2007-02-06T12:24:34Z</dc:date>
    <item>
      <title>Regarding Changing Date Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918550#M381823</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 just got a requirement where i need to take date from BEDAT field in EKKO and&lt;/P&gt;&lt;P&gt; build a date in this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MM.YYYY in the selection screen but when user enter date in selection screen say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ex: 02.2007 it should be stored as 01.02.2007 in data base ( that is, it should take first day i.e 1 of that particular month.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; can any one please give me a piece of code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thank you&lt;/P&gt;&lt;P&gt;  pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 12:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918550#M381823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T12:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Changing Date Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918551#M381824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi for this u need to write some piece of code like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot declare a parameter in selection screen of sy-datum as it will give it as an invalid date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose that ur parameter in selection screen contains this 02.2007 then declare v_date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: v_date(10).&lt;/P&gt;&lt;P&gt;concatenate '01.'  v_date&lt;EM&gt;0(3) v_date&lt;/EM&gt;4(5) into v_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will do ur work seperated by dots.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;award points if found helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rahul Kavuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 12:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918551#M381824</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2007-02-06T12:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Changing Date Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918552#M381825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;parameters: dats(6) type c.&lt;/P&gt;&lt;P&gt;data: dats1(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dats1+0(2) = '01'.&lt;/P&gt;&lt;P&gt;dats1+2(6) = dats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: dats1 using edit mask '__/__/____'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 12:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918552#M381825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T12:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Changing Date Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918553#M381826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;user entered 02.2007 .this is a parameter declaration .&lt;/P&gt;&lt;P&gt;parameter :p_date(10) type c. (where p_date = 02.2007)&lt;/P&gt;&lt;P&gt;concatenate '01.' p_date into a. (where a is some variable )&lt;/P&gt;&lt;P&gt;then u can update the d/b using a.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward pts if useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 12:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918553#M381826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T12:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Changing Date Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918554#M381827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RS_VARI_V_1_ACTUAL_MONTH &lt;/P&gt;&lt;P&gt;RS_VARI_V_1_LAST_MONTH &lt;/P&gt;&lt;P&gt;RS_VARI_V_1_NEXT_MONTH  Returns first day of the actual/last/next month.  &lt;/P&gt;&lt;P&gt;RS_VARI_V_ACTUAL_MONTH &lt;/P&gt;&lt;P&gt;RS_VARI_V_LAST_MONTH  Returns selection range for the actual/last month. &lt;/P&gt;&lt;P&gt;Output: 1st line in table P_DATETAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 12:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918554#M381827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T12:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Changing Date Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918555#M381828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;execute the code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters : p_date(7) type c. " RSCALMONTH.
initialization.

concatenate sy-datum+4(2) sy-datum+0(4) into p_date separated by '.'.
data : date  like sy-datum.

start-of-selection.
concatenate  sy-datum+0(4) sy-datum+4(2) '01' into date .
write:/ date.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; "exchange this filed to ur table .&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, 06 Feb 2007 14:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-changing-date-format/m-p/1918555#M381828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T14:59:21Z</dc:date>
    </item>
  </channel>
</rss>

