<?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 Change in date format in sap script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899882#M54960</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;i am working on the check layout. Here the date format that we want is mm.dd.yyyy. I changed the SAP system setting to mm.dd.yyyy. Now in the application side, every where we can see this format. Even in the table level we can see the same format. But still in the layut it printing as dd.mm.yyyy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way where i can change for date format to mm.dd.yyyy for REGUP-BLDAT field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its really urgent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;NC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2005 15:36:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-03-21T15:36:56Z</dc:date>
    <item>
      <title>Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899882#M54960</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;i am working on the check layout. Here the date format that we want is mm.dd.yyyy. I changed the SAP system setting to mm.dd.yyyy. Now in the application side, every where we can see this format. Even in the table level we can see the same format. But still in the layut it printing as dd.mm.yyyy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way where i can change for date format to mm.dd.yyyy for REGUP-BLDAT field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its really urgent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;NC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 15:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899882#M54960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-21T15:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899883#M54961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,  although I'm a little confused why its not taking your default system setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the SET DATE MASK statement in your sapscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

/:   SET DATE MASK 'MM/DD/YYYY'

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe this statement is already there in the sapscript which is causing it to display the other way.  If so, then remove this statment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

/:   SET DATE MASK 'DD.MM.YYYY'

&lt;/CODE&gt;&lt;/PRE&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>Mon, 21 Mar 2005 15:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899883#M54961</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-03-21T15:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899884#M54962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to locate this command. But i couldnt find it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to enter this new command to have &lt;/P&gt;&lt;P&gt;/: set date mask as mm.dd.yyyy, &lt;/P&gt;&lt;P&gt;AS &amp;amp;regup-bldat&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still its not accepting. It is giving the same format in the output, as &lt;/P&gt;&lt;P&gt;dd.mm.yyyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;NC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 15:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899884#M54962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-21T15:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899885#M54963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick solution for your problem if it's urgent:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Split the date&lt;/P&gt;&lt;P&gt;2) Concatenate between '/'&lt;/P&gt;&lt;P&gt;3) Print the Char Variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this you can print your sapscript and gain more time to figure it out what's wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Rich sayas it's a confused thing the reason that is not taking your default system setting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2005 17:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899885#M54963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-21T17:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899886#M54964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked up the main program. There i can see the date is hardcodded as DD.mm.YYYY. The entries for the same are at many places. So instead of changing the std, i think we can split and concatenate and u suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try to split the date '20050321'. I dont want to hard code it as split after 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way by whichi can split it as first 4 digits, then 2 digits and then last 2 digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2005 16:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899886#M54964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-22T16:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899887#M54965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use offsets......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Data: today(10) type c.

concatenate sy-datum+4(2) '/'
            sy-datum+6(2) '/'
            sy-datum+0(4)
                  into today.

&lt;/CODE&gt;&lt;/PRE&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>Tue, 22 Mar 2005 16:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899887#M54965</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-03-22T16:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899888#M54966</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;I tried it, its not working some how. &lt;/P&gt;&lt;P&gt;All i need here to split based on the offset. &lt;/P&gt;&lt;P&gt;And later i will concatenate once i have dd mm and yyyy in three variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2005 16:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899888#M54966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-22T16:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899889#M54967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code should have worked for you.......post your code.&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>Tue, 22 Mar 2005 17:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899889#M54967</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-03-22T17:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899890#M54968</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;I am working for the layout.&lt;/P&gt;&lt;P&gt;so i have created a subroutine to capture the date and print. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code in the form is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data tdate type d. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WRITE ITAB-ZALDT to NDATE.   " ndate = '20010521'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; concatenate ndate+4(2) '/'&lt;/P&gt;&lt;P&gt;             ndate+6(2) '/'&lt;/P&gt;&lt;P&gt;             ndate+0(4)&lt;/P&gt;&lt;P&gt;             into tdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its really urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2005 18:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899890#M54968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-22T18:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899891#M54969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data tdate type d. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data tdate(10) type c. 

&lt;/CODE&gt;&lt;/PRE&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>Tue, 22 Mar 2005 18:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899891#M54969</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-03-22T18:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899892#M54970</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;tried the saem set of code, its not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also created a new program to see if the concatenate function works, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is  the complete code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZNEW                                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ndate type d value '20010521'.&lt;/P&gt;&lt;P&gt;data tD type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE ' HELLO'.&lt;/P&gt;&lt;P&gt; concatenate  NDATE+4(2) '/'&lt;/P&gt;&lt;P&gt;              ndate+6(2) '/'&lt;/P&gt;&lt;P&gt;              ndate+0(4)&lt;/P&gt;&lt;P&gt;              into td.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : ndate , tD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output is &lt;/P&gt;&lt;P&gt; HELLO 05212001 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2005 18:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899892#M54970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-22T18:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899893#M54971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change your code to be like this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data ndate type d value '20010521'.
data tD&amp;lt;b&amp;gt;(10)&amp;lt;/b&amp;gt; type C.

concatenate NDATE+4(2) '/'
ndate+6(2) '/'
ndate+0(4)
into td.

write : ndate , tD.


&lt;/CODE&gt;&lt;/PRE&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>Tue, 22 Mar 2005 19:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899893#M54971</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-03-22T19:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899894#M54972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help. Your code is wokring, i was making a very silly mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, &lt;/P&gt;&lt;P&gt;NC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2005 20:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899894#M54972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-22T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change in date format in sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899895#M54973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a sapscript instruction to set the language of the sapscript .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select country DE Deutschland you use the format for this country points of miles ,dates and points of decimals &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The instruction is set country&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2005 20:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-in-date-format-in-sap-script/m-p/899895#M54973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-22T20:23:27Z</dc:date>
    </item>
  </channel>
</rss>

