<?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: loading data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304806#M159689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u created the ztable with the fields right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u need an upload program ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that u can write a z program and use gui_upload fn module in that and upload into an internal table&lt;/P&gt;&lt;P&gt;and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE ZTABLE FROM ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y u need the upload program behind the tcodes?? i didnt understand?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now clearly data is in xcel right? then write another zprogram upload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2006 04:58:50 GMT</pubDate>
    <dc:creator>hymavathi_oruganti</dc:creator>
    <dc:date>2006-05-12T04:58:50Z</dc:date>
    <item>
      <title>loading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304805#M159688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement like:&lt;/P&gt;&lt;P&gt;In R/3 there are 3 t.codes ie., MCBZ ,MC.9 &amp;amp; ZM0019-  running these 3 tcodes results in 3 result sets, by selecting few fields from all the 3 an excel sheet is made.&lt;/P&gt;&lt;P&gt;Now the requirement is i have to create a ZTABLE with all the fields in the EXCEL sheet and upload data into it.&lt;/P&gt;&lt;P&gt;I created the ZTABLE by identifying the fields and SAP tables behind the Tcodes, i want help in writing the upload program.&lt;/P&gt;&lt;P&gt;Can i use the program behind the tcodes (MCBZ,MC.9 &amp;amp; ZM0019), modify and write my upload program?&lt;/P&gt;&lt;P&gt;And if i want to run it automatically what to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me regarding this which is an urgent requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank YOu,&lt;/P&gt;&lt;P&gt;Vaishu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 04:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304805#M159688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-12T04:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: loading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304806#M159689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u created the ztable with the fields right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u need an upload program ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that u can write a z program and use gui_upload fn module in that and upload into an internal table&lt;/P&gt;&lt;P&gt;and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE ZTABLE FROM ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y u need the upload program behind the tcodes?? i didnt understand?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now clearly data is in xcel right? then write another zprogram upload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 04:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304806#M159689</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-05-12T04:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: loading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304807#M159690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vaishu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can fill the internal table with data in your z program and use gui_upload function for uploading the data from excel to itab.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regarding run it automatically you can schedule this program using sm36 define background job in this transaction you give the zprogram name and date and time to execute it will run it in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Bhutani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Ps reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 05:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304807#M159690</guid>
      <dc:creator>sbhutani1</dc:creator>
      <dc:date>2006-05-12T05:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: loading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304808#M159691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want the data from EXCEL, but the data in the SAP tables.&lt;/P&gt;&lt;P&gt;TO be clear, my ztable contains fields which are in sap tables s032,s031 &amp;amp; s094, so the data in s032,s031 &amp;amp; s094 i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this be done with some select &amp;amp; insert statements.&lt;/P&gt;&lt;P&gt;I am also attaching the code i tried, please suggest me whether this code works or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------" /&gt;&lt;P&gt;REPORT ZRS032V .&lt;/P&gt;&lt;P&gt;TABLES : ztabzinvent,s032,S031,S094.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA tmp TYPE i VALUE 0.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab22 OCCURS 0,&lt;/P&gt;&lt;P&gt;        matnr like s032-matnr,&lt;/P&gt;&lt;P&gt;        werks like  s032-werks,&lt;/P&gt;&lt;P&gt;        mbwbest like s032-mbwbest,&lt;/P&gt;&lt;P&gt;        wbwbest like s032-wbwbest,&lt;/P&gt;&lt;P&gt;        mkobest like s032-mkobest,&lt;/P&gt;&lt;P&gt;        LETZTZUG like s032-LETZTZUG,&lt;/P&gt;&lt;P&gt;        LETZTVER like s032-LETZTVER,&lt;/P&gt;&lt;P&gt;        LETZTABG like s032-LETZTABG,&lt;/P&gt;&lt;P&gt;        LETZTBEW like s032-LETZTBEW,&lt;/P&gt;&lt;P&gt;        MGVBR like s031-MGVBR,&lt;/P&gt;&lt;P&gt;        WGVBR like s031-WGVBR,&lt;/P&gt;&lt;P&gt;        GABGA like s094-GABGA,&lt;/P&gt;&lt;P&gt;        WGABGA like s094-WGABGA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF itab22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECT * FROM s032 INTO corresponding fields of TABLE itab22.&lt;/P&gt;&lt;P&gt;*SELECT * FROM s031 INTO corresponding fields of TABLE itab22.&lt;/P&gt;&lt;P&gt;*SELECT * FROM s094 INTO corresponding fields of TABLE itab22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  p&lt;SUB&gt;matnr    p&lt;/SUB&gt;mbwbest  p&lt;SUB&gt;wbwbest  p&lt;/SUB&gt;mkobest&lt;/P&gt;&lt;P&gt;        p&lt;SUB&gt;letztver p&lt;/SUB&gt;letztabg p&lt;SUB&gt;letztbew p&lt;/SUB&gt;letztzug&lt;/P&gt;&lt;P&gt;        q&lt;SUB&gt;mgvbr    q&lt;/SUB&gt;wgvbr    r&lt;SUB&gt;wgabga   r&lt;/SUB&gt;spmon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO  CORRESPONDING FIELDS OF TABLE itab22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM  ( ( s032 AS p INNER JOIN s031 AS q ON p&lt;SUB&gt;matnr = q&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    INNER JOIN s094 AS r ON p&lt;SUB&gt;matnr = r&lt;/SUB&gt;matnr ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WHERE s032-matnr = itab22-matnr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SORT itab22 BY matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ztabzinvent-zmatnr = itab22-matnr.&lt;/P&gt;&lt;P&gt;  ztabzinvent-zwerks = itab22-werks.&lt;/P&gt;&lt;P&gt;  ztabzinvent-zmbwbest = itab22-mbwbest.&lt;/P&gt;&lt;P&gt;  ztabzinvent-Zwbwbest = itab22-wbwbest.&lt;/P&gt;&lt;P&gt;  ztabzinvent-Zmkobest = itab22-mkobest.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLETZTZUG = itab22-LETZTZUG.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLETZTVER = itab22-LETZTVER.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLETZTABG = itab22-LETZTABG.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLETZTBEW = itab22-LETZTBEW.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZMGVBR = itab22-MGVBR.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZWGVBR = itab22-WGVBR.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZGABGA = itab22-GABGA.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZWGABGA = itab22-WGABGA.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLDATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  INSERT ztabzinvent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    tmp = tmp + 1.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;WRITE tmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thak you.&lt;/P&gt;&lt;P&gt;Vaishu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 05:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304808#M159691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-12T05:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: loading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304809#M159692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want the data from EXCEL, but the data in the SAP tables.&lt;/P&gt;&lt;P&gt;TO be clear, my ztable contains fields which are in sap tables s032,s031 &amp;amp; s094, so the data in s032,s031 &amp;amp; s094 i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this be done with some select &amp;amp; insert statements.&lt;/P&gt;&lt;P&gt;I am also attaching the code i tried, please suggest me whether this code works or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------" /&gt;&lt;P&gt;REPORT ZRS032V .&lt;/P&gt;&lt;P&gt;TABLES : ztabzinvent,s032,S031,S094.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA tmp TYPE i VALUE 0.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab22 OCCURS 0,&lt;/P&gt;&lt;P&gt;        matnr like s032-matnr,&lt;/P&gt;&lt;P&gt;        werks like  s032-werks,&lt;/P&gt;&lt;P&gt;        mbwbest like s032-mbwbest,&lt;/P&gt;&lt;P&gt;        wbwbest like s032-wbwbest,&lt;/P&gt;&lt;P&gt;        mkobest like s032-mkobest,&lt;/P&gt;&lt;P&gt;        LETZTZUG like s032-LETZTZUG,&lt;/P&gt;&lt;P&gt;        LETZTVER like s032-LETZTVER,&lt;/P&gt;&lt;P&gt;        LETZTABG like s032-LETZTABG,&lt;/P&gt;&lt;P&gt;        LETZTBEW like s032-LETZTBEW,&lt;/P&gt;&lt;P&gt;        MGVBR like s031-MGVBR,&lt;/P&gt;&lt;P&gt;        WGVBR like s031-WGVBR,&lt;/P&gt;&lt;P&gt;        GABGA like s094-GABGA,&lt;/P&gt;&lt;P&gt;        WGABGA like s094-WGABGA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF itab22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECT * FROM s032 INTO corresponding fields of TABLE itab22.&lt;/P&gt;&lt;P&gt;*SELECT * FROM s031 INTO corresponding fields of TABLE itab22.&lt;/P&gt;&lt;P&gt;*SELECT * FROM s094 INTO corresponding fields of TABLE itab22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  p&lt;SUB&gt;matnr    p&lt;/SUB&gt;mbwbest  p&lt;SUB&gt;wbwbest  p&lt;/SUB&gt;mkobest&lt;/P&gt;&lt;P&gt;        p&lt;SUB&gt;letztver p&lt;/SUB&gt;letztabg p&lt;SUB&gt;letztbew p&lt;/SUB&gt;letztzug&lt;/P&gt;&lt;P&gt;        q&lt;SUB&gt;mgvbr    q&lt;/SUB&gt;wgvbr    r&lt;SUB&gt;wgabga   r&lt;/SUB&gt;spmon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO  CORRESPONDING FIELDS OF TABLE itab22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM  ( ( s032 AS p INNER JOIN s031 AS q ON p&lt;SUB&gt;matnr = q&lt;/SUB&gt;matnr )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    INNER JOIN s094 AS r ON p&lt;SUB&gt;matnr = r&lt;/SUB&gt;matnr ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WHERE s032-matnr = itab22-matnr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SORT itab22 BY matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ztabzinvent-zmatnr = itab22-matnr.&lt;/P&gt;&lt;P&gt;  ztabzinvent-zwerks = itab22-werks.&lt;/P&gt;&lt;P&gt;  ztabzinvent-zmbwbest = itab22-mbwbest.&lt;/P&gt;&lt;P&gt;  ztabzinvent-Zwbwbest = itab22-wbwbest.&lt;/P&gt;&lt;P&gt;  ztabzinvent-Zmkobest = itab22-mkobest.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLETZTZUG = itab22-LETZTZUG.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLETZTVER = itab22-LETZTVER.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLETZTABG = itab22-LETZTABG.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLETZTBEW = itab22-LETZTBEW.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZMGVBR = itab22-MGVBR.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZWGVBR = itab22-WGVBR.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZGABGA = itab22-GABGA.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZWGABGA = itab22-WGABGA.&lt;/P&gt;&lt;P&gt;  ztabzinvent-ZLDATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  INSERT ztabzinvent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    tmp = tmp + 1.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;WRITE tmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thak you.&lt;/P&gt;&lt;P&gt;Vaishu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 05:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304809#M159692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-12T05:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: loading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304810#M159693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vaishu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I believe that you seem to be doing correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Instead of using the insert in a LOOP. Try using ARRAY INSERT. Which will do insert of all the records in one shot instead of in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you only want to insert records then use the INSERT command. If you also want to update if the records already eixts or insert if it does not exists then use MODIFY that will help to achieve both.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijayendra  Rao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 05:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304810#M159693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-12T05:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: loading data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304811#M159694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. USING SELECT statements first retrive the required fields into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. from the internal table u can update the ztabl using&lt;/P&gt;&lt;P&gt;UPDATE statemnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. y u need to down load to xcel in the middle.&lt;/P&gt;&lt;P&gt;any way, using gui_download u can download the data from internal table to xcel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a~matnr &lt;/P&gt;&lt;P&gt;a~werks &lt;/P&gt;&lt;P&gt;a~mbwbest &lt;/P&gt;&lt;P&gt;a~wbwbest &lt;/P&gt;&lt;P&gt;a~mkobest &lt;/P&gt;&lt;P&gt;a~LETZTZUG &lt;/P&gt;&lt;P&gt;a~LETZTVER &lt;/P&gt;&lt;P&gt;a~LETZTABG &lt;/P&gt;&lt;P&gt;a~LETZTBEW &lt;/P&gt;&lt;P&gt;b~MGVBR&lt;/P&gt;&lt;P&gt;b~WGVBR&lt;/P&gt;&lt;P&gt;from s032 as a inner join s031 as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr and a&lt;SUB&gt;lgort = b&lt;/SUB&gt;lgort&lt;/P&gt;&lt;P&gt;and a&lt;SUB&gt;werks = b&lt;/SUB&gt;werks into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab[] is not initial.&lt;/P&gt;&lt;P&gt;select GABGA,WGABGA from s094 into table itab1 &lt;/P&gt;&lt;P&gt;for all entries in itab where matnr = itab-matnr&lt;/P&gt;&lt;P&gt;and werks = itab-werks.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now take a third internal table with the required fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now move the corresponding fields from both itab and itab1 to itab2 and append itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now update ztable from itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 05:37:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data/m-p/1304811#M159694</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-05-12T05:37:48Z</dc:date>
    </item>
  </channel>
</rss>

