<?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: transporting dat to itab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581893#M862291</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;you can try like below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;move-corresponding itab to ktab. " move the content from itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table jtab with key knumv = itab-knumv&lt;/P&gt;&lt;P&gt;                                   KSCHL = 'SKPO'.  " considering knumv is the key b/n itab &amp;amp; jtab.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding jtab to ktab.&lt;/P&gt;&lt;P&gt;append ktab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear ktab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ravi Sankar.Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ravi Sankara. Z on Mar 18, 2008 12:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2008 11:38:57 GMT</pubDate>
    <dc:creator>ravisankara_varaprasad</dc:creator>
    <dc:date>2008-03-18T11:38:57Z</dc:date>
    <item>
      <title>transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581885#M862283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Hv two internal table itab and jtab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wanted to move content of two itab and jtab &lt;/P&gt;&lt;P&gt;into one internal table Ktab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashikant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581885#M862283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581886#M862284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Itab and Jtab should have atleast one field in common.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   move-corresponding itab to ktab.&lt;/P&gt;&lt;P&gt;   read table jtab with key field1 = itab-field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      move-corresponding jtab to ktab.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   append ktab.&lt;/P&gt;&lt;P&gt;   clear   ktab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581886#M862284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581887#M862285</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;You follow the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append lines of itab from 1 to n to target_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at jtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append jtab to target_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this is clear for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ravi Sankar.Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:21:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581887#M862285</guid>
      <dc:creator>ravisankara_varaprasad</dc:creator>
      <dc:date>2008-03-18T10:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581888#M862286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KTAB[] = ITAB[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at jtab.&lt;/P&gt;&lt;P&gt;Append jtab to KTAB.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shibin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581888#M862286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581889#M862287</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;If the structure  of the three ITABs are then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use append line of table itab to ktab&lt;/P&gt;&lt;P&gt;again append lines of table jtab to ktab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be very fast&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581889#M862287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581890#M862288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ztest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:pa0002,pa0008,pa0021,pa0041.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      pernr like pa0002-pernr,&lt;/P&gt;&lt;P&gt;      vorna like pa0002-vorna,&lt;/P&gt;&lt;P&gt;      nachn like pa0002-nachn,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;      pernr like pa0008-pernr,&lt;/P&gt;&lt;P&gt;      begda like pa0008-begda,&lt;/P&gt;&lt;P&gt;      stvor like pa0008-stvor,&lt;/P&gt;&lt;P&gt;      ansal like pa0008-ansal,&lt;/P&gt;&lt;P&gt;      end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;      pernr like pa0021-pernr,&lt;/P&gt;&lt;P&gt;      favor like pa0021-favor,&lt;/P&gt;&lt;P&gt;      fanam like pa0021-fanam,&lt;/P&gt;&lt;P&gt;      end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab3 occurs 0,&lt;/P&gt;&lt;P&gt;     pernr like pa0041-pernr,&lt;/P&gt;&lt;P&gt;     dar01 like pa0041-dar01,&lt;/P&gt;&lt;P&gt;     dat01 like pa0041-dat01,&lt;/P&gt;&lt;P&gt;     end of itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of final occurs 0,&lt;/P&gt;&lt;P&gt;      pernr like pa0002-pernr,&lt;/P&gt;&lt;P&gt;      vorna like pa0002-vorna,&lt;/P&gt;&lt;P&gt;      nachn like pa0002-nachn,&lt;/P&gt;&lt;P&gt;      begda like pa0008-begda,&lt;/P&gt;&lt;P&gt;      stvor like pa0008-stvor,&lt;/P&gt;&lt;P&gt;      ansal like pa0008-ansal,&lt;/P&gt;&lt;P&gt;       favor like pa0021-favor,&lt;/P&gt;&lt;P&gt;      fanam like pa0021-fanam,&lt;/P&gt;&lt;P&gt;     dar01 like pa0041-dar01,&lt;/P&gt;&lt;P&gt;     dat01 like pa0041-dat01,&lt;/P&gt;&lt;P&gt;     end of final.&lt;/P&gt;&lt;P&gt;select-options:s_pernr for pa0002-pernr.&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       vorna&lt;/P&gt;&lt;P&gt;       nachn&lt;/P&gt;&lt;P&gt;       from pa0002&lt;/P&gt;&lt;P&gt;       into table itab&lt;/P&gt;&lt;P&gt;       where pernr in s_pernr.&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       begda&lt;/P&gt;&lt;P&gt;       stvor&lt;/P&gt;&lt;P&gt;       ansal&lt;/P&gt;&lt;P&gt;       from pa0008&lt;/P&gt;&lt;P&gt;       into table itab1&lt;/P&gt;&lt;P&gt;       for all entries in itab&lt;/P&gt;&lt;P&gt;       where pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       favor&lt;/P&gt;&lt;P&gt;       fanam&lt;/P&gt;&lt;P&gt;       from pa0021&lt;/P&gt;&lt;P&gt;       into table itab2&lt;/P&gt;&lt;P&gt;       for all entries in itab1&lt;/P&gt;&lt;P&gt;       where pernr = itab1-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       dar01&lt;/P&gt;&lt;P&gt;       dat01&lt;/P&gt;&lt;P&gt;       from pa0041&lt;/P&gt;&lt;P&gt;       into table itab3&lt;/P&gt;&lt;P&gt;       for all entries in itab2&lt;/P&gt;&lt;P&gt;       where pernr = itab2-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;final-pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;final-vorna = itab-vorna.&lt;/P&gt;&lt;P&gt;final-nachn = itab-nachn.&lt;/P&gt;&lt;P&gt;read table itab1 with key pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;final-begda = itab1-begda.&lt;/P&gt;&lt;P&gt;final-stvor = itab1-stvor.&lt;/P&gt;&lt;P&gt;final-ansal = itab1-ansal.&lt;/P&gt;&lt;P&gt;read table itab2 with key pernr = itab1-pernr.&lt;/P&gt;&lt;P&gt;final-favor = itab2-favor.&lt;/P&gt;&lt;P&gt;final-fanam = itab2-fanam.&lt;/P&gt;&lt;P&gt;read table itab3 with key pernr = itab2-pernr.&lt;/P&gt;&lt;P&gt;final-dar01 = itab3-dar01 .&lt;/P&gt;&lt;P&gt;final-dat01 = itab3-dat01.&lt;/P&gt;&lt;P&gt;append final.&lt;/P&gt;&lt;P&gt;clear final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   loop at final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   write:final-pernr ,&lt;/P&gt;&lt;P&gt;final-vorna ,&lt;/P&gt;&lt;P&gt;final-nachn ,&lt;/P&gt;&lt;P&gt;final-begda ,&lt;/P&gt;&lt;P&gt;final-stvor ,&lt;/P&gt;&lt;P&gt;final-ansal ,&lt;/P&gt;&lt;P&gt;final-favor ,&lt;/P&gt;&lt;P&gt;final-fanam ,&lt;/P&gt;&lt;P&gt;final-dar01 ,&lt;/P&gt;&lt;P&gt;final-dat01 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   endloop.&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;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581890#M862288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581891#M862289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581891#M862289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581892#M862290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanted too excute following  loop only for value &lt;/P&gt;&lt;P&gt;JTAB-KSCHL = 'SKPO'. means I wanted to transport transport values of ITAB to ktab where jtab-kschl = skpo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;move-corresponding itab to ktab.&lt;/P&gt;&lt;P&gt;read table jtab with key knumv = itab-knumv.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding jtab to ktab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append ktab.&lt;/P&gt;&lt;P&gt;clear ktab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 11:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581892#M862290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581893#M862291</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;you can try like below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;move-corresponding itab to ktab. " move the content from itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table jtab with key knumv = itab-knumv&lt;/P&gt;&lt;P&gt;                                   KSCHL = 'SKPO'.  " considering knumv is the key b/n itab &amp;amp; jtab.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding jtab to ktab.&lt;/P&gt;&lt;P&gt;append ktab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear ktab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ravi Sankar.Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ravi Sankara. Z on Mar 18, 2008 12:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 11:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581893#M862291</guid>
      <dc:creator>ravisankara_varaprasad</dc:creator>
      <dc:date>2008-03-18T11:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: transporting dat to itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581894#M862292</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;&lt;/P&gt;&lt;P&gt;ktab[] = itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*now ktab holds the content of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lines of jtab to ktab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*noe lines of jtab get appended to ktab, now ktab holds data  of&lt;/P&gt;&lt;P&gt;both itab and jtab.&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;V.Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 11:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transporting-dat-to-itab/m-p/3581894#M862292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T11:43:01Z</dc:date>
    </item>
  </channel>
</rss>

