<?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: Changing date during loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733420#M34647</link>
    <description>&lt;P&gt;Shouldn't be an issue as long as you fill the workarea for the second table inside the loop. Try it out.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Oct 2018 10:45:29 GMT</pubDate>
    <dc:creator>ArthurParisius</dc:creator>
    <dc:date>2018-10-26T10:45:29Z</dc:date>
    <item>
      <title>Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733410#M34637</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I am trying to change a date into the desired format 12.12.2012.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;LOOP AT DATATAB INTO LS_DATATAB .
 CONCATENATE LS_DATATAB-P0016_EINDT+6(2) LS_DATATAB-P0016_EINDT+4(2) LS_DATATAB-P0016_EINDT(4) INTO DATA(LV_DATE3) SEPARATED BY '.'.
 LS_DATATAB-P0016_EINDT = LV_DATE3.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;However now the date is short by 2 chars so its only 12.12.20&lt;/P&gt;
  &lt;P&gt;Can anybody help me?&lt;/P&gt;
  &lt;P&gt;Thank You in Advance!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 07:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733410#M34637</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2018-10-26T07:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733411#M34638</link>
      <description>&lt;P&gt;How did you define LS_DATATAB-P0016_EINDT, you might need to change its type.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 08:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733411#M34638</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2018-10-26T08:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733412#M34639</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;P0016_EINDT TYPE D&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I declare it char15 for ex or string it dumps and says the field is not the same format&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 08:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733412#M34639</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2018-10-26T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733413#M34640</link>
      <description>&lt;P&gt;Maybe also try defining the LV_DATE3 outside the loop at the same type you define EINDT.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 08:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733413#M34640</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2018-10-26T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733414#M34641</link>
      <description>&lt;P&gt;that's the way I declare it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; the two type D,then I change it to char it dumps&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 08:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733414#M34641</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2018-10-26T08:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733415#M34642</link>
      <description>&lt;P&gt;I need a way to convert date column to char, a function module or smth&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 09:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733415#M34642</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2018-10-26T09:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733416#M34643</link>
      <description>&lt;P&gt;Strange I did a little test with your type of coding and I got no issues. My simple code is here below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types: BEGIN OF ty_itab,
        datum type c LENGTH 10,
      end of ty_itab.

data: itab TYPE TABLE OF ty_itab,
      l_itab TYPE ty_itab.

l_itab-datum = sy-datum.
append l_itab TO itab.

loop at itab INTO l_itab.
  CONCATENATE l_itab-datum+6(2) l_itab-datum+4(2) l_itab-datum(4) INTO DATA(LV_DATE2) SEPARATED BY '.'.
  l_itab-datum = lv_date2.
  write: / l_itab-datum.
  modify itab FROM l_itab.
endloop.
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Oct 2018 09:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733416#M34643</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2018-10-26T09:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733417#M34644</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Nope,Its necessary that the LS_DATATAB-P0016_EINDT needs to be type D and during the loop,I need to change it to append it to another table!&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Oct 2018 09:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733417#M34644</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2018-10-26T09:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733418#M34645</link>
      <description>&lt;P&gt;testing this code gave me the correct results. so the question is, is ls_datatab the type of datatab or of your second table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types: BEGIN OF ty_itab,
        datum type d,
      end of ty_itab.

data: itab TYPE TABLE OF ty_itab,
      l_itab TYPE ty_itab.

Types: BEGIN OF ty_itab2,
        datum type c LENGTH 10,
      end of ty_itab2.

data: itab2 TYPE TABLE OF ty_itab2,
      l_itab2 TYPE ty_itab2.

l_itab-datum = sy-datum.
append l_itab TO itab.

loop at itab INTO l_itab.
  CONCATENATE l_itab-datum+6(2) l_itab-datum+4(2) l_itab-datum(4) INTO DATA(LV_DATE2) SEPARATED BY '.'.
  l_itab2-datum = lv_date2.
  APPEND l_itab2 to itab2.
endloop.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Oct 2018 10:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733418#M34645</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2018-10-26T10:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733419#M34646</link>
      <description>&lt;P&gt;okay this works only for one field what about for 2 or three other fields that have nothing to do with it&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 10:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733419#M34646</guid>
      <dc:creator>former_member2492</dc:creator>
      <dc:date>2018-10-26T10:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing date during loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733420#M34647</link>
      <description>&lt;P&gt;Shouldn't be an issue as long as you fill the workarea for the second table inside the loop. Try it out.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 10:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-date-during-loop/m-p/733420#M34647</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2018-10-26T10:45:29Z</dc:date>
    </item>
  </channel>
</rss>

