<?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: regrading table entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-table-entries/m-p/7051640#M1502060</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;Why are you modifying the table from internal table in a loop statement.You can build the internal&lt;/P&gt;&lt;P&gt;table in a loop which will modify the entries in the database table and then outside loop you can give the &lt;/P&gt;&lt;P&gt;modify command and also you after successfully modifying the ztable why are you again inserting the&lt;/P&gt;&lt;P&gt;entries of internal table into your ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try giving COMMIT WORK ND WAIT after the modify statement to commit the changes to the database and&lt;/P&gt;&lt;P&gt;please lock the table before updating and release the lock afte rupdating your ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_table TYPE TABLE OF zind_del.&lt;/P&gt;&lt;P&gt;DATA : wa_table LIKE zind_del.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_infile INTO w_infile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_table-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;wa_table-sys_date = syst-datum.&lt;/P&gt;&lt;P&gt;wa_table-release_number = w_infile-release_number.&lt;/P&gt;&lt;P&gt;wa_table-airbill_nbr = w_infile-airbill_nbr .&lt;/P&gt;&lt;P&gt;wa_table-est_del_date = w_infile-est_del_date .&lt;/P&gt;&lt;P&gt;wa_table-gross_weight = w_infile-gross_weight .&lt;/P&gt;&lt;P&gt;wa_table-transportation_c = w_infile-transportation_code .&lt;/P&gt;&lt;P&gt;wa_table-quantity_shipped = w_infile-quantity_shipped .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_table TO t_table.&lt;/P&gt;&lt;P&gt;CLEAR wa_table.&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;now you can lock the database table using FM ENQUEUE_E_TABLE and write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY zind_del FROM TABLE t_table.&lt;/P&gt;&lt;P&gt;commit work and wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now release the lock by using FM DEQUEUE_E_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jul 2010 09:31:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-05T09:31:30Z</dc:date>
    <item>
      <title>regrading table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-table-entries/m-p/7051639#M1502059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing some problem while appending entries from internal table to database table.&lt;/P&gt;&lt;P&gt;data is coming to internal table but while appending , data base has no entries.&lt;/P&gt;&lt;P&gt;i am attaching my code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_table TYPE TABLE OF zind_del.&lt;/P&gt;&lt;P&gt;  DATA : wa_table LIKE zind_del.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_infile INTO w_infile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_table-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;    wa_table-sys_date = syst-datum.&lt;/P&gt;&lt;P&gt;    wa_table-release_number = w_infile-release_number.&lt;/P&gt;&lt;P&gt;    wa_table-airbill_nbr =  w_infile-airbill_nbr .&lt;/P&gt;&lt;P&gt;    wa_table-est_del_date = w_infile-est_del_date .&lt;/P&gt;&lt;P&gt;    wa_table-gross_weight =  w_infile-gross_weight .&lt;/P&gt;&lt;P&gt;    wa_table-transportation_c = w_infile-transportation_code .&lt;/P&gt;&lt;P&gt;    wa_table-quantity_shipped = w_infile-quantity_shipped .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND wa_table TO t_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODIFY zind_del FROM TABLE  t_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      INSERT zind_del FROM TABLE t_table.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR wa_table.&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;Regards,&lt;/P&gt;&lt;P&gt;Lokeswari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 06:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-table-entries/m-p/7051639#M1502059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T06:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: regrading table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-table-entries/m-p/7051640#M1502060</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;Why are you modifying the table from internal table in a loop statement.You can build the internal&lt;/P&gt;&lt;P&gt;table in a loop which will modify the entries in the database table and then outside loop you can give the &lt;/P&gt;&lt;P&gt;modify command and also you after successfully modifying the ztable why are you again inserting the&lt;/P&gt;&lt;P&gt;entries of internal table into your ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try giving COMMIT WORK ND WAIT after the modify statement to commit the changes to the database and&lt;/P&gt;&lt;P&gt;please lock the table before updating and release the lock afte rupdating your ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_table TYPE TABLE OF zind_del.&lt;/P&gt;&lt;P&gt;DATA : wa_table LIKE zind_del.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_infile INTO w_infile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_table-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;wa_table-sys_date = syst-datum.&lt;/P&gt;&lt;P&gt;wa_table-release_number = w_infile-release_number.&lt;/P&gt;&lt;P&gt;wa_table-airbill_nbr = w_infile-airbill_nbr .&lt;/P&gt;&lt;P&gt;wa_table-est_del_date = w_infile-est_del_date .&lt;/P&gt;&lt;P&gt;wa_table-gross_weight = w_infile-gross_weight .&lt;/P&gt;&lt;P&gt;wa_table-transportation_c = w_infile-transportation_code .&lt;/P&gt;&lt;P&gt;wa_table-quantity_shipped = w_infile-quantity_shipped .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_table TO t_table.&lt;/P&gt;&lt;P&gt;CLEAR wa_table.&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;now you can lock the database table using FM ENQUEUE_E_TABLE and write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY zind_del FROM TABLE t_table.&lt;/P&gt;&lt;P&gt;commit work and wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now release the lock by using FM DEQUEUE_E_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 09:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regrading-table-entries/m-p/7051640#M1502060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T09:31:30Z</dc:date>
    </item>
  </channel>
</rss>

