<?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 need help to write loop queries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-write-loop-queries/m-p/3650176#M879129</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;Can anyone help me out to write correct syntax for the following data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOOP ( IT-ACTUAL &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/STRONG&gt; Moving the filds of IT-ACTUAL to IT-EXIT (Exit table of report)&lt;/P&gt;&lt;P&gt;IT-ACTUAL-GDATU to IT-EXIT-GDATU&lt;/P&gt;&lt;P&gt;IT-ACTUAL-KURST to IT-EXIT- KURST&lt;/P&gt;&lt;P&gt;IT-ACTUAL-FCURR to IT-EXIT-FCURR&lt;/P&gt;&lt;P&gt;IT-ACTUAL-TCURR to IT-EXIT-TCURR&lt;/P&gt;&lt;P&gt;IT-ACTUAL-UKURS to IT-EXIT-UKURS&lt;/P&gt;&lt;P&gt;IT-ACTUAL-FCURR to IT-EXIT-UKURS&lt;/P&gt;&lt;P&gt;IT-ACTUAL-TCURR to IT-EXIT-UKURS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Obtain User (user that updated exchange rate)&lt;/STRONG&gt;	Read table IT- DBTABLOG &lt;/P&gt;&lt;P&gt;With key 	MANDT  = IT-ACTUAL-MANDT  &lt;/P&gt;&lt;P&gt; 	KURST   = IT-ACTUAL-KURST &lt;/P&gt;&lt;P&gt;FCURR   = IT-ACTUAL-FCURR &lt;/P&gt;&lt;P&gt;TCURR   = IT-ACTUAL-TCURR &lt;/P&gt;&lt;P&gt;GDATU  = IT-ACTUAL-GDATU.&lt;/P&gt;&lt;P&gt;Save IT-DBTABLOG-USERNAME into T-EXIT-USERNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Pushpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 08:04:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T08:04:09Z</dc:date>
    <item>
      <title>need help to write loop queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-write-loop-queries/m-p/3650176#M879129</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;Can anyone help me out to write correct syntax for the following data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOOP ( IT-ACTUAL &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/STRONG&gt; Moving the filds of IT-ACTUAL to IT-EXIT (Exit table of report)&lt;/P&gt;&lt;P&gt;IT-ACTUAL-GDATU to IT-EXIT-GDATU&lt;/P&gt;&lt;P&gt;IT-ACTUAL-KURST to IT-EXIT- KURST&lt;/P&gt;&lt;P&gt;IT-ACTUAL-FCURR to IT-EXIT-FCURR&lt;/P&gt;&lt;P&gt;IT-ACTUAL-TCURR to IT-EXIT-TCURR&lt;/P&gt;&lt;P&gt;IT-ACTUAL-UKURS to IT-EXIT-UKURS&lt;/P&gt;&lt;P&gt;IT-ACTUAL-FCURR to IT-EXIT-UKURS&lt;/P&gt;&lt;P&gt;IT-ACTUAL-TCURR to IT-EXIT-UKURS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Obtain User (user that updated exchange rate)&lt;/STRONG&gt;	Read table IT- DBTABLOG &lt;/P&gt;&lt;P&gt;With key 	MANDT  = IT-ACTUAL-MANDT  &lt;/P&gt;&lt;P&gt; 	KURST   = IT-ACTUAL-KURST &lt;/P&gt;&lt;P&gt;FCURR   = IT-ACTUAL-FCURR &lt;/P&gt;&lt;P&gt;TCURR   = IT-ACTUAL-TCURR &lt;/P&gt;&lt;P&gt;GDATU  = IT-ACTUAL-GDATU.&lt;/P&gt;&lt;P&gt;Save IT-DBTABLOG-USERNAME into T-EXIT-USERNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Pushpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-write-loop-queries/m-p/3650176#M879129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T08:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write loop queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-write-loop-queries/m-p/3650177#M879130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pushpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING IT-ACTUAL to IT-EXIT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-write-loop-queries/m-p/3650177#M879130</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-04-09T08:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write loop queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-write-loop-queries/m-p/3650178#M879131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;i have used the same code.. but getting the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*The internal table "IT_ACTUAL" has no Header line - explicit		*&lt;/P&gt;&lt;P&gt;*specification of an output area with "INTO wa" or "ASSIGNING &amp;lt;fs&amp;gt;" isrequired.		*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-write-loop-queries/m-p/3650178#M879131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T08:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: need help to write loop queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-write-loop-queries/m-p/3650179#M879132</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 create a work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
wa_actual like line of it_actual,
wa_exit like line of it_exit.

loop at it_actual into wa_actual.
move-corresponding wa_actual to wa_exit.

append wa_exit to it_exit.
clear wa_exit.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-to-write-loop-queries/m-p/3650179#M879132</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-04-09T08:24:38Z</dc:date>
    </item>
  </channel>
</rss>

