<?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 tbale in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921477#M939540</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;There are two ways of having the Company codes and  can be used for validating the Internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) You can use ITAB-BURKS IN ('B1','B2',...'Bn')&lt;/P&gt;&lt;P&gt;    Where B1..n is company codes.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;b) Declare a range for BURKS and add all the Company codes in the range and use it for validating as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ITAB-BUKRS in rng_BURKS.&lt;/P&gt;&lt;P&gt;where rng_BURKS is range .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbalagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2008 05:50:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-30T05:50:47Z</dc:date>
    <item>
      <title>internal tbale</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921476#M939539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am having one internal table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one of the field from itab is BUKRS.&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;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inside the loop i need to check company code BUKRS from the ITAB with the fixed set of company codes US1 US2 US4 US5 US6 US9 US10 ....... like this i have 25 to 30 fixed set of company codes.&lt;/P&gt;&lt;P&gt;based on this i want to populate some other fields of the output internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eamaple if the company code is with in this set of values i wnat to polate some out fields with some constants other wise with some other value.&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;example itab-bukrs&lt;/STRONG&gt;* = US1 or US2 or US4 or US5  or US6 or US9  or  US10 or us12 or us 14 or etc ...... like this i need to compare with some other 15 values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one plesae help me is there any easy way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;raadha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921476#M939539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: internal tbale</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921477#M939540</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;There are two ways of having the Company codes and  can be used for validating the Internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) You can use ITAB-BURKS IN ('B1','B2',...'Bn')&lt;/P&gt;&lt;P&gt;    Where B1..n is company codes.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;b) Declare a range for BURKS and add all the Company codes in the range and use it for validating as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ITAB-BUKRS in rng_BURKS.&lt;/P&gt;&lt;P&gt;where rng_BURKS is range .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbalagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921477#M939540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: internal tbale</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921478#M939541</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 use local ranges in program or selection-options from selection screen (using transaction variant etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) case with ranges. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA lr_bukrs TYPE RANGE OF burks WITH HEADER LINE.

CLEAR lr_bukrs.
lr_bukrs-opti  = 'EQ'.
lr_bukrs-sign = 'I'.

lr_bukrs-low  = 'US1'.
APPEND lr_bukrs.
lr_bukrs-low  = 'US2'.
APPEND lr_bukrs.
" .... and so on.

LOOP AT itab.
   IF itab-burks IN lr_bukrs.
"     your logic
   ENDIF.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if you use selection screen. you can add hided selec-options  s_bukrs FOR bkpf-bukrs (for example). and than create system variant for you program then fill default values in selection screen for s_burks.   and check it-bukrs in s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921478#M939541</guid>
      <dc:creator>pavel_parshenkov2</dc:creator>
      <dc:date>2008-05-30T05:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: internal tbale</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921479#M939542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  velu&lt;/P&gt;&lt;P&gt;thanks for your responce &lt;/P&gt;&lt;P&gt;can you please explain first one littile bit more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 06:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921479#M939542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T06:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: internal tbale</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921480#M939543</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 try this...&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;If itab-bukrs in ('US1','US2',....... so on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your functionality...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 11:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921480#M939543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T11:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: internal tbale</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921481#M939544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first example is an &lt;STRONG&gt;"in line"&lt;/STRONG&gt; Range test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second example was a built range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because your need for 25 to 30 company codes, it would likely be more prudent to use the second option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 13:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tbale/m-p/3921481#M939544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T13:20:24Z</dc:date>
    </item>
  </channel>
</rss>

