<?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: internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688472#M888182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than collecting all the fcode into the internal table before, based on the screen just push those fcodes into the internal table it_exclude[] which u do not want in the screen and then later clear the internal table for the next screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pbo of screen one &lt;/P&gt;&lt;P&gt;Append fcodes  &amp;#145;modify&amp;#146; &amp;amp; &amp;#145;new&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pbo of screen two &lt;/P&gt;&lt;P&gt;Clear it_exclude[].&lt;/P&gt;&lt;P&gt;Then append &amp;#145;delete&amp;#146; &amp;amp; &amp;#145;modify&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this of help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christina.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2008 06:14:37 GMT</pubDate>
    <dc:creator>kinnera_christinatenali</dc:creator>
    <dc:date>2008-04-16T06:14:37Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688460#M888170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have few records in the internal table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;My requirement is i want to clear only few records of my interanl table but not all the records.&lt;/P&gt;&lt;P&gt;how can i do that.&lt;/P&gt;&lt;P&gt;can anybdy help me.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&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;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 15, 2008 3:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 17:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688460#M888170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T17:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688461#M888171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could please mention the condition for deletion of few records in ur requirement. So that it will be for us to answer ur question,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 17:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688461#M888171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T17:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688462#M888172</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;U need to do a loop using a WHERE condition in according to find out the records to be cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT ITAB WHERE ......
   CLEAR ITAB.
* or
   DELETE ITAB.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 17:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688462#M888172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688463#M888173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or DELETE.. WHERE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 17:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688463#M888173</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-04-15T17:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688464#M888174</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 can do as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab.
  if condition  "On condition to delete
    delete itab.
    clear itab.
    continue.
 endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram POnna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 17:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688464#M888174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T17:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688465#M888175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi max i will tell u my full requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;         begin of it_exclude occurs 0,&lt;/P&gt;&lt;P&gt;             fcode like sy-ucomm,&lt;/P&gt;&lt;P&gt;         end of it_exclude.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; ( i have some function in my pf-status which iam taking into  &lt;/P&gt;&lt;P&gt;   this internal table  )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_exclude-fcode = 'save'.&lt;/P&gt;&lt;P&gt;    append it_exclude.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    it_exclude-fcode = 'delete'.&lt;/P&gt;&lt;P&gt;    append it_exclude.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    it_exclude-fcode = 'modify'.&lt;/P&gt;&lt;P&gt;    append it_exclude.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;    it_exclude-fcode = 'new'.&lt;/P&gt;&lt;P&gt;    append it_exclude.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i have all those function codes in my it_exclude and now i want only fucntion codes save and delete on my ist screen and fuction codes  new and save on next screen&lt;/P&gt;&lt;P&gt;how can i do that..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 17:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688465#M888175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T17:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688466#M888176</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;    For deleting particular entries from your internal table...Add one more field in your internal table say flag. Loop the table and mark the flag X for the entries you want to delete depending upon your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once loop ends delete those lines where flag is checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT i_fnl_loc INTO wa_fnl_loc.&lt;/P&gt;&lt;P&gt;    l_indx = sy-tabix.&lt;/P&gt;&lt;P&gt;    READ TABLE i_air_craft INTO wa_air_craft WITH KEY&lt;/P&gt;&lt;P&gt;      aircr_ser = wa_fnl_loc-aircr_ser&lt;/P&gt;&lt;P&gt;      BINARY SEARCH.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0 AND wa_air_craft IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      wa_fnl_loc-flag = c_x.&lt;/P&gt;&lt;P&gt;      MODIFY i_fnl_loc FROM wa_fnl_loc INDEX l_indx TRANSPORTING flag.&lt;/P&gt;&lt;P&gt;      CLEAR wa_air_craft.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLEAR wa_fnl_loc.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE i_fnl_loc WHERE flag = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will delete only those entries where flag is space. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 15, 2008 3:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 17:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688466#M888176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T17:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688467#M888177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Satish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try creating another internal table. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*** Itab used on first screen
begin of it_exclude1 occurs 0,
fcode like sy-ucomm,
end of it_exclude1.

*** Itab used on another screens
begin of it_exclude2 occurs 0,
fcode like sy-ucomm,
end of it_exclude2.

it_exclude1-fcode = 'save'.
append it_exclude1.

it_exclude1-fcode = 'delete'.
append it_exclude1.

it_exclude2-fcode = 'new'.
append it_exclude2.

it_exclude2-fcode = 'save'.
append it_exclude2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use &lt;STRONG&gt;it_exclude1&lt;/STRONG&gt; on your first screen, and &lt;STRONG&gt;it_exclude2&lt;/STRONG&gt; on the next screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Brian Gonsales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 18:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688467#M888177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T18:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688468#M888178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi yaar....&lt;/P&gt;&lt;P&gt;i have some 6 screens and i cant create 6 internal tables for that na.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need a good logic with only 1 itab....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 18:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688468#M888178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T18:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688469#M888179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you just include the screen number in the internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... or am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ta ... JR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 21:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688469#M888179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T21:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688470#M888180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rudd's answer is the way to go in the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you will need two internal tables for this.&lt;/P&gt;&lt;P&gt;One with type of IT_EXCLUDE and another one with additional field SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on every new screen (pf-status), clear the IT_EXCLUDE and read the table holding the current screen and add all function codes from this internal table to IT_EXCLUDE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 21:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688470#M888180</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-15T21:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688471#M888181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this on each of your screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET PF-STATUS 'STATUS' EXCLUDING 'NAME'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 05:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688471#M888181</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-04-16T05:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688472#M888182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than collecting all the fcode into the internal table before, based on the screen just push those fcodes into the internal table it_exclude[] which u do not want in the screen and then later clear the internal table for the next screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pbo of screen one &lt;/P&gt;&lt;P&gt;Append fcodes  &amp;#145;modify&amp;#146; &amp;amp; &amp;#145;new&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pbo of screen two &lt;/P&gt;&lt;P&gt;Clear it_exclude[].&lt;/P&gt;&lt;P&gt;Then append &amp;#145;delete&amp;#146; &amp;amp; &amp;#145;modify&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this of help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christina.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3688472#M888182</guid>
      <dc:creator>kinnera_christinatenali</dc:creator>
      <dc:date>2008-04-16T06:14:37Z</dc:date>
    </item>
  </channel>
</rss>

