<?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 itab not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183833#M1518904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Just check this link once under the heading : Changing Several Lines Using a Condition. It says "Furthermore, you can only modify the key fields of the internal table if it is a standard table."&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Sep 2010 20:15:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-01T20:15:25Z</dc:date>
    <item>
      <title>Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183827#M1518898</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;I am trying to change a field value in itab using MODIFY statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is a char type and holding '0000000' initially. Now I am trying to change this value to other value. But the modify statement is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like the code is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : value(32) type c,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-value = value.&lt;/P&gt;&lt;P&gt;wa-name = 'test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify itab from wa transporting value name where id = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Name field is getting updated properly with the new value, but the value field is not getting updated... this i sstill showing '0000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 19:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183827#M1518898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T19:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183828#M1518899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well at least from your example, you are just declaring a variable called 'Value' and assigning it to the work area without assigning it any value. Are you sure this is not you are doing in your actual code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 19:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183828#M1518899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T19:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183829#M1518900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I  am assigning the value to the field VALUE. still this is not updating the new value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 19:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183829#M1518900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T19:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183830#M1518901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show the relevant part of your actual coding? Also did you check the sy-subrc value after the modify statement? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 19:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183830#M1518901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T19:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183831#M1518902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Did you check by passing any hard coded value to the wa-value? May be the field 'value' was populated with the same '0000000' as it was before. &lt;/P&gt;&lt;P&gt;also try some manipulations while debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 19:47:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183831#M1518902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T19:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183832#M1518903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : ls_partner           TYPE bbp_pds_partner.&lt;/P&gt;&lt;P&gt;data : et_partner   type table of bbp_pds_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE partner_guid FROM but000 INTO lv_guid WHERE partner = l_partner.&lt;/P&gt;&lt;P&gt;      ls_partner-partner_id  = l_partner.&lt;/P&gt;&lt;P&gt;      ls_partner-partner_no = lv_guid.&lt;/P&gt;&lt;P&gt;      MODIFY et_partner FROM ls_partner TRANSPORTING partner_no partner_id&lt;/P&gt;&lt;P&gt;                                        WHERE p_guid    EQ ls_item-guid&lt;/P&gt;&lt;P&gt;                                        AND partner_fct EQ c_partner_fct1&lt;/P&gt;&lt;P&gt;                                        AND del_ind     EQ space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intially the field partner_no field have '0000000' value now I am changing it to '1111111'. for the same statment the field partner_id is getting updated properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 19:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183832#M1518903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T19:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183833#M1518904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Just check this link once under the heading : Changing Several Lines Using a Condition. It says "Furthermore, you can only modify the key fields of the internal table if it is a standard table."&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 20:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183833#M1518904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T20:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183834#M1518905</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;1. Check for sy-subrc after the select. Whether data is flowing to lv_guid.&lt;/P&gt;&lt;P&gt;2. Check for the field datatype for ls_partner-partner_no and lv_guid. They should match. If not, you would have to use conversion exit to match the ls_partner-partner_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 01:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183834#M1518905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-02T01:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183835#M1518906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPES : BEGIN OF y_trial,&lt;/P&gt;&lt;P&gt;         value(32) TYPE c,&lt;/P&gt;&lt;P&gt;         name(15)  TYPE c,&lt;/P&gt;&lt;P&gt;        END OF y_trial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_trial TYPE STANDARD TABLE OF y_trial,&lt;/P&gt;&lt;P&gt;       w_trial TYPE y_trial.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;fs_trial&amp;gt; TYPE y_trial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_trial.&lt;/P&gt;&lt;P&gt;MOVE '01' TO w_trial-value.&lt;/P&gt;&lt;P&gt;MOVE 'ABC' TO w_trial-name.&lt;/P&gt;&lt;P&gt;APPEND w_trial TO t_trial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_trial.&lt;/P&gt;&lt;P&gt;MOVE '02' TO w_trial-value.&lt;/P&gt;&lt;P&gt;MOVE 'XYZ' TO w_trial-name.&lt;/P&gt;&lt;P&gt;APPEND w_trial TO t_trial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_trial.&lt;/P&gt;&lt;P&gt;MOVE '03' TO w_trial-value.&lt;/P&gt;&lt;P&gt;MOVE 'PQR' TO w_trial-name.&lt;/P&gt;&lt;P&gt;APPEND w_trial TO t_trial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_trial.&lt;/P&gt;&lt;P&gt;MOVE '02' TO w_trial-value.&lt;/P&gt;&lt;P&gt;MOVE 'LMN' TO w_trial-name.&lt;/P&gt;&lt;P&gt;MODIFY t_trial FROM w_trial TRANSPORTING name WHERE value = '02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNASSIGN : &amp;lt;fs_trial&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_trial ASSIGNING &amp;lt;fs_trial&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &amp;lt;fs_trial&amp;gt;-value, &amp;lt;fs_trial&amp;gt;-name.&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;Output is : 01                               ABC&lt;/P&gt;&lt;P&gt;                 02                               LMN&lt;/P&gt;&lt;P&gt;                 03                               PQR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has modifed the second row and the value has changed from "XYZ" to "LMN".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 08:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183835#M1518906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-02T08:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modify itab not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183836#M1518907</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 the datatype of both the variables only if they are the same the modification would take place. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 10:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-not-working/m-p/7183836#M1518907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-02T10:05:16Z</dc:date>
    </item>
  </channel>
</rss>

