<?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: need coding example in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784338#M910513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi llhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type zs1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding zs1 to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert zs1 from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2008 10:26:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-28T10:26:17Z</dc:date>
    <item>
      <title>need coding example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784330#M910505</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;Moving the contents of these Internal Tables into the Database Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal tables have not the same structure like db_Table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a code example. Can u pls help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1&lt;/P&gt;&lt;P&gt;itab2&lt;/P&gt;&lt;P&gt;itab3&lt;/P&gt;&lt;P&gt;itab4&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;Ilhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 08:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784330#M910505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T08:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: need coding example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784331#M910506</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; Inorder to move the data from an intertable to database table the structure of internal table has to be same as that of data base table ...for suppose if you are updating the entries to mara the table has to be declared in this way ... &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: it_mara type standard table of mara. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else if you already have an internal table filled with values and is not of database table format then do this way ...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab.
  move-corresponding itab to it_mara.
  append it_mara.
  clear it_mara.
endloop. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 08:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784331#M910506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T08:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: need coding example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784332#M910507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chech this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first send all the data into a final interna table and loop the final table like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ztable-field1 = it_final-field1.&lt;/P&gt;&lt;P&gt;ztable-field2 = it_final-field2.&lt;/P&gt;&lt;P&gt;ztable-field3= it_final-field3.&lt;/P&gt;&lt;P&gt;ztable-field4 = it_final-field4.&lt;/P&gt;&lt;P&gt;insert ztable .&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 08:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784332#M910507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T08:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: need coding example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784333#M910508</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;Create a new Internal Table itab5 with the same structure as DB Table and Move the Contents of these 4 Internal tables into the 5th and then write the foll Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab5.
  INSERT itab5 TO DBTALBE.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 08:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784333#M910508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T08:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: need coding example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784334#M910509</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;Store all the data into a final internal table than iterate the intertable like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_final.&lt;/P&gt;&lt;P&gt;ztab-field1 = itab-field1.&lt;/P&gt;&lt;P&gt;ztab-field2 = itab-field2.&lt;/P&gt;&lt;P&gt;ztab-field3 = itab-field3.&lt;/P&gt;&lt;P&gt;append ztab.&lt;/P&gt;&lt;P&gt;Endloop.&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;Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 09:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784334#M910509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T09:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: need coding example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784335#M910510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 09:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784335#M910510</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2008-04-28T09:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: need coding example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784336#M910511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Fren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to create the internal table of the same line type as of the Database Table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: DBTABLE.

DATA:
   it_final LIKE STANDARD TABLE OF dbtable.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then dump the data from all the internal tables itab1, itab2, itab3, itab4, itab5 into it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also ensure that all the key-fields of the line-type are filled and ARE NOT LEFT BLANK......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use COLLECT statement to avoid the problem of duplicate entries while updating the Database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then using the Modify statement you can update the DB table in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODIFY dbtable FROM TABLE it_final.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inspire if Needful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhi...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 10:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784336#M910511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T10:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: need coding example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784337#M910512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here some fields matching :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itab2.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2-field1 = itab1 - fld1.&lt;/P&gt;&lt;P&gt;itab2-field2 = itab1 - fld2.&lt;/P&gt;&lt;P&gt;itab2-field3 = itab1 - fld3.&lt;/P&gt;&lt;P&gt;itab2-field4 = itab1 - fld4.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or any doubt just reply me (:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 10:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784337#M910512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T10:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: need coding example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784338#M910513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi llhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type zs1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding zs1 to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert zs1 from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 10:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-coding-example/m-p/3784338#M910513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T10:26:17Z</dc:date>
    </item>
  </channel>
</rss>

