<?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 Database Updation and Insertion using Modify Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983707#M1161120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using Modify statment for data insertion and updation&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;MODIFY zmpit_ven_bgg_rg FROM TABLE t_ven_bgg .&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting error &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The type of the database table and work area (or internal table) "T_VEN_BGG" are not compatible.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined my internal table of below type :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_ven_bgg,&lt;/P&gt;&lt;P&gt;        mandt             TYPE mandt,&lt;/P&gt;&lt;P&gt;        lifnr                 TYPE lfa1-lifnr,&lt;/P&gt;&lt;P&gt;        bgg                 TYPE zmpit_ven_bgg_rg-matkl,&lt;/P&gt;&lt;P&gt;        ind                  TYPE zmpit_ven_bgg_rg-active_ind,&lt;/P&gt;&lt;P&gt;        created_by      TYPE zmpit_ven_bgg_rg-created_by,&lt;/P&gt;&lt;P&gt;        created_on      TYPE zmpit_ven_bgg_rg-created_on,&lt;/P&gt;&lt;P&gt;        last_changed_by TYPE zmpit_ven_bgg_rg-last_changed_by,&lt;/P&gt;&lt;P&gt;        last_changed_on TYPE zmpit_ven_bgg_rg-last_changed_on,&lt;/P&gt;&lt;P&gt;        remarks              TYPE zmpit_ven_bgg_rg-remarks,&lt;/P&gt;&lt;P&gt;        ind1(1)                TYPE c,&lt;/P&gt;&lt;P&gt;             END OF ty_ven_bgg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, ind1 is not field  of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a new field &lt;STRONG&gt;Remarks&lt;/STRONG&gt; in the table and thus i included it in the Internal table also.&lt;/P&gt;&lt;P&gt;Above Modify statement was working fine without Remarks field. I am not able to understand the error&lt;/P&gt;&lt;P&gt;as work area is also of type ty_ven_bgg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest some solution. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2009 11:58:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-05T11:58:04Z</dc:date>
    <item>
      <title>Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983707#M1161120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using Modify statment for data insertion and updation&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;MODIFY zmpit_ven_bgg_rg FROM TABLE t_ven_bgg .&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting error &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The type of the database table and work area (or internal table) "T_VEN_BGG" are not compatible.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined my internal table of below type :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_ven_bgg,&lt;/P&gt;&lt;P&gt;        mandt             TYPE mandt,&lt;/P&gt;&lt;P&gt;        lifnr                 TYPE lfa1-lifnr,&lt;/P&gt;&lt;P&gt;        bgg                 TYPE zmpit_ven_bgg_rg-matkl,&lt;/P&gt;&lt;P&gt;        ind                  TYPE zmpit_ven_bgg_rg-active_ind,&lt;/P&gt;&lt;P&gt;        created_by      TYPE zmpit_ven_bgg_rg-created_by,&lt;/P&gt;&lt;P&gt;        created_on      TYPE zmpit_ven_bgg_rg-created_on,&lt;/P&gt;&lt;P&gt;        last_changed_by TYPE zmpit_ven_bgg_rg-last_changed_by,&lt;/P&gt;&lt;P&gt;        last_changed_on TYPE zmpit_ven_bgg_rg-last_changed_on,&lt;/P&gt;&lt;P&gt;        remarks              TYPE zmpit_ven_bgg_rg-remarks,&lt;/P&gt;&lt;P&gt;        ind1(1)                TYPE c,&lt;/P&gt;&lt;P&gt;             END OF ty_ven_bgg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, ind1 is not field  of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a new field &lt;STRONG&gt;Remarks&lt;/STRONG&gt; in the table and thus i included it in the Internal table also.&lt;/P&gt;&lt;P&gt;Above Modify statement was working fine without Remarks field. I am not able to understand the error&lt;/P&gt;&lt;P&gt;as work area is also of type ty_ven_bgg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest some solution. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 11:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983707#M1161120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T11:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983708#M1161121</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;When u modify the data in database table using internal table or work area ,database table and internal table structure should be same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983708#M1161121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983709#M1161122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;verify whether you have included all the fields from the "ztable"   in your internal table....both the structures needs to be similar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983709#M1161122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983710#M1161123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;You have only create a userdefined type ty_ven_bgg with the TYPES (TYPES : BEGIN OF ty_ven_bgg,)&lt;/P&gt;&lt;P&gt;statement.so the system does not consider this as an internal table that is the reason why an error has occured when you used modify statement.please create an internal table using DATA keyword.This should be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vasavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983710#M1161123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983711#M1161124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you activate the database table after the modification?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you could try using this syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF ty_ven_bgg.
         INCLUDE STRUCTURE zmpit_ven_bgg_rg.
TYPES:   ind1(1) TYPE c,
       END OF ty_ven_bgg.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983711#M1161124</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-01-05T12:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983712#M1161125</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;when the field ind1(1) TYPE c is not in the Table , when you are modifying from the workarea into the Database table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will show the database Compatible only.&lt;/P&gt;&lt;P&gt;Check that field exists in the  database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983712#M1161125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983713#M1161126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made another type definition without including the field IND1 and Internal Table of that type. It is working now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983713#M1161126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983714#M1161127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have excluded the field from another type definition and appended the data from old table to new table and it is working fine now. Thank you everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NIBHA Priya on Jan 5, 2009 1:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983714#M1161127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983715#M1161128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have excluded the field from another type definition and appended the data from old table to new table and it is working fine now. Thank you everyone,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983715#M1161128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983716#M1161129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better reference the DDIC structure in your type definition as I suggested above, no need for error-prone double maintenance then.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 13:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983716#M1161129</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-01-05T13:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983717#M1161130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;MODIFY zmpit_ven_bgg_rg FROM TABLE t_ven_bgg .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your internal table must be declared like this.. or use all the fields of the Ztable..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of t_ven_bgg.
include structure of zmpit_ven_bgg_rg.
data: end of t_ven_bgg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 18:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983717#M1161130</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-01-05T18:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Database Updation and Insertion using Modify Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983718#M1161131</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;Though you have creaated one more internal tsble without the indc field, but you can do it using the same intrenal table by simply using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. MOVE-CORRESPONDING &amp;lt;internal table&amp;gt; to &amp;lt;ztable&amp;gt;.&lt;/P&gt;&lt;P&gt;2.MODIFY &amp;lt;ztable&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly declare the internal table using DATA after structure has been declared using TYPES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is better approach to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 03:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-updation-and-insertion-using-modify-statement/m-p/4983718#M1161131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T03:50:16Z</dc:date>
    </item>
  </channel>
</rss>

