<?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: Fill internal table based on two columns in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369471#M1993576</link>
    <description>&lt;P&gt;Thank
you for visiting SAP Community to get answers to your questions. Since this is
your first question, I recommend that you familiarize yourself with our Q&amp;amp;A
Tutorial: &lt;A href="https://developers.sap.com/tutorials/community-qa.html"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;,
as it provides tips for preparing questions that draw responses from our
members.&lt;BR /&gt;Should
you wish, you can revise your question by selecting Actions, then Edit.&lt;/P&gt;&lt;P&gt;By adding a picture to your profile you encourage readers to
respond:&lt;A href="https://www.youtube.com/watch?v=46bt1juWUUM"&gt;https://www.youtube.com/watch?v=46bt1juWUUM&lt;/A&gt;&lt;BR /&gt;
Many thanks! &lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2021 12:24:53 GMT</pubDate>
    <dc:creator>lenastodal</dc:creator>
    <dc:date>2021-02-09T12:24:53Z</dc:date>
    <item>
      <title>Fill internal table based on two columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369470#M1993575</link>
      <description>&lt;P&gt;Hi ABAPers!&lt;/P&gt;
  &lt;P&gt;I have the sequent request:&lt;/P&gt;
  &lt;P&gt;from an int table with two columns "KEY" and "VALUE" I have to create another one like this:&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;as is: &lt;/P&gt;
  &lt;P&gt;KEY |VALUE |&lt;/P&gt;
  &lt;P&gt;ID |0001 | &lt;/P&gt;
  &lt;P&gt; NAME |bob | &lt;/P&gt;
  &lt;P&gt; SURNAME|smith |&lt;/P&gt;
  &lt;P&gt;ID |0002 |&lt;/P&gt;
  &lt;P&gt; NAME |jack | &lt;/P&gt;
  &lt;P&gt; SURNAME|black |&lt;/P&gt;
  &lt;P&gt;to be:&lt;/P&gt;
  &lt;P&gt;ID |NAME |SURNAME |&lt;/P&gt;
  &lt;P&gt; 0001 |bob |smith |&lt;/P&gt;
  &lt;P&gt; 0002 |jack |black |&lt;/P&gt;
  &lt;P&gt;Can someone help me?&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;Vil&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369470#M1993575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-02-09T12:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table based on two columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369471#M1993576</link>
      <description>&lt;P&gt;Thank
you for visiting SAP Community to get answers to your questions. Since this is
your first question, I recommend that you familiarize yourself with our Q&amp;amp;A
Tutorial: &lt;A href="https://developers.sap.com/tutorials/community-qa.html"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;,
as it provides tips for preparing questions that draw responses from our
members.&lt;BR /&gt;Should
you wish, you can revise your question by selecting Actions, then Edit.&lt;/P&gt;&lt;P&gt;By adding a picture to your profile you encourage readers to
respond:&lt;A href="https://www.youtube.com/watch?v=46bt1juWUUM"&gt;https://www.youtube.com/watch?v=46bt1juWUUM&lt;/A&gt;&lt;BR /&gt;
Many thanks! &lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369471#M1993576</guid>
      <dc:creator>lenastodal</dc:creator>
      <dc:date>2021-02-09T12:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table based on two columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369472#M1993577</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;avilmercati&lt;/SPAN&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:
  BEGIN OF source,
    key TYPE string,
    value TYPE string,
  END OF source,

  BEGIN OF target,
    id TYPE string,
    name TYPE string, 
    surname TYPE string,
  END OF target.

DATA:
  lv_field_count TYPE i,
  ls_target TYPE target,
  lt_target TYPE TABLE OF target.

FIELD-SYMBOLS:
  &amp;lt;lv_field&amp;gt; TYPE any.

CLEAR ls_target.
LOOP AT lt_source REFERENCE INTO DATA(ld_source).
  ASSIGN COMPONENT ld_source-&amp;gt;key OF STRUCTURE ls_target TO &amp;lt;lv_field&amp;gt;.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.

  &amp;lt;lv_field&amp;gt; = ld_source-&amp;gt;value.
  lv_field_count = lv_field_count + 1.

  IF lv_field_count = 3.
    INSERT ls_target INTO TABLE lt_target.

    CLEAR:
      lv_field_count.
      ls_target.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Mateusz&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369472#M1993577</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-02-09T12:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table based on two columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369473#M1993578</link>
      <description>&lt;P&gt;Use    FOR ALL ENTRIES&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 13:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369473#M1993578</guid>
      <dc:creator>former_member672648</dc:creator>
      <dc:date>2021-02-09T13:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table based on two columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369474#M1993579</link>
      <description>&lt;P&gt;Please use formatting options (CODE button).&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;as is:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;KEY    |VALUE |&lt;BR /&gt;ID     |0001  |&lt;BR /&gt;NAME   |bob   |&lt;BR /&gt;SURNAME|smith |&lt;BR /&gt;ID     |0002  |&lt;BR /&gt;NAME   |jack  |&lt;BR /&gt;SURNAME|black |&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;to be:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ID   |NAME |SURNAME |&lt;BR /&gt;0001 |bob  |smith   |&lt;BR /&gt;0002 |jack |black   |&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Feb 2021 13:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369474#M1993579</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-02-09T13:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table based on two columns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369475#M1993580</link>
      <description>&lt;P&gt;Nice code Mateusz!&lt;BR /&gt;It works fine!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 17:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-based-on-two-columns/m-p/12369475#M1993580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-02-09T17:35:29Z</dc:date>
    </item>
  </channel>
</rss>

