<?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: modifying custom table with internal table fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478552#M836221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to pass the data from internal table to Database table..use INSERT statement&lt;/P&gt;&lt;P&gt;First Declare the internal table structure as Database Table.&lt;/P&gt;&lt;P&gt;and fill the internal table with data.&lt;/P&gt;&lt;P&gt;and use INSERT statement.&lt;/P&gt;&lt;P&gt;Check this program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES:MARA.
 
DATA:ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.
 
START-OF-SELECTION.
 
ITAB-MATNR = '123ABCDA'. .
ITAB-MBRSH = 'C'.
ITAB-MTART = 'FERT' .
ITAB-MEINS = 'KG' .
APPEND ITAB.
 
ITAB-MATNR = '123ABCDB'. .
ITAB-MBRSH = 'C'.
ITAB-MTART = 'FERT' .
ITAB-MEINS = 'KG' .
APPEND ITAB.
 
LOOP AT ITAB.
INSERT MARA FROM ITAB.
MODIFY MARA .
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 15:25:12 GMT</pubDate>
    <dc:creator>former_member188829</dc:creator>
    <dc:date>2008-03-03T15:25:12Z</dc:date>
    <item>
      <title>modifying custom table with internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478549#M836218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in a internal table i_claim i have 4 fields and in the custom table i have 20 fields, know i am updating in enque with i_claim to custom table it is showing error as i_claim is not long off what is this error reflect to and how do i need to solve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 15:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478549#M836218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T15:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: modifying custom table with internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478550#M836219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To update DB table using internal table, you need to have the internal table of the same type as DB table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 15:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478550#M836219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T15:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: modifying custom table with internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478551#M836220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_carrid TYPE scarr-carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA scarr_tab TYPE SORTED TABLE OF scarr &lt;/P&gt;&lt;P&gt;               WITH UNIQUE KEY carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: idx      TYPE sy-tabix, &lt;/P&gt;&lt;P&gt;      scarr_wa TYPE scarr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;       FROM scarr &lt;/P&gt;&lt;P&gt;       INTO TABLE scarr_tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE scarr_tab &lt;/P&gt;&lt;P&gt;     WITH TABLE KEY carrid   = p_carrid &lt;/P&gt;&lt;P&gt;     TRANSPORTING NO FIELDS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;idx = sy-tabix. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scarr_wa-currcode = 'EUR'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY scarr_tab INDEX idx FROM scarr_wa &lt;/P&gt;&lt;P&gt;       TRANSPORTING currcode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 3, 2008 10:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 15:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478551#M836220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T15:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: modifying custom table with internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478552#M836221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to pass the data from internal table to Database table..use INSERT statement&lt;/P&gt;&lt;P&gt;First Declare the internal table structure as Database Table.&lt;/P&gt;&lt;P&gt;and fill the internal table with data.&lt;/P&gt;&lt;P&gt;and use INSERT statement.&lt;/P&gt;&lt;P&gt;Check this program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES:MARA.
 
DATA:ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.
 
START-OF-SELECTION.
 
ITAB-MATNR = '123ABCDA'. .
ITAB-MBRSH = 'C'.
ITAB-MTART = 'FERT' .
ITAB-MEINS = 'KG' .
APPEND ITAB.
 
ITAB-MATNR = '123ABCDB'. .
ITAB-MBRSH = 'C'.
ITAB-MTART = 'FERT' .
ITAB-MEINS = 'KG' .
APPEND ITAB.
 
LOOP AT ITAB.
INSERT MARA FROM ITAB.
MODIFY MARA .
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 15:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478552#M836221</guid>
      <dc:creator>former_member188829</dc:creator>
      <dc:date>2008-03-03T15:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: modifying custom table with internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478553#M836222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a Structure/work area and an internal table of type custom_table.&lt;/P&gt;&lt;P&gt;Loop at I_claim.&lt;/P&gt;&lt;P&gt;Move-corresponding i_claim to wa_custom. "Move fields to be modified in custom table&lt;/P&gt;&lt;P&gt;Append wa_custom to i_custom.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify custom_table from table I_custom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 15:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-custom-table-with-internal-table-fields/m-p/3478553#M836222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T15:33:22Z</dc:date>
    </item>
  </channel>
</rss>

