<?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: custom table updation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782141#M337054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;simply read data from diff tables based on join in ur internal table and then use tht IT to update ur custom table via 2 methods - &lt;/P&gt;&lt;P&gt;1) use modify if both the custom table and ur IT has same structure&lt;/P&gt;&lt;P&gt;2) else do a loop at ut Inernal table and then use &lt;/P&gt;&lt;P&gt;keyword Update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no need of BAPi..&lt;/P&gt;&lt;P&gt;reward if helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        siddhi daftary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Dec 2006 10:40:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-22T10:40:29Z</dc:date>
    <item>
      <title>custom table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782138#M337051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to retrieve data from different sap standard tables &lt;/P&gt;&lt;P&gt;and want to upload to one custom table ,can anybody suggest me&lt;/P&gt;&lt;P&gt;how to do.if possible sample code please.&lt;/P&gt;&lt;P&gt;Is it possible through BAPI if yes kind send one sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 10:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782138#M337051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: custom table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782139#M337052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jyoti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For that you donot need any BAPI write a report program on your own .. first collect the data from all the tables to a final internal table and use Modify statement to update that data on to your custom table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 10:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782139#M337052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T10:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: custom table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782140#M337053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;simply read data from diff tables based on join in ur internal table and then use tht IT to update ur custom table via 2 methods - &lt;/P&gt;&lt;P&gt;1) use modify if both the custom table and ur IT has same structure&lt;/P&gt;&lt;P&gt;2) else do a loop at ut Inernal table and then use &lt;/P&gt;&lt;P&gt;keyword Update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no need of BAPi..&lt;/P&gt;&lt;P&gt;reward if helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        siddhi daftary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 10:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782140#M337053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T10:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: custom table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782141#M337054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;simply read data from diff tables based on join in ur internal table and then use tht IT to update ur custom table via 2 methods - &lt;/P&gt;&lt;P&gt;1) use modify if both the custom table and ur IT has same structure&lt;/P&gt;&lt;P&gt;2) else do a loop at ut Inernal table and then use &lt;/P&gt;&lt;P&gt;keyword Update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no need of BAPi..&lt;/P&gt;&lt;P&gt;reward if helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        siddhi daftary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 10:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782141#M337054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T10:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: custom table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782142#M337055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  zkb_test3.

DATA: i_scarr TYPE TABLE OF scarr,
      w_scarr TYPE scarr,
      i_spfli TYPE TABLE OF spfli,
      w_spfli TYPE spfli.

TYPES: BEGIN OF t_custom_table,
        carrid TYPE spfli-carrid,
        carrname TYPE scarr-carrname,
        connid TYPE spfli-connid,
        countryfr TYPE spfli-countryfr,
        cityfrom TYPE spfli-cityfrom,
        airpfrom TYPE spfli-airpfrom,
        countryto TYPE spfli-countryto,
        cityto TYPE spfli-cityto,
        airpto TYPE spfli-airpto,
      END OF t_custom_table.

DATA: i_cust_tab TYPE TABLE OF t_custom_table,
      w_cust_tab TYPE t_custom_table.

START-OF-SELECTION.

  SELECT * FROM scarr
         INTO TABLE i_scarr
              UP TO 5 ROWS.

  SELECT  * FROM spfli INTO TABLE i_spfli
          FOR ALL ENTRIES IN i_scarr
              WHERE carrid = i_scarr-carrid.

  SORT i_scarr BY carrid ASCENDING.
  SORT i_spfli BY carrid ASCENDING.
  CLEAR: w_spfli, w_scarr, w_cust_tab.

  LOOP AT i_spfli INTO w_spfli.
    IF w_spfli-carrid NE w_scarr-carrid.
      READ TABLE i_scarr INTO w_scarr
           WITH KEY carrid = w_spfli-carrid.
    ENDIF.
    w_cust_tab-carrid = w_spfli-carrid.
    w_cust_tab-carrname = w_scarr-carrname.
    w_cust_tab-connid = w_spfli-connid.
    w_cust_tab-countryfr = w_spfli-countryfr.
    w_cust_tab-cityfrom = w_spfli-cityfrom.
    w_cust_tab-airpfrom = w_spfli-airpfrom.
    w_cust_tab-countryto = w_spfli-countryto.
    w_cust_tab-cityto = w_spfli-cityto.
    w_cust_tab-airpto = w_spfli-airpto.
    APPEND w_cust_tab TO i_cust_tab.
  ENDLOOP.

  IF NOT i_cust_tab IS INITIAL.
* Insert / Upadte     i_cust_tab to &amp;lt;database table&amp;gt;
* Note the     &amp;lt;database table&amp;gt; must be same as i_cust_tab
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 10:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782142#M337055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T10:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: custom table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782143#M337056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) &amp;lt;b&amp;gt;create a view for the the fields that you have in custom table and specify the join condition.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  suppose if u want field1 from table 1 and field2 from table2.&lt;/P&gt;&lt;P&gt;  then create view with fields f1 and f2 and specify the join condition.&lt;/P&gt;&lt;P&gt;   (even u can do the above as:- select f1 of t1 with one select , f2 of t2 with second select ; and then add these two fields to internal table.) &lt;/P&gt;&lt;P&gt; if u create view then only one select is required and hence performance is improved  &lt;/P&gt;&lt;P&gt;2)&amp;lt;b&amp;gt; select data from view into ur internal table.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;3)&amp;lt;b&amp;gt; update the custom table from ur internal table&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 11:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-table-updation/m-p/1782143#M337056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T11:59:22Z</dc:date>
    </item>
  </channel>
</rss>

