<?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: collect issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716633#M1872688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="42584" data-username="eman.elgammal" href="https://answers.sap.com/people/eman.elgammal" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; background: transparent;"&gt;Eman Elgammal&lt;/A&gt;, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem you are facing is not at all odd. In fact it is quite obvious in nature. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP engine resets work area to ensure that control level processing in case of AT-ENDAT is carried out properly.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following 3 rules must be observed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The current control key of the work area remain unchanged. &lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;All components with a character-like &lt;A class="grey" style="color: #505050;" title="Glossary Entry"&gt;flat&lt;/A&gt; data type to the right of the current control key are set to character&lt;STRONG&gt; "*"&lt;/STRONG&gt; in every position. &lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;All the other components to the right of the current control key are set to their &lt;A class="grey" style="color: #505050;" title="Glossary Entry"&gt;&lt;STRONG&gt;initial value&lt;/STRONG&gt;&lt;/A&gt;. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, 3rd rule is applied as field you are referring to is of type quantity. Hence it will be reset to its initial value as &lt;STRONG&gt;0&lt;/STRONG&gt;. A simple work around would be to copy the content of the work area just before it's values are reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, like &lt;STRONG style="font-size: 11px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="18279" data-externalid="" data-presence="null" data-userid="311021" data-username="raymond.giuseppi" href="https://answers.sap.com/people/raymond.giuseppi" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; background: transparent;"&gt;Raymond Giuseppi&lt;/A&gt;&lt;/STRONG&gt; mentioned, go through &lt;SPAN style="color: #333333; font-size: 12px;"&gt;online documention for &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 12pt; font-family: inherit; background: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://help.sap.com/abapdocu_731/en/abapat_itab.htm" style="font-size: 12px; color: #3778c7; background: #ffffff;"&gt;AT - itab&lt;/A&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;It will clear your doubt.&lt;/SPAN&gt;&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;&lt;/P&gt;&lt;P&gt;Nik &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1063/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 11:53:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-28T11:53:40Z</dc:date>
    <item>
      <title>collect issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716629#M1872684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debugg Mode when i run the GT_VBRP-fkimg1 have value when go to statement at new maktl the value was zero . why ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;GT_VBRP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NEW &lt;/SPAN&gt;MATKL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NEW &lt;/SPAN&gt;MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GT_VBRP-fkimg12 = GT_VBRP-fkimg12 + GT_VBRP-fkimg1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GT_VBRP-WAVWR1&amp;nbsp; = GT_VBRP-WAVWR1&amp;nbsp; + GT_VBRP-WAVWR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GT_VBRP-NETWR1&amp;nbsp; = GT_VBRP-NETWR1&amp;nbsp; + GT_VBRP-NETWR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;COLLECT &lt;/SPAN&gt;GT_VBRP &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;GT_VBRP2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDAT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDAT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ENDLOOP.&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;Eman &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 08:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716629#M1872684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-23T08:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: collect issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716630#M1872685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just read doculmentation of &lt;A href="http://help.sap.com/abapdocu_731/en/abapat_itab.htm"&gt;AT - itab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(look for work area between AT/ENDAT for field to the right of the key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NB: Usually AT NEW/AT END OF are used to prepare and append to final table, when ADD statements olr MIN/MAX check are executed out of such block /OR/ COLLECT statement is used to bypass those constraints, but both statements together may be surprising...&lt;/EM&gt;&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;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 08:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716630#M1872685</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-10-23T08:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: collect issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716631#M1872686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear Raymond ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i debug first statement my itab has data but when move to next statement AT New MATKL the value was zero and stars why please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/570998" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/570999" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 07:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716631#M1872686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-26T07:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: collect issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716632#M1872687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read actually and carefully the online document &lt;A class="jive-link-external-small" href="http://help.sap.com/abapdocu_731/en/abapat_itab.htm"&gt;&lt;STRONG style="font-size: 12pt;"&gt;AT - itab&lt;/STRONG&gt;&lt;/A&gt;, what happen at fields right of break field is clearly described (* for character fields, all other types are cleared to initial value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716632#M1872687</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-10-27T15:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: collect issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716633#M1872688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="42584" data-username="eman.elgammal" href="https://answers.sap.com/people/eman.elgammal" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; background: transparent;"&gt;Eman Elgammal&lt;/A&gt;, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem you are facing is not at all odd. In fact it is quite obvious in nature. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP engine resets work area to ensure that control level processing in case of AT-ENDAT is carried out properly.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following 3 rules must be observed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The current control key of the work area remain unchanged. &lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;All components with a character-like &lt;A class="grey" style="color: #505050;" title="Glossary Entry"&gt;flat&lt;/A&gt; data type to the right of the current control key are set to character&lt;STRONG&gt; "*"&lt;/STRONG&gt; in every position. &lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;All the other components to the right of the current control key are set to their &lt;A class="grey" style="color: #505050;" title="Glossary Entry"&gt;&lt;STRONG&gt;initial value&lt;/STRONG&gt;&lt;/A&gt;. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, 3rd rule is applied as field you are referring to is of type quantity. Hence it will be reset to its initial value as &lt;STRONG&gt;0&lt;/STRONG&gt;. A simple work around would be to copy the content of the work area just before it's values are reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, like &lt;STRONG style="font-size: 11px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="18279" data-externalid="" data-presence="null" data-userid="311021" data-username="raymond.giuseppi" href="https://answers.sap.com/people/raymond.giuseppi" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; background: transparent;"&gt;Raymond Giuseppi&lt;/A&gt;&lt;/STRONG&gt; mentioned, go through &lt;SPAN style="color: #333333; font-size: 12px;"&gt;online documention for &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 12pt; font-family: inherit; background: transparent;"&gt;&lt;A class="jive-link-external-small" href="http://help.sap.com/abapdocu_731/en/abapat_itab.htm" style="font-size: 12px; color: #3778c7; background: #ffffff;"&gt;AT - itab&lt;/A&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;It will clear your doubt.&lt;/SPAN&gt;&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;&lt;/P&gt;&lt;P&gt;Nik &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1063/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 11:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-issue/m-p/10716633#M1872688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T11:53:40Z</dc:date>
    </item>
  </channel>
</rss>

