<?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: Help on Modify. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382760#M186635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are appending ,&lt;/P&gt;&lt;P&gt;Give the same values for the folowing fields.&lt;/P&gt;&lt;P&gt;posex &lt;/P&gt;&lt;P&gt;posnr &lt;/P&gt;&lt;P&gt;tdid &lt;/P&gt;&lt;P&gt;tsspras &lt;/P&gt;&lt;P&gt;tdformat.&lt;/P&gt;&lt;P&gt;GIve the additional text in the tdline field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jun 2006 11:06:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-13T11:06:36Z</dc:date>
    <item>
      <title>Help on Modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382754#M186629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends, &lt;/P&gt;&lt;P&gt; i am updating the following internal table XE1EDPT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; this is having the following fields, &lt;/P&gt;&lt;P&gt; posex &lt;/P&gt;&lt;P&gt; posnr &lt;/P&gt;&lt;P&gt; tdid &lt;/P&gt;&lt;P&gt; tsspras &lt;/P&gt;&lt;P&gt; tdline &lt;/P&gt;&lt;P&gt; tdformat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; already its having one record, &lt;/P&gt;&lt;P&gt; now in my program i want to add some more records to it, &lt;/P&gt;&lt;P&gt; even if i give Append, the first record got over written, &lt;/P&gt;&lt;P&gt; how to add more records to this with out over writting the already existing records ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards, &lt;/P&gt;&lt;P&gt;Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 10:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382754#M186629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T10:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382755#M186630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt; can you show  your code?&lt;/P&gt;&lt;P&gt; Looks like you are extending an idoc.&lt;/P&gt;&lt;P&gt;check this link to know more.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 10:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382755#M186630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T10:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382756#M186631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MODIFY TABLE &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ...].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work area &amp;lt;wa&amp;gt;, which must be compatible with the line type of the internal table, plays a double role in this statement. Not only it is used to find the line that you want to change, but it also contains the new contents. The system searches the internal table for the line whose table key corresponds to the key fields in &amp;lt;wa&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system searches for the relevant lines as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard tables&lt;/P&gt;&lt;P&gt;Linear search, where the runtime is in linear relation to the number of table entries. The first entry found is changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorted tables&lt;/P&gt;&lt;P&gt;Binary search, where the runtime is in logarithmic relation to the number of table entries. The first entry found is changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hashed tables&lt;/P&gt;&lt;P&gt;The entry is found using the hash algorithm of the internal table. The runtime is independent of the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a line is found, the contents of the non-key fields of the work area are copied into the corresponding fields of the line, and SY-SUBRC is set to 0. Otherwise, SY-SUBRC is set to 4. If the table has a non-unique key and the system finds duplicate entries, it changes the first entry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify the non-key fields that you want to assign to the table line in the TRANSPORTING addition. You can also specify a field &amp;lt;f i &amp;gt; dynamically as the contents of a field &amp;lt;n i &amp;gt; in the form (&amp;lt;n i &amp;gt;). If &amp;lt;n i &amp;gt; is empty when the statement is executed, it is ignored. You can restrict the search to partial fields by specifying offset and length. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For tables with a complex line structure, the usage of the transporting option results in better performance, if the system must not transport unnecessary table-like components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing Several Lines Using a Condition&lt;/P&gt;&lt;P&gt;&lt;/P&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;MODIFY &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ... WHERE &amp;lt;cond&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 &amp;lt;cond&amp;gt;. The logical condition 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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work area &amp;lt;wa&amp;gt;, which must be compatible with the line type of the internal table, contains the new contents, which will be assigned to the relevant table line using the TRANSPORTING addition. Unlike the above MODIFY statement, 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;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 10:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382756#M186631</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-06-13T10:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382757#M186632</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;You can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY itab [FROM wa] TRANSPORTING f1 ... fn WHERE cond. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF TAB OCCURS 500, &lt;/P&gt;&lt;P&gt;        FLAG     TYPE C, &lt;/P&gt;&lt;P&gt;        COMP(20) TYPE C, &lt;/P&gt;&lt;P&gt;      END OF TAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR TAB-FLAG. &lt;/P&gt;&lt;P&gt;MODIFY TAB TRANSPORTING FLAG WHERE FLAG = 'X'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use the WHERE condition with a STANDARD or HASHED table, a full table scan is always required. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working with a SORTED TABLE, the partial sequential processing can be optimized so that only the entries that actually satisfy the WHERE condition are processed. This optimization requires that each sub-condition is linked with AND; that no parentheses are used; that at least one sub-condition is in the form k = v; and that the conditions in the form k1 = v1 ... kn = vn cover at least the first part of the table key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the TRANSPORTING addition together with an explicitly-specified work area, the work area must be compatible with the line type of the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The counter for table entries begins at 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A unique or summarized dataset built up using an internal table and COLLECT can be modified while you are constructing it using the "MODIFY ... TRANSPORTING ..." statement, as long as the components selected with TRANSPORTING are not contained in the key of the internal table. This method does not cause significant performance impairment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shakuntala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 11:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382757#M186632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T11:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382758#M186633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi, &lt;/P&gt;&lt;P&gt; yes, i am extending the idoc only, &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; This is to modify the additional text filed in the Sales order at item level.&lt;/P&gt;&lt;P&gt; Already its having the text, now i want to add some more text to it.&lt;/P&gt;&lt;P&gt; how to do this ? can u help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 11:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382758#M186633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T11:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382759#M186634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) modify record  which is  already  exits.&lt;/P&gt;&lt;P&gt;2)now  append new  text.&lt;/P&gt;&lt;P&gt;3) u  have   to  do  both opration saprate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 11:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382759#M186634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T11:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Modify.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382760#M186635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are appending ,&lt;/P&gt;&lt;P&gt;Give the same values for the folowing fields.&lt;/P&gt;&lt;P&gt;posex &lt;/P&gt;&lt;P&gt;posnr &lt;/P&gt;&lt;P&gt;tdid &lt;/P&gt;&lt;P&gt;tsspras &lt;/P&gt;&lt;P&gt;tdformat.&lt;/P&gt;&lt;P&gt;GIve the additional text in the tdline field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 11:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-modify/m-p/1382760#M186635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T11:06:36Z</dc:date>
    </item>
  </channel>
</rss>

