<?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: Reg : Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168261#M753805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;better if u use for all enteries rather than using join...because it causes lots of database load..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first u fetch the fields from MKPF and fill internal table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then fethch records from MSEG and fill internal table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then merge these two internal tables in one final internal table by looping the internal table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2007 06:03:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-21T06:03:40Z</dc:date>
    <item>
      <title>Reg : Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168260#M753804</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;For example , I have a itab with  6 fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) sending plant&lt;/P&gt;&lt;P&gt;2) sending storage location.&lt;/P&gt;&lt;P&gt;3) receiving plant&lt;/P&gt;&lt;P&gt;4) receiving storage location&lt;/P&gt;&lt;P&gt;5) sending site address number.&lt;/P&gt;&lt;P&gt;6) receiving site address number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m filling the first row as folllows .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  b&lt;SUB&gt;werks b&lt;/SUB&gt;lgort b&lt;SUB&gt;umwrk b&lt;/SUB&gt;umlgo FROM mkpf AS a INNER JOIN mseg AS b on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE GT_ITAB_MT&lt;/P&gt;&lt;P&gt;WHERE a~mblnr = GV_MAT_DOC_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the itab has 6 rows but last 2 fields left unfilled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i have to fill the last 2 rows as&lt;/P&gt;&lt;P&gt;by passing sending plant , storage location to table TWLAD and rec plant , location to the same TWLAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me the best way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pinky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 05:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168260#M753804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T05:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168261#M753805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;better if u use for all enteries rather than using join...because it causes lots of database load..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first u fetch the fields from MKPF and fill internal table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then fethch records from MSEG and fill internal table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then merge these two internal tables in one final internal table by looping the internal table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 06:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168261#M753805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T06:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168262#M753806</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;Pinky&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after getting firts 4 fields then u r getting last two fields so then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab (get the two fields based on first four or wht evre way u want)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update itab using fs&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;plzz reward if usefull &lt;/P&gt;&lt;P&gt;dont forget to reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 06:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168262#M753806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T06:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168263#M753807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at GT_ITAB_MT INTO GS_MT.&lt;/P&gt;&lt;P&gt;  select   ADRNR from TWLAD into GS_MT-sen_adrnr where werks  = GS_MT-werks&lt;/P&gt;&lt;P&gt;  and  lgort  = GS_MT-lgort.&lt;/P&gt;&lt;P&gt;  modify   GT_ITAB_MT from  GS_MT index sy-tabix TRANSPORTING sen_adrnr.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select   ADRNR from TWLAD into GS_MT-rec_adrnr where werks  = GS_MT-umwrk&lt;/P&gt;&lt;P&gt;  and  lgort  = GS_MT-umlgo.&lt;/P&gt;&lt;P&gt;  modify  GT_ITAB_MT from  GS_MT index sy-tabix TRANSPORTING rec_adrnr.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is wat i have written.. but i m sure that this a worst code.. since i m using select st inside the loop.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So expecting the best way..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 06:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168263#M753807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T06:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168264#M753808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Use selct single so, that u can improve some performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 06:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168264#M753808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T06:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168265#M753809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Pinky Ram,&lt;/P&gt;&lt;P&gt;                    This is kiran kumar.G.UR select statement is not correct check it the below SELECT STATEMETN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u r satisfy with my answer give me REWARD POINTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I notice only five fields and one field is missing u have to add those field in the select stmt..ok..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a~mblnr &lt;/P&gt;&lt;P&gt;          a~werks&lt;/P&gt;&lt;P&gt;          a~lgort &lt;/P&gt;&lt;P&gt;          a~umwrk&lt;/P&gt;&lt;P&gt;          a~umlgo&lt;/P&gt;&lt;P&gt;          b~blart     "I have to chose this field form second table&lt;/P&gt;&lt;P&gt;    "U HAVE TO MENTION UR FILED HERE OK..&lt;/P&gt;&lt;P&gt; from  mseg as a &lt;/P&gt;&lt;P&gt;inner  join  mkpf as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;where mblnr in s_mblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Kumar.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 06:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-internal-table/m-p/3168265#M753809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T06:16:24Z</dc:date>
    </item>
  </channel>
</rss>

