<?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: moving data from internal table to data base table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215310#M766631</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;modifying datbase table useing internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;advises before updating this datbase table plz lock that table to avoid incosistency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the logic for modifying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the database table as per new dunning procedure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY fkkvkp FROM TABLE lt_fkkvkp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and finally unlock the table&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;*To lock table for further operations&lt;/P&gt;&lt;P&gt;constants: lc_tabname TYPE rstable-tabname VALUE 'FKKVKP' . "FKKVKP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = lc_tabname&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;foreign_lock = 1&lt;/P&gt;&lt;P&gt;system_failure = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To fetch all the contract accounts for customers of the segment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Households/SME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM fetch_contract_accounts using lc_tabname .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. " IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*wrote the logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the database table as per new dunning procedure from internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY fkkvkp FROM TABLE lt_fkkvkp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*unlock the tbale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TABNAME = uc_tabname .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Dec 2007 09:14:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-24T09:14:02Z</dc:date>
    <item>
      <title>moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215306#M766627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi any body pls explain me how to transfer data from internal table to data base table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2007 19:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215306#M766627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-23T19:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215307#M766628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaladhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose u have a DB table named ZTEST. having 3 fields ID NAME AGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u declare TABLES: ZTEST in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTEST-ID = '01',&lt;/P&gt;&lt;P&gt;ZTEST-NAME = 'XXXX'.&lt;/P&gt;&lt;P&gt;ZTEST-AGE = '20'&lt;/P&gt;&lt;P&gt;INSERT ZTEST. " it'll insert this row into the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u declare a structure in DATA section. u can do it in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT ZTEST VALUES RECORD. "record has the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have an int tab , do it:&lt;/P&gt;&lt;P&gt;INSERT ZTEST FROM T_RECORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also see UPDATE, DELETE, MODIFY statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ANUPAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 04:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215307#M766628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T04:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215308#M766629</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;using bdc you can achieve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 05:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215308#M766629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T05:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215309#M766630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this by two ways either using Insert statement or modify statement.&lt;/P&gt;&lt;P&gt;loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;*use this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case it will insert new record &lt;/P&gt;&lt;P&gt;INSERT INTO scarr VALUES wa_itab.&lt;/P&gt;&lt;P&gt;*or use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case it will first modify the record &lt;/P&gt;&lt;P&gt;*if it is exits otherwise insert a new entry&lt;/P&gt;&lt;P&gt;MODIFY INTO scarr VALUES wa_itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points, if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 06:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215309#M766630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T06:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215310#M766631</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;modifying datbase table useing internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;advises before updating this datbase table plz lock that table to avoid incosistency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the logic for modifying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the database table as per new dunning procedure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY fkkvkp FROM TABLE lt_fkkvkp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and finally unlock the table&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;*To lock table for further operations&lt;/P&gt;&lt;P&gt;constants: lc_tabname TYPE rstable-tabname VALUE 'FKKVKP' . "FKKVKP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = lc_tabname&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;foreign_lock = 1&lt;/P&gt;&lt;P&gt;system_failure = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To fetch all the contract accounts for customers of the segment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Households/SME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM fetch_contract_accounts using lc_tabname .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. " IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*wrote the logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the database table as per new dunning procedure from internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY fkkvkp FROM TABLE lt_fkkvkp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*unlock the tbale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_E_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TABNAME = uc_tabname .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 09:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215310#M766631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T09:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: moving data from internal table to data base table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215311#M766632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;     I am Bharat . How we can do this by bdc . If I have uploaded the data from flat file into internal table and i want to insert those into the database table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u send me the code for that. It will be verymuch helpful for me ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards.&lt;/P&gt;&lt;P&gt;Bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-from-internal-table-to-data-base-table/m-p/3215311#M766632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T11:07:34Z</dc:date>
    </item>
  </channel>
</rss>

