<?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: How to convert  string format ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558357#M2007461</link>
    <description>&lt;P&gt;It seems you frequently write blog posts in your own Web site to explain what you finally did, and you just post a link to refer to it. You did it repeatedly in your recent questions, I think you shouldn't, as per &lt;A href="https://community.sap.com/resources/rules-of-engagement"&gt;Engagement Rules &lt;/A&gt;"unacceptable content": &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Content or comments primarily designed to drive traffic to, increase the search rankings of, generating revenue from, or gain any other personal benefit from a non-SAP site, product, or service.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Instead, include your answer here. Anyway, note that the answer in your blog post is using a &lt;STRONG&gt;non-released&lt;/STRONG&gt; function module, and that's not the way to do it in SAP. Frederic answer is the way to do it, with &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstring_templates.htm"&gt;String Templates&lt;/A&gt; (as per Horst link), by taking the user's date and time formats. Or you may choose specific date formats so that to always use the YYYY-MM-DD format (like COUNTRY or XSD option).&lt;/P&gt;</description>
    <pubDate>Sat, 23 Oct 2021 04:51:16 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2021-10-23T04:51:16Z</dc:date>
    <item>
      <title>How to convert  string format ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558353#M2007457</link>
      <description>&lt;P&gt;Hi Experts&lt;/P&gt;
  &lt;P&gt;The code is following&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;
 erdat LIKE vbrp-erdat, 
 erzet LIKE vbrk-erzet, 

 send_date  type string,

 CONCATENATE gw_vbrk-erdat  gw_vbrk-erzet  into gw_send-send_date.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Now the string format is follwing&lt;BR /&gt;20211006094324&lt;/P&gt;
  &lt;P&gt;I hope I get following string format.&lt;BR /&gt;2021-10-06 10:00:00&lt;BR /&gt;Can you help me ? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 12:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558353#M2007457</guid>
      <dc:creator>1190_5939_439</dc:creator>
      <dc:date>2021-10-21T12:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert  string format ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558354#M2007458</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Take a look at &lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abapwrite-.htm"&gt;WRITE statement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 12:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558354#M2007458</guid>
      <dc:creator>sergey_muratov</dc:creator>
      <dc:date>2021-10-21T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert  string format ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558355#M2007459</link>
      <description>&lt;P&gt;my_field = |{ my_date DATE = USER }{ my_time TIME=USER }|   &lt;/P&gt;&lt;P&gt;something like that ?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 13:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558355#M2007459</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-10-21T13:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert  string format ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558356#M2007460</link>
      <description>&lt;P&gt;String templates are the way to go ... &lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstring_templates.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstring_templates.htm&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 16:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558356#M2007460</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2021-10-21T16:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert  string format ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558357#M2007461</link>
      <description>&lt;P&gt;It seems you frequently write blog posts in your own Web site to explain what you finally did, and you just post a link to refer to it. You did it repeatedly in your recent questions, I think you shouldn't, as per &lt;A href="https://community.sap.com/resources/rules-of-engagement"&gt;Engagement Rules &lt;/A&gt;"unacceptable content": &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Content or comments primarily designed to drive traffic to, increase the search rankings of, generating revenue from, or gain any other personal benefit from a non-SAP site, product, or service.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Instead, include your answer here. Anyway, note that the answer in your blog post is using a &lt;STRONG&gt;non-released&lt;/STRONG&gt; function module, and that's not the way to do it in SAP. Frederic answer is the way to do it, with &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstring_templates.htm"&gt;String Templates&lt;/A&gt; (as per Horst link), by taking the user's date and time formats. Or you may choose specific date formats so that to always use the YYYY-MM-DD format (like COUNTRY or XSD option).&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 04:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558357#M2007461</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-10-23T04:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert  string format ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558358#M2007462</link>
      <description>&lt;P&gt;Instead of DATE = USER, your &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstring_templates.htm"&gt;String Template&lt;/A&gt; could use XSD = YES to always format in YYYY-MM-DD format, and it could be the same for the time format to avoid 12-hours formats.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(date) = CONV d( '20211023' ).&lt;BR /&gt;DATA(time) = CONV t( '114800' ).&lt;BR /&gt;DATA(my_field) = |{ date XSD = YES } { time XSD = YES }|.&lt;BR /&gt;ASSERT my_field = '2021-10-23 11:48:00'.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Oct 2021 04:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558358#M2007462</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-10-23T04:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert  string format ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558359#M2007463</link>
      <description>&lt;P&gt;useful information.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 15:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558359#M2007463</guid>
      <dc:creator>former_member773178</dc:creator>
      <dc:date>2021-10-23T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert  string format ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558360#M2007464</link>
      <description>&lt;P&gt;nice trick &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 08:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-format/m-p/12558360#M2007464</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-10-25T08:30:29Z</dc:date>
    </item>
  </channel>
</rss>

