<?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: getting month in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354618#M177198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here we are using substrings.  The line of code below means that you what the value starting  four characters to the left,  and the following 2 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: month(2) type n.

month = creation_date+4(2).


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2006 17:36:13 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-05-10T17:36:13Z</dc:date>
    <item>
      <title>getting month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354617#M177197</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;How do I get Month from creation date.&lt;/P&gt;&lt;P&gt;If Creation date is 05/01/2004 then I want month as 05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354617#M177197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T17:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: getting month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354618#M177198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here we are using substrings.  The line of code below means that you what the value starting  four characters to the left,  and the following 2 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: month(2) type n.

month = creation_date+4(2).


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354618#M177198</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-10T17:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: getting month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354619#M177199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Veni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK-ERDAT+4(2) will give you the month.&lt;/P&gt;&lt;P&gt;I have given the sample code you were looking for in the other thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:40:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354619#M177199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T17:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: getting month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354620#M177200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: month(2) .&lt;/P&gt;&lt;P&gt;month = creation_date+0(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please mark helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preety much..Thanks..All i considered was the above case..&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354620#M177200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T17:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: getting month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354621#M177201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because all dates in R/3 are stored in the database and in memory as YYYYMMDD,  not like the external format 05/01/2004.   So at runtime, in order to access the month, you must move 4 places to the left and get the next two characters.   Make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354621#M177201</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-10T17:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: getting month</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354622#M177202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veni,&lt;/P&gt;&lt;P&gt;       In SAP the date will be in the 20040501(YYYYMMDD) format.&lt;/P&gt;&lt;P&gt;For example if the creation date is 05/01/2004 it will be stored as 20060510 in SAP.To get the month use the substring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : Month(2).&lt;/P&gt;&lt;P&gt;Month = date+4(2) &lt;/P&gt;&lt;P&gt;This will give you the month 05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Rama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 22:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-month/m-p/1354622#M177202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T22:24:57Z</dc:date>
    </item>
  </channel>
</rss>

