<?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 table not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971321#M1339308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table lock before modifing the DB table.&lt;/P&gt;&lt;P&gt;ENQUEUE&lt;/P&gt;&lt;P&gt;DEQUEUE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2009 08:44:29 GMT</pubDate>
    <dc:creator>RahulKeshav</dc:creator>
    <dc:date>2009-08-21T08:44:29Z</dc:date>
    <item>
      <title>Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971320#M1339307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code. In this, After Modify statement I am getting sy-subrc eq 4 also not updating table t_po_item_add_data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPES: tt_bapiekpoa  TYPE TABLE OF bapiekpoa.

DATA: wa_po_item_add_data LIKE LINE OF t_po_item_add_data,
           t_po_item_add_data           TYPE tt_bapiekpoa.

  IF S_PO_HEADER-PUR_GROUP = '284'.
    wa_po_item_add_data-GR_NON_VAL = 'X'.
    Modify Table t_po_item_add_data from wa_po_item_add_data
             Transporting GR_NON_VAL.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 08:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971320#M1339307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T08:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971321#M1339308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table lock before modifing the DB table.&lt;/P&gt;&lt;P&gt;ENQUEUE&lt;/P&gt;&lt;P&gt;DEQUEUE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 08:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971321#M1339308</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2009-08-21T08:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971322#M1339309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table t_po_item_add_data into wa_po_item_add_data with key " &amp;lt;= set condition here
  IF S_PO_HEADER-PUR_GROUP = '284'.
    wa_po_item_add_data-GR_NON_VAL = 'X'.
    Modify t_po_item_add_data from wa_po_item_add_data Transporting GR_NON_VAL.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 08:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971322#M1339309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T08:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971323#M1339310</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

read table t_po_item_add_data into wa_po_item_add_data where field = some value.
IF S_PO_HEADER-PUR_GROUP = '284'.
    wa_po_item_add_data-GR_NON_VAL = 'X'.
    Modify Table t_po_item_add_data from wa_po_item_add_data
             Transporting GR_NON_VAL.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 08:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971323#M1339310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T08:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971324#M1339311</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Modify Table t_po_item_add_data from wa_po_item_add_data&lt;/P&gt;&lt;P&gt;             Transporting GR_NON_VAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove that TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Modify  t_po_item_add_data from wa_po_item_add_data&lt;/P&gt;&lt;P&gt;             Transporting GR_NON_VAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Selva M on Aug 21, 2009 2:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 08:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971324#M1339311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T08:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971325#M1339312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use WHERE condition with Modify Table statement .&lt;/P&gt;&lt;P&gt;This will surely resolve your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 09:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971325#M1339312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T09:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971326#M1339313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The correct syntax is &lt;/P&gt;&lt;P&gt;Modify itab from ..............&lt;/P&gt;&lt;P&gt;so remove table statement from ur code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: tt_bapiekpoa  TYPE TABLE OF bapiekpoa.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: wa_po_item_add_data LIKE LINE OF t_po_item_add_data,&lt;/P&gt;&lt;P&gt;           t_po_item_add_data           TYPE tt_bapiekpoa.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF S_PO_HEADER-PUR_GROUP = '284'.&lt;/P&gt;&lt;P&gt;    wa_po_item_add_data-GR_NON_VAL = 'X'.&lt;/P&gt;&lt;P&gt;    Modify &lt;STRONG&gt;Table&lt;/STRONG&gt; t_po_item_add_data from wa_po_item_add_data      "Remove table&lt;/P&gt;&lt;P&gt;             Transporting GR_NON_VAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Modify  t_po_item_add_data from wa_po_item_add_data      "Correct statement&lt;/P&gt;&lt;P&gt;             Transporting GR_NON_VAL.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 09:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971326#M1339313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T09:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971327#M1339314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;for an internal table you can just use &lt;STRONG&gt;modify itab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its better if you just put F1 on modify. read the documentation and diff between modify itab and modify table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 09:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971327#M1339314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T09:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971328#M1339315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Modify Table t_po_item_add_data from wa_po_item_add_data&lt;/P&gt;&lt;P&gt;             Transporting GR_NON_VAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;as thr is no keyfield for the structure BAPIEKPOA the statement is unable to find a line to modify...&lt;/P&gt;&lt;P&gt;use index or where condition to modify the line..&lt;/P&gt;&lt;P&gt;if only an entry in the table is found satisfying the 'where' condition , the table gets modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Modify t_po_item_add_data from wa_po_item_add_data&lt;/P&gt;&lt;P&gt;             Transporting GR_NON_VAL&lt;/P&gt;&lt;P&gt;             where GR_NON_VAL = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 09:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971328#M1339315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T09:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971329#M1339316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using MODIFY statement. You can go for using field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the particular record from the internal table assigning it to a field-symbol. Then make changed to the field-symbol, which automatically changes the particular record in the internal table. This is good way of modifying the internal table. Let me know if you want the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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;Regards,&lt;/P&gt;&lt;P&gt;Anand Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 10:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971329#M1339316</guid>
      <dc:creator>former_member189420</dc:creator>
      <dc:date>2009-08-21T10:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971330#M1339317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;check F1 for modify&lt;/P&gt;&lt;P&gt;'If the change would lead to a double entry in a unique secondary index, then it is not executed and sy-subrc is set to 4.'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 10:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971330#M1339317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T10:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971331#M1339318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your table t_po_item_add_data is not empty! As that will also return sy-subrc = 4. check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 11:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971331#M1339318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T11:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modify table not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971332#M1339319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 05:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-table-not-working/m-p/5971332#M1339319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T05:25:49Z</dc:date>
    </item>
  </channel>
</rss>

