<?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 Insert table in table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644008#M1284426</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 have two table, one standard and the other one is sorted table.&lt;/P&gt;&lt;P&gt;first i move data into in the standard table.&lt;/P&gt;&lt;P&gt;how do i can move data from standard table in sorted table?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types: begin of t_komdat,
          kmnrch type zkomnr,
          vbeln type vbeln_vl,
       end of t_komdat.

data gt_komnr type table of t_komdat. "KommissionierNr.
data gt_komnr_sorted type sorted table of t_komdat with unique key kmnrch.



start-of-selection.

  select * from zsd_spediumsetz
           into corresponding fields of table
           gt_komnr order by kmnrch kmzlch.

  break-point.

  delete adjacent duplicates from gt_komnr comparing kmnrch.
  insert gt_komnr into gt_komnr_sorted.

  break-point.


end-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2009 06:44:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-08T06:44:27Z</dc:date>
    <item>
      <title>Insert table in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644008#M1284426</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 have two table, one standard and the other one is sorted table.&lt;/P&gt;&lt;P&gt;first i move data into in the standard table.&lt;/P&gt;&lt;P&gt;how do i can move data from standard table in sorted table?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types: begin of t_komdat,
          kmnrch type zkomnr,
          vbeln type vbeln_vl,
       end of t_komdat.

data gt_komnr type table of t_komdat. "KommissionierNr.
data gt_komnr_sorted type sorted table of t_komdat with unique key kmnrch.



start-of-selection.

  select * from zsd_spediumsetz
           into corresponding fields of table
           gt_komnr order by kmnrch kmzlch.

  break-point.

  delete adjacent duplicates from gt_komnr comparing kmnrch.
  insert gt_komnr into gt_komnr_sorted.

  break-point.


end-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644008#M1284426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insert table in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644009#M1284427</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;  sort gt_komnr  by kmnrch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  delete adjacent duplicates from gt_komnr comparing kmnrch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append lines of  gt_komnr to gt_komnr_sorted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644009#M1284427</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-05-08T06:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Insert table in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644010#M1284428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first take data from standard table in to internal table then sort it with sort key and then insert all the data in to sorted table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644010#M1284428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Insert table in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644011#M1284429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are both table of same structure if not use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin of t_komdat,
          kmnrch type zkomnr,
          vbeln type vbeln_vl,
       end of t_komdat.
 
data gt_komnr type table of t_komdat with header line. "KommissionierNr.
data gt_komnr_sorted type sorted table of t_komdat with unique key kmnrch with header line.
 
 
 
start-of-selection.
 
  select * from zsd_spediumsetz
           into corresponding fields of table
           gt_komnr.
 
  break-point.
  Sort gt_komnr by kmnrch.            " Use Sort statement.
  delete adjacent duplicates from gt_komnr comparing kmnrch.
  *insert gt_komnr into gt_komnr_sorted.

Loop at gt_komnr.
Move :gt_komnr-kmnrch to  gt_komnr_sorted-kmnrch,
         gt_komnr-vbeln to  gt_komnr_sorted-vbeln. 
Insert table gt_komnr_sorted[] from gt_komnr_sorted.
clear gt_komnr_sorted.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 07:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644011#M1284429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T07:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Insert table in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644012#M1284430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i do it with command move.&lt;/P&gt;&lt;P&gt;it great thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 07:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-table-in-table/m-p/5644012#M1284430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T07:20:46Z</dc:date>
    </item>
  </channel>
</rss>

