<?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: extracting date from table, format problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361509#M806622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for ur replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My exact requirement is , that i need to pass the  to a bapi which takes the date in the format  : yyyymmdd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So finally whatever be the user date format  , i should use the time stamp and get  the date , in one standard format always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can either be yyyymmdd or YYYYddmm , so that i can set the input for bapi accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2008 18:53:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-01T18:53:47Z</dc:date>
    <item>
      <title>extracting date from table, format problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361505#M806618</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 scm side, where i need to get the creation date of material from table /sapapo/matkey  . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the field has a time stamp . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;intially i was using fm : CONVERSION_EXIT_TSTLC_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the date , but the problem is this fm is not correct , as it depends upon the user date format , and gets date from display&lt;/P&gt;&lt;P&gt; of the table rather than the server . This is giving me an error &lt;/P&gt;&lt;P&gt;as the date format can be different everytime , it can be yyyymmdd   or yyyyddmm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is the way of firstly getting creation date from the time stamp , and in the format stored by databse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 11:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361505#M806618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T11:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: extracting date from table, format problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361506#M806619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the Write statement. Write statement allways take the User Profile format.&lt;/P&gt;&lt;P&gt;Please let me know if you are not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 11:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361506#M806619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: extracting date from table, format problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361507#M806620</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;try these 2 FMs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CONVERT_DATE_TO_EXTERNAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CONVERT_DATE_TO_INTERNAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Will.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 11:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361507#M806620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: extracting date from table, format problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361508#M806621</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;You can make use of the functions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LTRM_TIMESTAMP_CONVERT_FROM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 12:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361508#M806621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T12:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: extracting date from table, format problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361509#M806622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for ur replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My exact requirement is , that i need to pass the  to a bapi which takes the date in the format  : yyyymmdd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So finally whatever be the user date format  , i should use the time stamp and get  the date , in one standard format always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can either be yyyymmdd or YYYYddmm , so that i can set the input for bapi accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 18:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361509#M806622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T18:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: extracting date from table, format problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361510#M806623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI abaper&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ZDD = ZTEMP+3(2). 
ZMMM = ZTEMP+0(3). 
ZYYYY = ZTEMP+5(4). 

concatenate as you like : zyyyy zmm zdd into final_date.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 19:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extracting-date-from-table-format-problems/m-p/3361510#M806623</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-02-01T19:00:05Z</dc:date>
    </item>
  </channel>
</rss>

