<?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: Modify ITAB from work area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361870#M1038191</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;No, it did not solve the issue.&lt;/P&gt;&lt;P&gt;My que is;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to insert a row in ITAB if particular record with key (condition type ) does not exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to modify the existing record if it exists already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am not able to do it and getting dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So pls. advice more info about the " modify itab"  statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have index of the table, as well as I do not have key to write a where clause. I cannot write transporting clause bcos field list is very huge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2008 23:49:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-25T23:49:12Z</dc:date>
    <item>
      <title>Modify ITAB from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361868#M1038189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am modifying one internal table from a structure created which is similar to the itab structure.&lt;/P&gt;&lt;P&gt;I am getting short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:  wl_komv TYPE komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"      FT_KOMV TYPE  KOMV_TAB  --&amp;gt; This is a tables parameter of a function module, So internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MODIFY ft_komv from wl_komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am getting error as :&lt;/P&gt;&lt;P&gt;ST 22 Dump:&lt;/P&gt;&lt;P&gt;Runtime Error          TABLE_ILLEGAL_STATEMENT      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis                                                                        &lt;/P&gt;&lt;P&gt;    You attempted to change, delete or create a line in the                           &lt;/P&gt;&lt;P&gt;    internal table  but     &lt;/P&gt;&lt;P&gt;     no valid cursor exists                                                           &lt;/P&gt;&lt;P&gt;    for the table.                                                                    &lt;/P&gt;&lt;P&gt;    Possible reasons:                                                                 &lt;/P&gt;&lt;P&gt;    1. The relevent ABAP/4 statement does not include the addition                    &lt;/P&gt;&lt;P&gt;       "...INDEX...", although the statement is not                                   &lt;/P&gt;&lt;P&gt;       inside a "LOOP...ENDLOOP" loop processing this table.                          &lt;/P&gt;&lt;P&gt;    2. The relevent ABAP/4 statement was called from within a                         &lt;/P&gt;&lt;P&gt;       "LOOP...ENDLOOP" loop after a DELETE              &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and rgds,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 22:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361868#M1038189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T22:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ITAB from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361869#M1038190</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;Instead of using this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: wl_komv TYPE komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" FT_KOMV TYPE KOMV_TAB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can actually create work area using the same table type(in FM) that u are using for internal table by defining work area as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wl_komv like line of KOMV_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now your work area will be in the same stucture as that of internal table.I think this may solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chinni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 22:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361869#M1038190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T22:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ITAB from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361870#M1038191</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;No, it did not solve the issue.&lt;/P&gt;&lt;P&gt;My que is;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to insert a row in ITAB if particular record with key (condition type ) does not exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to modify the existing record if it exists already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am not able to do it and getting dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So pls. advice more info about the " modify itab"  statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have index of the table, as well as I do not have key to write a where clause. I cannot write transporting clause bcos field list is very huge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 23:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361870#M1038191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T23:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ITAB from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361871#M1038192</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;Data: wl_komv TYPE komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" FT_KOMV TYPE KOMV_TAB --&amp;gt; This is a tables parameter of a function module, So internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ft_komv from wl_komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wl_komv and ft_komb have different type.&lt;/P&gt;&lt;P&gt;so if you want to modify ft_komv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use like this.&lt;/P&gt;&lt;P&gt;data: ft_komv type komv_tab&lt;/P&gt;&lt;P&gt;data: wa_komv like ft_komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 01:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361871#M1038192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T01:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modify ITAB from work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361872#M1038193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can you try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If condition satisfies:&lt;/P&gt;&lt;P&gt;MODIFY ft_komv from wl_komv indes sy-tabix.&lt;/P&gt;&lt;P&gt;If condition not satisfies:&lt;/P&gt;&lt;P&gt;APPEND wl_komv  TO ft_komv .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it Helps.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 01:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab-from-work-area/m-p/4361872#M1038193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T01:43:33Z</dc:date>
    </item>
  </channel>
</rss>

