<?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: Date Format in Smart Form in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010166#M410209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the same code in the program lines node and store the value of sfsy-date in a variable and pass it to this code and then instead of sfsy-date display the resultant field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2007 15:30:10 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2007-03-23T15:30:10Z</dc:date>
    <item>
      <title>Date Format in Smart Form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010161#M410204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am fetching the Invoice Date from IS_BIL_INVOICE-HD_GEN-BIL_DATE 03/21/2007.Now I need this to be March 2007.&lt;/P&gt;&lt;P&gt;The other is the date format in &amp;amp;sfsy-date&amp;amp; which should also come in the same way as described earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone here please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be given.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;K.Kiran,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 12:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010161#M410204</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-23T12:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format in Smart Form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010162#M410205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this FM HR_IN_GET_DATE_COMPONENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: L_DAY(2)   TYPE C,
      L_MONTH(2) TYPE C,
      L_YEAR(4)  TYPE C,
      L_LTEXT    TYPE T247-LTX.
                                                                        
DATA: L_DATE TYPE STRING.
                                                                        
CALL FUNCTION 'HR_IN_GET_DATE_COMPONENTS'
  EXPORTING
    IDATE                         = SY-DATUM
  IMPORTING
    DAY                           = L_DAY
    MONTH                         = L_MONTH
    YEAR                          = L_YEAR
    LTEXT                         = L_LTEXT
  EXCEPTIONS
    INPUT_DATE_IS_INITIAL         = 1
    TEXT_FOR_MONTH_NOT_MAINTAINED = 2
    OTHERS                        = 3.
CONCATENATE L_DATE L_DAY L_YEAR INTO L_DATE SEPARATED BY SPACE.
WRITE: L_DATE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 12:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010162#M410205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T12:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format in Smart Form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010163#M410206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.when I had executed the code it is just converting the date format 23.03.2007 to 23 2007.&lt;/P&gt;&lt;P&gt;But what I want is March 2007.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points given.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 13:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010163#M410206</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-23T13:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format in Smart Form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010164#M410207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this way &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: V_INPUT(8) VALUE '20112006'.

DATA: V_CHAR(25).

data: date type sydatum.
DATA: MONTH_NAMES LIKE T247.

SELECT SINGLE * FROM T247
INTO MONTH_NAMES
WHERE SPRAS = SY-LANGU
AND MNR = V_INPUT+2(2).


CONCATENATE MONTH_NAMES-KTX V_INPUT(2) V_INPUT+4(4)
INTO V_CHAR SEPARATED BY SPACE.

write: / V_CHAR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 13:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010164#M410207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T13:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format in Smart Form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010165#M410208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: t247.&lt;/P&gt;&lt;P&gt;data:ltx like t247-ltx.&lt;/P&gt;&lt;P&gt;data:idate(25) type c, vdate like sy-datum.&lt;/P&gt;&lt;P&gt;vdate = sy-datum.&lt;/P&gt;&lt;P&gt;select single ltx from t247 into (ltx) where spras = sy-langu and mnr = vdate+3(3).&lt;/P&gt;&lt;P&gt;write:/ vdate,ltx.&lt;/P&gt;&lt;P&gt;CONCATENATE lTX vdate(4)&lt;/P&gt;&lt;P&gt;INTO idate SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;write: / idate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is working perfectly if it is report but not in smart form.&lt;/P&gt;&lt;P&gt;Can we give sfsy-date as per smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 15:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010165#M410208</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-23T15:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format in Smart Form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010166#M410209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the same code in the program lines node and store the value of sfsy-date in a variable and pass it to this code and then instead of sfsy-date display the resultant field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 15:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010166#M410209</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-23T15:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format in Smart Form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010167#M410210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;parameters : p_date like sy-datum.



data : date like sy-datum.
data:mon_name like t247.
data : final(18) type c.
date = p_date.


select single * FROM T247
INTO mon_name
WHERE SPRAS = SY-LANGU
AND MNR = date+2(2).

concatenate mon_name-ltx date+0(4) into final separated by space.

write:/ final.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what santosh has given is correct thing is u have to use same logic in ur sf ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see to get the date in the format march 2007 ( month name Year ) you need to have a  logic in place . &amp;amp;SF-date&amp;amp; will only give u the std date setting defaulted in user settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make a global variable just like final  and push the value as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;final&amp;amp; in ur sf .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oh amit is there already &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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>Fri, 23 Mar 2007 15:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010167#M410210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-23T15:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format in Smart Form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010168#M410211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problem solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 03:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-format-in-smart-form/m-p/2010168#M410211</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-03-30T03:55:06Z</dc:date>
    </item>
  </channel>
</rss>

