<?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>Question Re: How to add rows to table using a loop expression in BRFPlus? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-add-rows-to-table-using-a-loop-expression-in-brfplus/qaa-p/426123#M55861</link>
    <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;can you check if the following approach is working for you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Remove the result data object from your loop expression (e. g. put in a basic element)&lt;/LI&gt;&lt;LI&gt;The model of your option 1 should work then&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have tested it in a very simple scenario as depicted in the two screenshots and it works:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;BRFplus function with two tables with three text fields (one as context, one as result data object)&lt;BR /&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/26346-brfplusworkbench1.png" /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Loop expression in analogy to your logic&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/26348-brfplusworkbench-2.png" /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2017 11:02:35 GMT</pubDate>
    <dc:creator>christianlechne</dc:creator>
    <dc:date>2017-03-21T11:02:35Z</dc:date>
    <item>
      <title>How to add rows to table using a loop expression in BRFPlus?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-rows-to-table-using-a-loop-expression-in-brfplus/qaq-p/426122</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I want to fill a table using a loop expression, I have tried two options but I have not been successful. &lt;/P&gt;&lt;P&gt;(I am showing simple examples of what I want to do to, to make myselft understand)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First option: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have informed the structure "estruct_bases_liquid" (which is related with table "Taula_bases_liquidab") and then I try to insert values to this table from the structure &lt;/P&gt;&lt;P&gt;"estruct_bases_liquid".&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/26120-vscts.png" /&gt;&lt;/P&gt;&lt;P&gt; When I activated it no problem, but when I try to simulate my aplication BRF+ show me an error: "Multiple use of identical objects in context not allowed":&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/26121-pgagi.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second option: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I filled another structure "estruct_bases_liqui2" and I used this to fille the table "Taula_bases_liquidab" but when I active the error is "": &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/26123-0xi6d.png" /&gt;&lt;/P&gt;&lt;P&gt; Could you tell me please what I am doing wrong?&lt;/P&gt;&lt;P&gt;Thanks!! &lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 06:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-rows-to-table-using-a-loop-expression-in-brfplus/qaq-p/426122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-20T06:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add rows to table using a loop expression in BRFPlus?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-rows-to-table-using-a-loop-expression-in-brfplus/qaa-p/426123#M55861</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;can you check if the following approach is working for you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Remove the result data object from your loop expression (e. g. put in a basic element)&lt;/LI&gt;&lt;LI&gt;The model of your option 1 should work then&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have tested it in a very simple scenario as depicted in the two screenshots and it works:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;BRFplus function with two tables with three text fields (one as context, one as result data object)&lt;BR /&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/26346-brfplusworkbench1.png" /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Loop expression in analogy to your logic&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/26348-brfplusworkbench-2.png" /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 11:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-rows-to-table-using-a-loop-expression-in-brfplus/qaa-p/426123#M55861</guid>
      <dc:creator>christianlechne</dc:creator>
      <dc:date>2017-03-21T11:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add rows to table using a loop expression in BRFPlus?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-add-rows-to-table-using-a-loop-expression-in-brfplus/qaa-p/426124#M55862</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/1048/christianlechner.html"&gt;Christian&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thank you  for your post it very
useful  for me. &lt;/P&gt;&lt;P&gt;I new to the BRF+ I have one doubt&lt;/P&gt;&lt;P&gt;How we are creating below statements. Could you
please provide the details steps  &lt;/P&gt;&lt;OL&gt;
 
&lt;LI&gt;Change
     text_struc2-text4 from value of text_table-text1&lt;/LI&gt; 
&lt;LI&gt;Insert
     values into text_table2 from text_struc2&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1708558-brf-loop.png" /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 24 Jul 2019 09:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-add-rows-to-table-using-a-loop-expression-in-brfplus/qaa-p/426124#M55862</guid>
      <dc:creator>satish_kumar118</dc:creator>
      <dc:date>2019-07-24T09:27:35Z</dc:date>
    </item>
  </channel>
</rss>

