<?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: how to insert the data to database through module pool programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-the-data-to-database-through-module-pool-programming/m-p/4405177#M1047003</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;P&gt;Create two internal tables of same structure of the DB table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module pgm either you may have a button or press enter to perform this save option. &amp;lt;according to your requirement&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the SY-UCOMM according to it, then fill the internal table with the values as given in the module pool pgm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use call function ENQUEUE_E_TABLE to lock the table and use modify stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;TABLE NAME&amp;gt; FROM TABLE ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then release the lock by calling the function module DEQUEUE_E_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2008 07:46:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-19T07:46:02Z</dc:date>
    <item>
      <title>how to insert the data to database through module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-the-data-to-database-through-module-pool-programming/m-p/4405176#M1047002</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 want the syntax for how to inert the data to the two tables through module pool programming ,please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 07:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-the-data-to-database-through-module-pool-programming/m-p/4405176#M1047002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T07:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert the data to database through module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-the-data-to-database-through-module-pool-programming/m-p/4405177#M1047003</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;P&gt;Create two internal tables of same structure of the DB table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module pgm either you may have a button or press enter to perform this save option. &amp;lt;according to your requirement&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the SY-UCOMM according to it, then fill the internal table with the values as given in the module pool pgm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use call function ENQUEUE_E_TABLE to lock the table and use modify stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;TABLE NAME&amp;gt; FROM TABLE ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then release the lock by calling the function module DEQUEUE_E_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 07:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-the-data-to-database-through-module-pool-programming/m-p/4405177#M1047003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T07:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert the data to database through module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-the-data-to-database-through-module-pool-programming/m-p/4405178#M1047004</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;First you create two internal tables same as your tables.&lt;/P&gt;&lt;P&gt;then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE ......Fields..... FROM ...Table...&lt;/P&gt;&lt;P&gt;                    INTO CORRESPONDING FIELDS OF ITABLE1&lt;/P&gt;&lt;P&gt;                     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            SELECT SINGLE ..Fields... FROM table&lt;/P&gt;&lt;P&gt;              INTO CORRESPONDING FIELDS OF Itable2&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;append itable1.&lt;/P&gt;&lt;P&gt;append itable2.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;message.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help you.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 12:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-the-data-to-database-through-module-pool-programming/m-p/4405178#M1047004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T12:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert the data to database through module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-the-data-to-database-through-module-pool-programming/m-p/4405179#M1047005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Dhanunjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For example LIFNR is ur field in the database table LFA1 with primary key then define like this,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : LIFNR_CHK TYPE LFA1-LIFNR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       IT_LIFNR TYPE LFA1-LIFNR OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       WA_LIFNR LIKE LINE OF IT_LIFNR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in PAI of ur screen &lt;/P&gt;&lt;P&gt; when u click a button  ur coding should be like this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;   WHEN 'sAVE'.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;       LIFNR_CHK = ZLFA1-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE LIFNR INTO WA_LIFNR FROM LFA1 WHERE LIFNR = LIFNR_CHK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       INSERT ZLFA1. &lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the same for two tables .&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;Syam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 02:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-insert-the-data-to-database-through-module-pool-programming/m-p/4405179#M1047005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T02:26:53Z</dc:date>
    </item>
  </channel>
</rss>

