<?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: inserting into table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513864#M1067397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apart from being same structure, the field length should also match. Otherwise loop at the internal table and assign the value to the table field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbtab-f1 = itab-f1. (Or)  move itab-f1 to dbtab-f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2008 08:37:09 GMT</pubDate>
    <dc:creator>Sathish</dc:creator>
    <dc:date>2008-09-25T08:37:09Z</dc:date>
    <item>
      <title>inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513857#M1067390</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;i have created 2 tables and i need to insert the records into them from screens. i have created my internal table according to the screen fields and also tables.but i'm getting a error message as &lt;/P&gt;&lt;P&gt;  "  The type of the database table and work area (or internal table)		&lt;/P&gt;&lt;P&gt;"IT_HEADER" are not compatible.	"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513857#M1067390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T08:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513858#M1067391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you pls share how you have declared &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513858#M1067391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T08:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513859#M1067392</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;I think your database table and internal table structure is different. just change your internal table field based upon database tabel and try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513859#M1067392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T08:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513860#M1067393</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 MOVE-CORRESPONDING to move the files from the Screen to the work area of first itab. This work area should be of the same type as ur first table. &lt;/P&gt;&lt;P&gt;The use MOVE-CORRESPONDING to move the fields of the Screen to the work are of the second itab. This work area should be of the same type as ur second table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After moving the screen fields to the respective work areas, perform the insert operation on the 2 DB tables from its respective workarea's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Advait.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513860#M1067393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T08:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513861#M1067394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my database table and internal table have same structure.&lt;/P&gt;&lt;P&gt;but in screens the fieldlengths is my concern..&lt;/P&gt;&lt;P&gt;in screen if the length has 18.&lt;/P&gt;&lt;P&gt;in table i have declared it as length is 14 and decimals 2..so ouput length is 18..is it the right way..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513861#M1067394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T08:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513862#M1067395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Check the definition of work area.&lt;/P&gt;&lt;P&gt;2. The fields in the table are not the same as fields in work area. Do check on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513862#M1067395</guid>
      <dc:creator>Sathish</dc:creator>
      <dc:date>2008-09-25T08:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513863#M1067396</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;Check these demo programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop.&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop_at.&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement &lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to know more, read into&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2934287&amp;amp;messageID=673474" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2934287&amp;amp;messageID=673474&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2646265"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513863#M1067396</guid>
      <dc:creator>satsrockford</dc:creator>
      <dc:date>2008-09-25T08:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513864#M1067397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apart from being same structure, the field length should also match. Otherwise loop at the internal table and assign the value to the table field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbtab-f1 = itab-f1. (Or)  move itab-f1 to dbtab-f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513864#M1067397</guid>
      <dc:creator>Sathish</dc:creator>
      <dc:date>2008-09-25T08:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513865#M1067398</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;Declare like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No.of Characters :  13&lt;/P&gt;&lt;P&gt;Decimal place     :    3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now total output length : 18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will helps&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513865#M1067398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T08:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513866#M1067399</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 its a decimal, then for lenght 14 with decimal 2 means, &lt;/P&gt;&lt;P&gt;12(whole number).2(decimal places)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said you have declared a structure for the screen. Make sure that the data types used in that structure correspond to those used in ur underlying database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Advait.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513866#M1067399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T08:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513867#M1067400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the visible length in the screen  for the field is 18.&lt;/P&gt;&lt;P&gt;but it accepts only 13.its of type decimal in the screen..&lt;/P&gt;&lt;P&gt;then how should i declare it in the table for the field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 09:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513867#M1067400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T09:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513868#M1067401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Post your code segment for troubleshooting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 09:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513868#M1067401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T09:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: inserting into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513869#M1067402</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;1st of all when designing the fields in the screen press F6 to get the fields from the program. do not manually create any screen fields. otherwise there would be a lot of mismatch...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 07:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-into-table/m-p/4513869#M1067402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T07:14:57Z</dc:date>
    </item>
  </channel>
</rss>

