<?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: To extract date from internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757954#M904082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;you can use regular expressions for this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see &lt;/P&gt;&lt;P&gt;[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/866072ca-0b01-0010-54b1-9c02a45ba8aa]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_erp2005/helpdata/en/42/9d6ceabb211d73e10000000a1553f6/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2008 09:30:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-05T09:30:04Z</dc:date>
    <item>
      <title>To extract date from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757953#M904081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  I have an internal table 'tabl'.In this internal table the paths and names of all the pdf files in SAP directory are stored seperated by '/'.This table consists of a single field of type C.The name of the pdf file consists of the order no,organisation ,month and year of that file creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to extract the month and year from the name of the file.Can anyone suggest how to break the internal table to get the month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757953#M904081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: To extract date from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757954#M904082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;you can use regular expressions for this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see &lt;/P&gt;&lt;P&gt;[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/866072ca-0b01-0010-54b1-9c02a45ba8aa]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_erp2005/helpdata/en/42/9d6ceabb211d73e10000000a1553f6/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757954#M904082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: To extract date from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757955#M904083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use &lt;STRONG&gt;SPLIT&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hemant Khemani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757955#M904083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: To extract date from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757956#M904084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   If your month and year format is MM and YY then firstly count the length of the whole string i.e your single record.&lt;/P&gt;&lt;P&gt;suppose length of the string is 10 and above date format i.e MM and YY then fetch last 4 characters from your string[just like sub string]. you will get month and year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757956#M904084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: To extract date from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757957#M904085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this ,&lt;/P&gt;&lt;P&gt; loop at itab into text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT '/' INTO: str1 str2 str3, ...&lt;/P&gt;&lt;P&gt;file = str1.&lt;/P&gt;&lt;P&gt;year = str2.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;clear text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful,&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;chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757957#M904085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: To extract date from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757958#M904086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi you can do in this way:&lt;/P&gt;&lt;P&gt;suppose file name is in name1. and value of this file can be in this format  -&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;062008.  blank is name of file 06 is month and 2008 is year.&lt;/P&gt;&lt;P&gt;to extract month and year do like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: month(2) , year(4).&lt;/P&gt;&lt;P&gt;data: len type i, tmp type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen(name1).&lt;/P&gt;&lt;P&gt;tmp = len - 6.&lt;/P&gt;&lt;P&gt;month = name1+tmp(2).&lt;/P&gt;&lt;P&gt;tmp = tmp + 2.&lt;/P&gt;&lt;P&gt;year = name1+tmp(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can use month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-extract-date-from-internal-table/m-p/3757958#M904086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:44:56Z</dc:date>
    </item>
  </channel>
</rss>

