<?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: MODIFY ALL LINES IN INTERNAL TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716369#M313119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use any of them but with where condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- MODIFY itab       [FROM wa] [INDEX idx]. &lt;/P&gt;&lt;P&gt;                  [TRANSPORTING f1 ... fn [WHERE cond]]. &lt;/P&gt;&lt;P&gt;- MODIFY itab       [FROM wa] &lt;/P&gt;&lt;P&gt;                  TRANSPORTING f1 ... fn WHERE cond.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Nov 2006 05:11:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-18T05:11:09Z</dc:date>
    <item>
      <title>MODIFY ALL LINES IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716366#M313116</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;How to modify more than one line in an internal table? I tried using update, failed as update is not for internal tables. Your help is appriciated .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;surya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 22:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716366#M313116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T22:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY ALL LINES IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716367#M313117</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;Use the MODIFY statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;MATNR TYPE MATNR,&lt;/P&gt;&lt;P&gt;FLAG TYPE FLAG,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-MATNR = '121212'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-MATNR = '121223'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-FLAG = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODIFY ITAB TRANSPORTING FLAG&lt;/P&gt;&lt;P&gt;       WHERE FLAG IS INITIAL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / 'MATNR', ITAB-MATNR, ' - FLAG - ', ITAB-FLAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 22:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716367#M313117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T22:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY ALL LINES IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716368#M313118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To change one or more lines using a condition, use the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODIFY itab FROM wa TRANSPORTING f1 f2 ... WHERE cond.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This processes all of the lines that meet the logical condition cond. The logical expression cond can consist of more than one comparison. In each comparison, the first operand must be a component of the line structure. If the table lines are not structured, the first operand can also be the expression TABLE_LINE. The comparison then applies to the entire line. If the line type of the internal table contains object reference variables as component comp or if the entire line type is a reference variable, the attributes of the attr object to which the respective line reference points can be specified as comparison values using comp-&amp;gt;attr or table_line-&amp;gt;attr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work area wa, which must be compatible with the line type of the internal table, contains the new contents, which in turn will be assigned to the relevant table line using the TRANSPORTING addition. Unlike the above MODIFYstatement, the TRANSPORTING addition is not optional here. Furthermore, you can only modify the key fields of the internal table if it is a standard table. If at least one line is changed, the system sets sy-subrc to 0, otherwise to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_int_tables_modify .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line,&lt;/P&gt;&lt;P&gt;        col1 TYPE i,&lt;/P&gt;&lt;P&gt;        col2 TYPE i,&lt;/P&gt;&lt;P&gt;      END OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE HASHED TABLE OF line WITH UNIQUE KEY col1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 4 TIMES.&lt;/P&gt;&lt;P&gt;  line-col1 = sy-index.&lt;/P&gt;&lt;P&gt;  line-col2 = sy-index ** 2.&lt;/P&gt;&lt;P&gt;  INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line-col1 = 2.&lt;/P&gt;&lt;P&gt;line-col2 = 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY TABLE itab FROM line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO line.&lt;/P&gt;&lt;P&gt;  WRITE: / line-col1, line-col2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list output is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         1        1&lt;/P&gt;&lt;P&gt;         2      100&lt;/P&gt;&lt;P&gt;         3        9&lt;/P&gt;&lt;P&gt;         4       16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program fills a hashed table with a list of square numbers. The MODIFY statement changes the line of the table in which the key field col1 has the value 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 03:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716368#M313118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T03:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY ALL LINES IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716369#M313119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use any of them but with where condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- MODIFY itab       [FROM wa] [INDEX idx]. &lt;/P&gt;&lt;P&gt;                  [TRANSPORTING f1 ... fn [WHERE cond]]. &lt;/P&gt;&lt;P&gt;- MODIFY itab       [FROM wa] &lt;/P&gt;&lt;P&gt;                  TRANSPORTING f1 ... fn WHERE cond.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 05:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716369#M313119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T05:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY ALL LINES IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716370#M313120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;how to find enhancement name in menu exit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to find the enhancement name of function code of the user exit in menu exit ?&lt;/P&gt;&lt;P&gt;here i know the user exit of the function code.i want to know the enhancement name of the particular function code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example : function code '&lt;EM&gt;OBB'. how to find the enhancement name of the '&lt;/EM&gt;OBB'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to find enhancement name in screen exit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 05:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716370#M313120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T05:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: MODIFY ALL LINES IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716371#M313121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     itab-matnr = 'test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      modify itab transporting matnr where matnr is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 05:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-all-lines-in-internal-table/m-p/1716371#M313121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T05:34:57Z</dc:date>
    </item>
  </channel>
</rss>

