<?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: Logic to segregate a field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738776#M35203</link>
    <description>&lt;P&gt;Question already posted here: &lt;A href="https://answers.sap.com/questions/622149/divide-a-field-into-3-different-fields.html" target="test_blank"&gt;https://answers.sap.com/questions/622149/divide-a-field-into-3-different-fields.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;This question is closed. I've reopened the other one.&lt;/P&gt;
  &lt;P&gt;Please ask questions once and once only. If they need bumping up, you can add a comment.&lt;/P&gt;
  &lt;P&gt;Matt Billingham - Community Moderator&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2018 07:37:09 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2018-09-03T07:37:09Z</dc:date>
    <item>
      <title>Logic to segregate a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738771#M35198</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
  &lt;P&gt;I am stuck in a requirement wherein I need to segregate a field base on some values. w is The screenshot of what my debugger is below:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211389-screenshot001.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;The fields are from table AUSP. My requirement is that I have to &lt;U&gt;concatenate&lt;/U&gt; the values of ATWRT for &lt;U&gt;recurring&lt;/U&gt; values of ATINN (as highlighted above) and display the remaining values of ATWRT for non recurring values of ATINN. The output of the above table should be like below:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211391-screenshot001.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Just like for the 9 series above , the same goes for the rest of the series as well. So for the 12 series it will be like :&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/211392-screenshot001.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Can anyone please help me out with the logic for the above ?&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Manish&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 20:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738771#M35198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-01T20:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Logic to segregate a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738772#M35199</link>
      <description>&lt;P&gt;as your description I suppose that you want to group data base on OBJEK and ATINN.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;i think below logic should be work ( dont have system right now to check so you can base on this ideal to check yourself):&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;loop at itab into wa_source 
     group by ( objek = wa_source-objek atinn = wa_source-atinn )
     into wa_key.
  append wa_source to final_itab
         assigning field-symbols(&amp;lt;fs&amp;gt;). " here we have the group 
  loop at group wa_key into wa_mem.
    &amp;lt;fs&amp;gt;-atwrt = |{ &amp;lt;fs&amp;gt;-atwrt },{wa_mem-atwrt}|." here we concatente atwrt
  endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 08:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738772#M35199</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-09-02T08:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Logic to segregate a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738773#M35200</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Sorry but I am not able to understand your code. Can you tell me what is wa_key and wa_mem ? Also can u do it using a work area instead of field symbol ?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 09:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738773#M35200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-02T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Logic to segregate a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738774#M35201</link>
      <description>&lt;P&gt;Have you tried reading the ABAP documentation?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 14:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738774#M35201</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-09-02T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Logic to segregate a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738775#M35202</link>
      <description>&lt;P&gt;im using GROUP BY in internal table to achive your goal, you should copy the source code to your system and check. its ok to do it using work area, you can try the old technical AT END to concatenate data and append it to one temporary table, its simply logic thinking not something complicate.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 23:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738775#M35202</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-09-02T23:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logic to segregate a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738776#M35203</link>
      <description>&lt;P&gt;Question already posted here: &lt;A href="https://answers.sap.com/questions/622149/divide-a-field-into-3-different-fields.html" target="test_blank"&gt;https://answers.sap.com/questions/622149/divide-a-field-into-3-different-fields.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;This question is closed. I've reopened the other one.&lt;/P&gt;
  &lt;P&gt;Please ask questions once and once only. If they need bumping up, you can add a comment.&lt;/P&gt;
  &lt;P&gt;Matt Billingham - Community Moderator&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 07:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738776#M35203</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-09-03T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Logic to segregate a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738777#M35204</link>
      <description>&lt;P&gt;Thanks Quynh, I got the result using AT END OF. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 11:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-segregate-a-field/m-p/738777#M35204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-03T11:04:14Z</dc:date>
    </item>
  </channel>
</rss>

