<?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 Move data into user-defined dbTable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868571#M49436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It really depends on how the db table is structured and how your internal table is structured.  If they are the same, then its this easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: itab like ztable.

INSERT ztable FROM TABLE itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you will have to do a little more coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: begin of itab occurs 0,
      f1 type c,
      f2 type c,
      f3 type c,
      end of itab.


loop at itab.
move-correponding itab to ztable.
insert ztable.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2005 16:42:19 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-06-16T16:42:19Z</dc:date>
    <item>
      <title>How to Move data into user-defined dbTable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868568#M49433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi dudes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to ABAP programming and have a question. I know how to create internal tables and the dB tables.(Also to manipulate data in internal tables) Now i need to know how we can push data which is in the internal table into a dbTable? Can anybody help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2005 16:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868568#M49433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-16T16:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Move data into user-defined dbTable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868569#M49434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;Please post this question in the ABAP Programming forum.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kathy Meyers, SDN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2005 16:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868569#M49434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-16T16:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Move data into user-defined dbTable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868570#M49435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here's the link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_community" href="https://community.sap.com/" __jive_macro_name="community" modifiedtitle="true" __default_attr="2015"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2005 16:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868570#M49435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-16T16:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Move data into user-defined dbTable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868571#M49436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It really depends on how the db table is structured and how your internal table is structured.  If they are the same, then its this easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: itab like ztable.

INSERT ztable FROM TABLE itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you will have to do a little more coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: begin of itab occurs 0,
      f1 type c,
      f2 type c,
      f3 type c,
      end of itab.


loop at itab.
move-correponding itab to ztable.
insert ztable.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2005 16:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868571#M49436</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-16T16:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Move data into user-defined dbTable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868572#M49437</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;Here I am suggesting one way.In this program,I assumed that zzz_mara is a table which is having some fields of mara table.I am selecting all the records from mara table into an internal table itab and then pushing those data in internal table itab1 and then inserting those records into zzz_mara table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab type standard table of mara,"internal table&lt;/P&gt;&lt;P&gt;       itab1 type standard table of zzz_mara,"internal  table for custom table&lt;/P&gt;&lt;P&gt;       wa type mara,&lt;/P&gt;&lt;P&gt;       wa1 type zzz_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;move-corresponding wa to wa1.&lt;/P&gt;&lt;P&gt;append wa1 to itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT zzz_mara FROM TABLE itab1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;J.Jayanthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2005 03:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868572#M49437</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-06-17T03:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Move data into user-defined dbTable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868573#M49438</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;  To be on the safer side you can use 'Modify' to insert/update entries into ztables from an internal table, if the internal table has some duplicate key fields then the insert gives a short dump, to avoid the dump we use Modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify acts like an insert &amp;amp; update depends on the scenario, the logic is similar to insert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Modify dbtab from table itab.&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;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2005 06:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868573#M49438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-17T06:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Move data into user-defined dbTable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868574#M49439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code which you explained solved my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2005 17:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-move-data-into-user-defined-dbtable/m-p/868574#M49439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-19T17:35:27Z</dc:date>
    </item>
  </channel>
</rss>

