<?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: Problem for insert data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542584#M1428244</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;You structure and internal table and work area decleration seems perfect....but I ma not sure the structure declraed has the same filed with same data elemnts as table ZDT_EMPINTF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure the 2 are same ...in terms of the data element(size and type both).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are same ...run the code in the debugger, and check the value of the field being populated in the work area before the insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might help you.&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, 20 Jan 2010 06:14:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-20T06:14:54Z</dc:date>
    <item>
      <title>Problem for insert data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542580#M1428240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;                I am facing the problem whn am insert the data &lt;STRONG&gt;WORK AREA IS NOT LONG ENOUGH..&lt;/STRONG&gt;I will tell the requirmrnt..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Z table in that 15 fields is there i have to insert the data one by one means first time i have to insert 3 fields and second time 4 and again and again...in that table my primary key is emp id i dont want insert row again and again i want first time when i insert data in row and second time i have to update that roww and insert data in next 3 fields .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF data_struc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         pernr TYPE p_pernr,&lt;/P&gt;&lt;P&gt;         endda TYPE endda,&lt;/P&gt;&lt;P&gt;         begda TYPE begda,&lt;/P&gt;&lt;P&gt;         '&lt;/P&gt;&lt;P&gt;         '&lt;/P&gt;&lt;P&gt;       END OF data_struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  data_tab TYPE TABLE OF data_struc,&lt;/P&gt;&lt;P&gt;         data_tab_wa TYPE data_struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE new_innnn-pernr TO data_tab_wa-pernr.&lt;/P&gt;&lt;P&gt;      MOVE new_innnn-endda TO data_tab_wa-endda.&lt;/P&gt;&lt;P&gt;      MOVE new_innnn-begda TO data_tab_wa-begda.&lt;/P&gt;&lt;P&gt;      MOVE new_innnn-AEDTM TO data_tab_wa-AEDTM.&lt;/P&gt;&lt;P&gt;      MOVE new_innnn-UNAME TO data_tab_wa-UNAME.&lt;/P&gt;&lt;P&gt;      MOVE new_innnn-data1 TO data_tab_wa-massn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      data_tab_wa-massg = new_innnn-data1+2(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       MODIFY ZDT_EMPINTF FROM  data_tab_wa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 05:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542580#M1428240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T05:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for insert data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542581#M1428241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check the structure of Z table ZDT_EMPINTF  and the workarea data_tab_wa has the same structure.&lt;/P&gt;&lt;P&gt;If the structure of both of this differs then you get such type of error.&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;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 05:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542581#M1428241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T05:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for insert data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542582#M1428242</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;This probleme ususlly occurs because of difference in the structures:&lt;/P&gt;&lt;P&gt; For Ex; &lt;/P&gt;&lt;P&gt;Consider ITAB1 and ITAB2 have some difference in the structuer maybe 1 field is missing in ITAB2&lt;/P&gt;&lt;P&gt;MODIFY ITAB1 FROM ITAB2.&lt;/P&gt;&lt;P&gt;Then, this will give that 'work area not long enough' error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check both the structures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 05:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542582#M1428242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T05:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for insert data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542583#M1428243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check all the fields and there type in Source and Destination Structure.&lt;/P&gt;&lt;P&gt;The problem lies in field mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 06:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542583#M1428243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T06:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem for insert data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542584#M1428244</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;You structure and internal table and work area decleration seems perfect....but I ma not sure the structure declraed has the same filed with same data elemnts as table ZDT_EMPINTF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure the 2 are same ...in terms of the data element(size and type both).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are same ...run the code in the debugger, and check the value of the field being populated in the work area before the insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might help you.&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, 20 Jan 2010 06:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-for-insert-data/m-p/6542584#M1428244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T06:14:54Z</dc:date>
    </item>
  </channel>
</rss>

