<?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: ranges doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-doubt/m-p/5055429#M1174966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare ur range like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : R_PERNR type range of WA_PB4000-PERNR. "ranges is obsolete
data: l_wa_range like line of r_pernr.

"use append like
append l_wa_range to r_pernr.
 now loop at r_pernr and copy into it_range or directly assign l_wa_range to it_range.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Dec 2008 09:39:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-31T09:39:44Z</dc:date>
    <item>
      <title>ranges doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-doubt/m-p/5055427#M1174964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear EXperts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below code i am capturing all the pernr values in ranges if the same i pass in perform headcunt changing r_pernr.  it's saying that r_pernr is not an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_PB4000 INTO WA_PB4000 WHERE  ENDDA EQ '99991231' AND BEGDA BETWEEN LV_LWFD AND LV_LWED AND  APSTA EQ 7.&lt;/P&gt;&lt;P&gt;      LV_HC = LV_HC + 1.&lt;/P&gt;&lt;P&gt;        RANGES : R_PERNR FOR WA_PB4000-PERNR.&lt;/P&gt;&lt;P&gt;      IF IT_PB4000 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;        R_PERNR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;        R_PERNR-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;        R_PERNR-LOW = WA_PB4000-PERNR.&lt;/P&gt;&lt;P&gt;        APPEND  R_PERNR.&lt;/P&gt;&lt;P&gt;        it_range[] = r_pernr[].&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    MOVE LV_HC TO WA_OUTPUT-PWEEK.&lt;/P&gt;&lt;P&gt;    CLEAR : LV_HC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there anyother way to capture all the pernr values and these values i have to pass in perform statements&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Thiru. R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: thirukumaran rajendran on Dec 31, 2008 10:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 09:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-doubt/m-p/5055427#M1174964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T09:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: ranges doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-doubt/m-p/5055428#M1174965</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;&lt;STRONG&gt;use tables instead of changing.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PERFORM get_bsis TABLES     gt_bsis&lt;/P&gt;&lt;P&gt;                                s_arecon&lt;/P&gt;&lt;P&gt;                                r_apar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_bsis TABLES p_tab STRUCTURE bsis&lt;/P&gt;&lt;P&gt;                     p_select STRUCTURE r_glrange&lt;/P&gt;&lt;P&gt;                     p_range STRUCTURE r_glrange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM bsis&lt;/P&gt;&lt;P&gt;    INTO TABLE p_tab&lt;/P&gt;&lt;P&gt;    WHERE bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;    AND hkont IN p_range&lt;/P&gt;&lt;P&gt;    AND  gjahr IN s_year&lt;/P&gt;&lt;P&gt;    AND  monat IN s_period&lt;/P&gt;&lt;P&gt;    AND  vbund NE ' '.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDFORM.                    "get_bsis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;Ramya .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 09:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-doubt/m-p/5055428#M1174965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T09:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: ranges doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-doubt/m-p/5055429#M1174966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare ur range like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : R_PERNR type range of WA_PB4000-PERNR. "ranges is obsolete
data: l_wa_range like line of r_pernr.

"use append like
append l_wa_range to r_pernr.
 now loop at r_pernr and copy into it_range or directly assign l_wa_range to it_range.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 09:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-doubt/m-p/5055429#M1174966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T09:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: ranges doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-doubt/m-p/5055430#M1174967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thiru. R,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The declaration RANGES is a obsolete stmt. Plz try this declaration, it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: TY_R_PERNR RANGE OF PERNR.

DATA: 

R_PERNR TYPE TY_R_PERNR,
WA_R_PERNR TYPE LINE OF TY_R_PERNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And modify the code accordingly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
WA_R_PERNR-SIGN = 'I'.
WA_R_PERNR-OPTION = 'EQ'.
WA_R_PERNR-LOW = WA_PB4000-PERNR.
APPEND WA_R_PERNR TO R_PERNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can pass R_PERNR as changing parameter as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
perform headcunt 
changing r_pernr type TY_R_PERNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Dec 31, 2008 10:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 09:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-doubt/m-p/5055430#M1174967</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2008-12-31T09:42:57Z</dc:date>
    </item>
  </channel>
</rss>

