<?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 Inserting Values in database Table in function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-database-table-in-function-module/m-p/5402724#M1241041</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;I am doing modifications in one of the user exit ZXM06U44.&lt;/P&gt;&lt;P&gt;This is triggered during PO creation and PO Release.&lt;/P&gt;&lt;P&gt;On PO Creation i want to insert some data of header and line item to three different Z Tables which i Have created.&lt;/P&gt;&lt;P&gt;Now when i am going to insert the data to thes Z Tables then it is not inserting the same.&lt;/P&gt;&lt;P&gt;Will i have to declare them in TABLE tab of userexit.&lt;/P&gt;&lt;P&gt;Or anyone can give me other solution as it wants access key to change the Userexit function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Codeing is as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_table1-ebeln = i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;    wa_table1-ebelp = xekpo-ebelp.&lt;/P&gt;&lt;P&gt;    wa_table1-menge = xekpo-menge.&lt;/P&gt;&lt;P&gt;    wa_table1-idnlf = xekpo-idnlf.&lt;/P&gt;&lt;P&gt;    wa_table1-matnr = xekpo-matnr.&lt;/P&gt;&lt;P&gt;    wa_table1-werks = xekpo-werks.&lt;/P&gt;&lt;P&gt;    insert ztable1 from wa_table1.&lt;/P&gt;&lt;P&gt;    clear wa_table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_table2-ebeln = i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;    wa_table2-ebelp = xekpo-ebelp.&lt;/P&gt;&lt;P&gt;    wa_table2-wempf = xekkn-wempf.&lt;/P&gt;&lt;P&gt;    wa_table2-ablad = xekkn-ablad.&lt;/P&gt;&lt;P&gt;    wa_table2-kostl = xekkn-kostl.&lt;/P&gt;&lt;P&gt;    insert ztable2 from wa_table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear wa_table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_table3-ebeln = i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;    wa_table3-ebelp = xekpo-ebelp.&lt;/P&gt;&lt;P&gt;   wa_table3-eindt = xeket-eindt.&lt;/P&gt;&lt;P&gt;    insert ztable3 from wa_table3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear wa_table3.&lt;/P&gt;&lt;P&gt;Now at insert command it is not inserting to database.&lt;/P&gt;&lt;P&gt;Anyone suggest me the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;nitin Malhotra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2009 12:17:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-07T12:17:15Z</dc:date>
    <item>
      <title>Inserting Values in database Table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-database-table-in-function-module/m-p/5402724#M1241041</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;I am doing modifications in one of the user exit ZXM06U44.&lt;/P&gt;&lt;P&gt;This is triggered during PO creation and PO Release.&lt;/P&gt;&lt;P&gt;On PO Creation i want to insert some data of header and line item to three different Z Tables which i Have created.&lt;/P&gt;&lt;P&gt;Now when i am going to insert the data to thes Z Tables then it is not inserting the same.&lt;/P&gt;&lt;P&gt;Will i have to declare them in TABLE tab of userexit.&lt;/P&gt;&lt;P&gt;Or anyone can give me other solution as it wants access key to change the Userexit function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Codeing is as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_table1-ebeln = i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;    wa_table1-ebelp = xekpo-ebelp.&lt;/P&gt;&lt;P&gt;    wa_table1-menge = xekpo-menge.&lt;/P&gt;&lt;P&gt;    wa_table1-idnlf = xekpo-idnlf.&lt;/P&gt;&lt;P&gt;    wa_table1-matnr = xekpo-matnr.&lt;/P&gt;&lt;P&gt;    wa_table1-werks = xekpo-werks.&lt;/P&gt;&lt;P&gt;    insert ztable1 from wa_table1.&lt;/P&gt;&lt;P&gt;    clear wa_table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_table2-ebeln = i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;    wa_table2-ebelp = xekpo-ebelp.&lt;/P&gt;&lt;P&gt;    wa_table2-wempf = xekkn-wempf.&lt;/P&gt;&lt;P&gt;    wa_table2-ablad = xekkn-ablad.&lt;/P&gt;&lt;P&gt;    wa_table2-kostl = xekkn-kostl.&lt;/P&gt;&lt;P&gt;    insert ztable2 from wa_table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear wa_table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_table3-ebeln = i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;    wa_table3-ebelp = xekpo-ebelp.&lt;/P&gt;&lt;P&gt;   wa_table3-eindt = xeket-eindt.&lt;/P&gt;&lt;P&gt;    insert ztable3 from wa_table3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear wa_table3.&lt;/P&gt;&lt;P&gt;Now at insert command it is not inserting to database.&lt;/P&gt;&lt;P&gt;Anyone suggest me the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;nitin Malhotra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 12:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-database-table-in-function-module/m-p/5402724#M1241041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T12:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Values in database Table in function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-database-table-in-function-module/m-p/5402725#M1241042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use modify statement instead of insert statement. it will modify the record if it already exist and will insert record if it does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify &amp;lt;dbtablenam&amp;gt; from table &amp;lt;itab&amp;gt; or&lt;/P&gt;&lt;P&gt;modify &amp;lt;dbtablename&amp;gt;  from &amp;lt;workaread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 12:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-values-in-database-table-in-function-module/m-p/5402725#M1241042</guid>
      <dc:creator>former_member438956</dc:creator>
      <dc:date>2009-04-07T12:26:14Z</dc:date>
    </item>
  </channel>
</rss>

