<?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: Populating internal table field with same value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516236#M1424339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this out: (Here looping is used only to fille the itab and display the records)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types: begin of ty_name,
         first_name(20),
         last_name(20),
       end of ty_name.

data: t_name type standard table of ty_name,
      wa_name like line of t_name.


do 5 times.
  wa_name-first_name = 'John'.
  wa_name-last_name = 'Myers'.
  append wa_name to t_name.
enddo.


wa_name-last_name = 'Mathew'.
MODIFY t_name FROM WA_NAME TRANSPORTING last_name
  where first_name = 'John'.

clear WA_NAME.
loop at t_name into wa_name.
  write:/ wa_name-first_name, ', ', wa_name-last_name.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2010 18:11:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-08T18:11:22Z</dc:date>
    <item>
      <title>Populating internal table field with same value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516232#M1424335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there syntax that will fill a field value in every record in an internal table without looping?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 16:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516232#M1424335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T16:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Populating internal table field with same value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516233#M1424336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check MODIFY statement for table with where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on Modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 16:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516233#M1424336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T16:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Populating internal table field with same value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516234#M1424337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use MODIFY with the TRANSPORTING option. Check the online help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
name1 = 'ABHI'
MODIFY TABLE ITab FROM WA TRANSPORTING name1where name2 = 'THAPAR' .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 16:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516234#M1424337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T16:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Populating internal table field with same value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516235#M1424338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without looping or without using the LOOP statement??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 16:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516235#M1424338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T16:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Populating internal table field with same value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516236#M1424339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this out: (Here looping is used only to fille the itab and display the records)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types: begin of ty_name,
         first_name(20),
         last_name(20),
       end of ty_name.

data: t_name type standard table of ty_name,
      wa_name like line of t_name.


do 5 times.
  wa_name-first_name = 'John'.
  wa_name-last_name = 'Myers'.
  append wa_name to t_name.
enddo.


wa_name-last_name = 'Mathew'.
MODIFY t_name FROM WA_NAME TRANSPORTING last_name
  where first_name = 'John'.

clear WA_NAME.
loop at t_name into wa_name.
  write:/ wa_name-first_name, ', ', wa_name-last_name.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 18:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516236#M1424339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T18:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Populating internal table field with same value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516237#M1424340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;APPEND LINES OF itab1 TO itab2.&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;line&amp;gt; INTO TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check f1 help for this statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 19:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516237#M1424340</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-08T19:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Populating internal table field with same value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516238#M1424341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't know this, after studying online help on MODIFY itab, ABAP Statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MODIFY itab - itab_lines&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Syntax&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;... itab FROM wa TRANSPORTING comp1 comp2 ... WHERE log_exp.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
    ls_t100 TYPE t100,
    lt_t100 TYPE TABLE OF t100.

  SELECT * INTO TABLE lt_t100 FROM t100 UP TO 20 ROWS.
  MODIFY lt_t100 FROM ls_t100 TRANSPORTING text where text &amp;amp;lt;&amp;amp;gt; ls_t100-text .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clears field text in all rows of lt_t100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after many years of field-symbols finally a reason to use MODIFY again &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2010 00:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516238#M1424341</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-09T00:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Populating internal table field with same value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516239#M1424342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But ABAP must do an internal loop through the table to find and replace the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 21:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516239#M1424342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-11T21:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Populating internal table field with same value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516240#M1424343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whatever an internal loop in the KERNEL may be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 11:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table-field-with-same-value/m-p/6516240#M1424343</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-12T11:20:53Z</dc:date>
    </item>
  </channel>
</rss>

