<?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: ITAB not enough in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013098#M411089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi u cannot do this way, u have to declare an internal table as long oas strcuture of table KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of KNA1 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this works, i have checked it, award points if found helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2007 09:20:43 GMT</pubDate>
    <dc:creator>rahulkavuri</dc:creator>
    <dc:date>2007-03-09T09:20:43Z</dc:date>
    <item>
      <title>ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013095#M411086</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;      in d below code am getting itab is not long enough can anybody sort it &amp;amp; give me d reason y am getting dat error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZEX4.&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF ITAB OCCURS 5,&lt;/P&gt;&lt;P&gt;  KUNNR LIKE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;  LAND1 LIKE KNA1-LAND1,&lt;/P&gt;&lt;P&gt;  NAME1 LIKE KNA1-NAME1,&lt;/P&gt;&lt;P&gt;  END OF ITAB.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  ITAB-KUNNR = 'NEW CUST1'.&lt;/P&gt;&lt;P&gt;  ITAB-LAND1 = 'IN'.&lt;/P&gt;&lt;P&gt;  ITAB-NAME1 = 'SUBBA RAO'.&lt;/P&gt;&lt;P&gt;  INSERT INTO KNA1 VALUES ITAB.&lt;/P&gt;&lt;P&gt;  ERRORS.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0    .&lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS INSERTED'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS NOT INSERTED' .&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013095#M411086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013096#M411087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN the code u have declared the ITAB with three fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB LIKE KNA! OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Whenever u r using the INSERT statment u need to have the work area structure&amp;lt;/b&amp;gt; similar to database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;And aslo always use MODIFY DB TABLE instead of INSERT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013096#M411087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013097#M411088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your itab must be same structure as KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then only you can insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reagrds&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013097#M411088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013098#M411089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi u cannot do this way, u have to declare an internal table as long oas strcuture of table KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of KNA1 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this works, i have checked it, award points if found helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013098#M411089</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2007-03-09T09:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013099#M411090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check ...&lt;/P&gt;&lt;P&gt;this code is error free... &lt;/P&gt;&lt;P&gt;itab should be of type kna1 when u r using values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type kna1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-KUNNR = 'NEW CUST1'.&lt;/P&gt;&lt;P&gt;ITAB-LAND1 = 'IN'.&lt;/P&gt;&lt;P&gt;ITAB-NAME1 = 'SUBBA RAO'.&lt;/P&gt;&lt;P&gt;INSERT into  kna1 values ITAB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0 .&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS INSERTED'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS NOT INSERTED' .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013099#M411090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013100#M411091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI vijay ..Just try this code&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YH_TEST04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA:BEGIN OF ITAB ,"OCCURS 5,&lt;/P&gt;&lt;P&gt;*KUNNR LIKE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;*LAND1 LIKE KNA1-LAND1,&lt;/P&gt;&lt;P&gt;*NAME1 LIKE KNA1-NAME1,&lt;/P&gt;&lt;P&gt;*END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;  kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt; itab1 like kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1-KUNNR = 'NEW CUST1'.&lt;/P&gt;&lt;P&gt;ITAB1-LAND1 = 'IN'.&lt;/P&gt;&lt;P&gt;ITAB1-NAME1 = 'SUBBA RAO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO KNA1 VALUES ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0 .&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS INSERTED'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS NOT INSERTED' .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013100#M411091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013101#M411092</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; Change the code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REPORT ZEX4.&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF ITAB OCCURS 5,&lt;/P&gt;&lt;P&gt;           Include structure kna1.&lt;/P&gt;&lt;P&gt;DATA: END OF ITAB.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;ITAB-KUNNR = 'NEW CUST1'.&lt;/P&gt;&lt;P&gt;ITAB-LAND1 = 'IN'.&lt;/P&gt;&lt;P&gt;ITAB-NAME1 = 'SUBBA RAO'.&lt;/P&gt;&lt;P&gt;INSERT INTO KNA1 VALUES ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERRORS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0 .&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS INSERTED'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS NOT INSERTED' .&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Jayaram...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013101#M411092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013102#M411093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are trying to insert 3 values from ITab.But the structure of the KNA1 is very big.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason is : when you have all the columns of the KNA1 in ITAB then only you can insert.Means the structure of the itab should be the same as KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013102#M411093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013103#M411094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE STANDARD TABLE OF KNA1 initial size 5 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;ITAB-KUNNR = 'NEW CUST1'.&lt;/P&gt;&lt;P&gt;ITAB-LAND1 = 'IN'.&lt;/P&gt;&lt;P&gt;ITAB-NAME1 = 'SUBBA RAO'.&lt;/P&gt;&lt;P&gt;INSERT INTO KNA1 VALUES ITAB.&lt;/P&gt;&lt;P&gt;*ERRORS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0 .&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS INSERTED'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS NOT INSERTED' .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but no need of internal table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can write like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB TYPE KNA1.&lt;/P&gt;&lt;P&gt;ITAB-KUNNR = 'NEW CUST1'.&lt;/P&gt;&lt;P&gt;ITAB-LAND1 = 'IN'.&lt;/P&gt;&lt;P&gt;ITAB-NAME1 = 'SUBBA RAO'.&lt;/P&gt;&lt;P&gt;INSERT INTO KNA1 VALUES ITAB.&lt;/P&gt;&lt;P&gt;*ERRORS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0 .&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS INSERTED'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORD IS NOT INSERTED' .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013103#M411094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013104#M411095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thankss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:26:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013104#M411095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: ITAB not enough</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013105#M411096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) if you want to insert  values from workarea try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     tables: zemp1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     data: wa_emp type zemp1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     wa_emp-id = 10.&lt;/P&gt;&lt;P&gt;     wa_emp-name = 'name10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      insert into zemp1 values wa_emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      and check for the values in your database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if u use internal table for inserting values use the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    tables: zemp1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     data: itab like zemp1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     itab-id = 12.&lt;/P&gt;&lt;P&gt;     itab-name = 'name12'.&lt;/P&gt;&lt;P&gt;     append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     insert zemp1 from table itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 09:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-not-enough/m-p/2013105#M411096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T09:32:13Z</dc:date>
    </item>
  </channel>
</rss>

