<?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: ABAP About modify BAPI internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391403#M1994746</link>
    <description>&lt;P&gt;If you use REFERENCE TO then you do not need the MODIFY statement. That's best. &lt;/P&gt;&lt;P&gt;As to which LOOP sequence is better - it depends on your internal tables' definitions (with or without key, what is the condition) and the number of records. Whether these are sorted or not. &lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mateusz&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab2 REFERENCE INTO ld_itab2.
  READ TABLE itab1 REFERENCE INTO ld_itab1 WITH...
  ld_itab2-&amp;gt;field = ld_itab1-&amp;gt;field. 
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 03 Apr 2021 10:31:51 GMT</pubDate>
    <dc:creator>MateuszAdamus</dc:creator>
    <dc:date>2021-04-03T10:31:51Z</dc:date>
    <item>
      <title>ABAP About modify BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391400#M1994743</link>
      <description>&lt;P&gt;Hi Expert team:&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;we have 2 internal table:&lt;/P&gt;
  &lt;P&gt;ITAB1 has same structure like bapi2017_gm_item_create&lt;/P&gt;
  &lt;P&gt;ITAB2 has more fields and some fields like in bapi2017_gm_item_create &lt;/P&gt;
  &lt;P&gt;We would like to modify ITAB1 so we can pass information to BAPI call later.&lt;/P&gt;
  &lt;P&gt;How to modify ITAB1 with information from ITAB2 pls.&lt;BR /&gt;Both ITAB1 and ITAB2 has same field which is PO_Number and PO_Item.&lt;/P&gt;
  &lt;P&gt;We are not sure how to loop:&lt;/P&gt;
  &lt;P&gt;Should it be like this&lt;/P&gt;
  &lt;P&gt;Loop ITAB2&lt;/P&gt;
  &lt;P&gt; Read ITAB1 with key fields ITAB2-PO_Number and ITAB2-PO_Item&lt;/P&gt;
  &lt;P&gt; Move ITAB2-field1 to ITAB1-field1&lt;/P&gt;
  &lt;P&gt; Modify ITAB1&lt;/P&gt;
  &lt;P&gt;Endloop.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;pls advise and many thanks.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 09:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391400#M1994743</guid>
      <dc:creator>former_member709286</dc:creator>
      <dc:date>2021-04-03T09:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP About modify BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391401#M1994744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do it like you wrote. &lt;/P&gt;&lt;P&gt;Or you can try &lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abapmove-corresponding.htm"&gt;MOVE-CORRESPONDING&lt;/A&gt;. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE-CORRESPONDING itab2 TO itab1. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mateusz&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 09:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391401#M1994744</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-04-03T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP About modify BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391402#M1994745</link>
      <description>&lt;P&gt;A few more questions:&lt;/P&gt;&lt;P&gt;1.Which one is better&lt;/P&gt;&lt;P&gt;Loop ITAB1&lt;/P&gt;&lt;P&gt;  Read ITAB2&lt;/P&gt;&lt;P&gt;Endloop&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;or &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;loop ITAB2&lt;/P&gt;&lt;P&gt; Read iTAB1&lt;/P&gt;&lt;P&gt;Endloop&lt;/P&gt;&lt;P&gt;2. When using MoDIFY do I need to MoDIFY with sy-tabix or not?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pls help again and many thanks.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 10:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391402#M1994745</guid>
      <dc:creator>former_member709286</dc:creator>
      <dc:date>2021-04-03T10:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP About modify BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391403#M1994746</link>
      <description>&lt;P&gt;If you use REFERENCE TO then you do not need the MODIFY statement. That's best. &lt;/P&gt;&lt;P&gt;As to which LOOP sequence is better - it depends on your internal tables' definitions (with or without key, what is the condition) and the number of records. Whether these are sorted or not. &lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mateusz&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab2 REFERENCE INTO ld_itab2.
  READ TABLE itab1 REFERENCE INTO ld_itab1 WITH...
  ld_itab2-&amp;gt;field = ld_itab1-&amp;gt;field. 
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Apr 2021 10:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391403#M1994746</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-04-03T10:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP About modify BAPI internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391404#M1994747</link>
      <description>&lt;P&gt;Here lt_itab1 and lt_itab2 have the same type, but it works also for two tables, which with a different type (bapi2017_gm_item_create_t is a table of bapi2017_gm_item_create).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA(lt_itab1) = VALUE bapi2017_gm_item_create_t( ( po_number = '1234567890' po_item = '12345') ).
 DATA(lt_itab2) = CORRESPONDING bapi2017_gm_item_create_t( lt_itab1 ).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Apr 2021 12:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-about-modify-bapi-internal-table/m-p/12391404#M1994747</guid>
      <dc:creator>touzik_itc</dc:creator>
      <dc:date>2021-04-03T12:20:45Z</dc:date>
    </item>
  </channel>
</rss>

