<?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: issue with date format save in custom database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468487#M15005</link>
    <description>&lt;P&gt;Another voice to this being a bad idea... maybe if you share the specific reason for trying to store a formatted date, we can give you better (or just other) ways of addressing your primary issue.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2017 13:41:50 GMT</pubDate>
    <dc:creator>raghug</dc:creator>
    <dc:date>2017-06-09T13:41:50Z</dc:date>
    <item>
      <title>issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468479#M14997</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I want to save date in MM/DD/YYYY in custom database table field . its displaying as dd.mm.yyyy format. I know we can use char 10 and do necessary concatenation but i want any other good method for this.&lt;/P&gt;&lt;P&gt;rg&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 16:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468479#M14997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-08T16:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468480#M14998</link>
      <description>&lt;P&gt;You should tell your client that it's a very bad idea from the modeling point of view, to not using the predefined date type (because it's then impossible to sort efficiently). Of course, they probably have a good reason to do that.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 18:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468480#M14998</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-06-08T18:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468481#M14999</link>
      <description>&lt;P&gt;Go to System-&amp;gt;User Profile -&amp;gt; Own Data -&amp;gt; Defaults -&amp;gt; Date Format (choose 2. MM/DD/YYYY).&lt;/P&gt;&lt;P&gt;Your default setting is the reason you are seeing the date in that way.&lt;/P&gt;&lt;P&gt;Raju.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 18:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468481#M14999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-08T18:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468482#M15000</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I know we can maintain that in SU3, I am looking for any other method.&lt;/P&gt;&lt;P&gt;rg&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 12:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468482#M15000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-09T12:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468483#M15001</link>
      <description>&lt;P&gt;It's all in the documentation. Please look at the formatting options of string templates or the WRITE statement.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 13:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468483#M15001</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2017-06-09T13:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468484#M15002</link>
      <description>&lt;P&gt;"Date Format (choose 2. MM/DD/YYYY)"&lt;/P&gt;&lt;P&gt;It's a "other good method". No?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 13:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468484#M15002</guid>
      <dc:creator>douglas_linkup</dc:creator>
      <dc:date>2017-06-09T13:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468485#M15003</link>
      <description>&lt;P&gt;see if you can use any of customer exit for eg below one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split the date like below(I am giving just a psudo code) in the customer exit&lt;/P&gt;&lt;P&gt;example:  MM/DD/YYYY - YYYYMMDD &lt;/P&gt;&lt;P&gt;  A1  = SOURCE_FIELDS-calday+0(4) . ** YYYY&lt;/P&gt;&lt;P&gt;  A2 = SOURCE_FIELDS-calday+0(2).  **MM&lt;/P&gt;&lt;P&gt;  A3= SOURCE_FIELDS-calday+2(2).  ** DD&lt;/P&gt;&lt;P&gt;  Concatenate A1 A2 A3  into your date  field.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 13:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468485#M15003</guid>
      <dc:creator>former_member188080</dc:creator>
      <dc:date>2017-06-09T13:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468486#M15004</link>
      <description>&lt;P&gt;Same as Sandra Rossi......and wondering why you aren't just making this a "date" type field.....then use the "external-to-interal" conversion function to take "whatever" format the end user is  using (based on their user profile setting as mentioned elsewhere in this thread) and then puts into the "internal" format SAP uses to actually store dates. Why try to complicate it? Unless as Sandra said, there are other "good" reasons for doing this.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 13:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468486#M15004</guid>
      <dc:creator>ChrisSolomon</dc:creator>
      <dc:date>2017-06-09T13:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468487#M15005</link>
      <description>&lt;P&gt;Another voice to this being a bad idea... maybe if you share the specific reason for trying to store a formatted date, we can give you better (or just other) ways of addressing your primary issue.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 13:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468487#M15005</guid>
      <dc:creator>raghug</dc:creator>
      <dc:date>2017-06-09T13:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468488#M15006</link>
      <description>&lt;P&gt;She says it's displaying ...&lt;/P&gt;&lt;P&gt;Maybe the storage format is even OK but not recognized as such. Simply not distinguishing internal format and external formats.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 14:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468488#M15006</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-06-09T14:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468489#M15007</link>
      <description>&lt;P&gt;Hi Ramya, &lt;/P&gt;&lt;P&gt;Can you try EDIT MASK option in WRITE statement for DD/MM/YYYY format as shown below. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: l_date TYPE char10.

write sy-datum to l_date USING EDIT MASK '__/__/_____'.
write sy-datum to l_date USING EDIT MASK '__.__._____'.
write sy-datum to l_date USING EDIT MASK '__-__-_____'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajkumar Narasimman&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 14:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468489#M15007</guid>
      <dc:creator>rajkumarnarasimman</dc:creator>
      <dc:date>2017-06-09T14:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: issue with date format save in custom database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468490#M15008</link>
      <description>&lt;P&gt;Use a structure rather that substrings,  or use the substring() function.  The structure method is self documenting this in my view is a better way of coding it.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types: Begin Of My_Date,
             Month Type My_Month,
             Fill1 Type c,
             Day   Type My_Day,
             Fill2 type c,
             Year  Type My_Year,
       End Of My_Date,
       Begin Of Sap_Date,
             Year  Type My_Year,
             Month Type My_Month,
             Day   Type My_Day,
       End Of Sap_Date.
Data: l_Date     Type my_Date,
      l_Sap_Date type sap_Date.
l_Date = 'MM/DD/YYYY'.
Move-Corresponding l_Date to l_Sap_Date.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And then just move l_Sap_Date to a real date field.  To go the other way,  populate the SAP date and move to the l_Date,  populating the fill fields.&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 07:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-date-format-save-in-custom-database-table/m-p/468490#M15008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-12T07:42:32Z</dc:date>
    </item>
  </channel>
</rss>

