<?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: Take date from the text variable. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361306#M1234035</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; Does the date always start at the first position. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;v_date = text_variable+0(8).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2009 07:14:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-26T07:14:59Z</dc:date>
    <item>
      <title>Take date from the text variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361299#M1234028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a BW consultant  and I have one requirement please help .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one transparent table where i have a text field where i have a date stored in it.&lt;/P&gt;&lt;P&gt;I want this date in the date varaible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i am directly reading this tabel and putting it inyo the date varaible IT gives me error &lt;/P&gt;&lt;P&gt;as  : Target field and source field are mismatched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me put this date in the date variable from the text varaible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361299#M1234028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Take date from the text variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361300#M1234029</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 need to use the Offset to get the date into Date varaible from text variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EX : 25-03-2009 is in text varable then 

data :l_date type sy-datum
You need to write this way..
l_date = l_text+6(4).              " Year
l_date+4(2) = l_text+3(2).      " Month
l_date+6(2) = l_text(2).          " Day&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361300#M1234029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Take date from the text variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361301#M1234030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;declare your variable the same type as the transparent table where you have the text field which stores date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ztab is the table, and date is the field in the table, in your program, declare the variable as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_date like ztab-date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the logic, move the data like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_date = ztab-date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361301#M1234030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Take date from the text variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361302#M1234031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Does this date always come at the same position. Then you can use offset to access it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;v_date = v_text+4(8).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361302#M1234031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Take date from the text variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361303#M1234032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to  Avinash's comment: This depends on the format of the date in the text field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avinash's comment is correct if, and only if the date in the text field is formatted like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20082603&lt;/P&gt;&lt;P&gt;YYYYMMDD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361303#M1234032</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-26T06:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Take date from the text variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361304#M1234033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LENGHT of text vaiable is  60 char and value stored in it is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text_variable=20090121.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me what will be code.... (data  is stored in the varaible left to right OR left to right)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361304#M1234033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Take date from the text variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361305#M1234034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first shift the data to the left&lt;/P&gt;&lt;P&gt;SHIFT &amp;lt;variable&amp;gt; LEFT DELETING LEADING SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then determine the format you want and do like Avinash suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; Left to right OR left to right &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Mar 26, 2009 8:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361305#M1234034</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-26T07:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Take date from the text variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361306#M1234035</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; Does the date always start at the first position. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;v_date = text_variable+0(8).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 07:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361306#M1234035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T07:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Take date from the text variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361307#M1234036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 09:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-date-from-the-text-variable/m-p/5361307#M1234036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T09:01:16Z</dc:date>
    </item>
  </channel>
</rss>

