<?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: Using SETLEAF table to access setclass in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275265#M151344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have the SETCLASS, SUBCLASS and a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Apr 2006 03:01:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-04T03:01:44Z</dc:date>
    <item>
      <title>Using SETLEAF table to access setclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275264#M151343</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;  I am trying to retrieve the field attribute SETNAME from the table SETLEAF based upon the parameters VALFROM and VALTO as i don't have a proper value for this to parameters i am not able to retrive the value properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. suggest if there is any Function modlue which can be used to retrive the details of SETNAME from the SETLEAF table and if possible provide the coding details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOO1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 02:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275264#M151343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T02:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using SETLEAF table to access setclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275265#M151344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have the SETCLASS, SUBCLASS and a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 03:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275265#M151344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T03:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using SETLEAF table to access setclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275266#M151345</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;try this.. but it would be better if u have the other key fields of SETLEAF in the where clause..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab occurs 0,
     setname type SETNAMENEW,
     end of itab.
SELECT setname into table setname
       FROM SETLEAF 
       WHERE VALFROM = "your value
         and valto   = "your value.
ENDSELECT.
if sy-subrc eq 0.
* itab should hold setnames for the specified range
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 03:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275266#M151345</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-04-04T03:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using SETLEAF table to access setclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275267#M151346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i have SETCLASS = '0111' and SUBCLASS = '1MAR' and a value which falls between VALFROM and VALTO values, for this combination i need SETNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 03:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275267#M151346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T03:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using SETLEAF table to access setclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275268#M151347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then use..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab occurs 0,
     setname type SETNAMENEW,
     end of itab.
SELECT setname into table setname
       FROM SETLEAF 
       WHERE SETCLASS = '0111' 
         and SUBCLASS = '1MAR' 
         VALFROM le "your value
         and valto ge "your value.
ENDSELECT.
if sy-subrc eq 0.
* itab should hold setnames for the specified range
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 03:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275268#M151347</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-04-04T03:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using SETLEAF table to access setclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275269#M151348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this option but as VALFROM and VALTO are CHAR fields this is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 03:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275269#M151348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T03:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using SETLEAF table to access setclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275270#M151349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then you cannot get it in one SELECT.. you will have to select all the setnames into an itab &amp;amp; then validate the valto &amp;amp; valfrom.. it will work only valto &amp;amp; valfrom are numbers..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab occurs 0,
     setname type SETNAMENEW,
     valfrom type SETVALMIN,
     valto   type SETVALMAX,
     end of itab.
SELECT setname valfrom valto into table setname
       FROM SETLEAF 
       WHERE SETCLASS = '0111' 
         and SUBCLASS = '1MAR' 
         VALFROM le "your value
         and valto ge "your value.
ENDSELECT.
if sy-subrc eq 0.
sort itab.
loop at  itab.
if w_value ge itab-valfrom 
   and w_value le itab-valto.
else.
delete itab index sy-tabix.
endif.
endloop.
endif.
* itab should hold setnames for the specified range
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 03:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275270#M151349</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-04-04T03:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using SETLEAF table to access setclass</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275271#M151350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This isn't very elegant, but it does what I think you are trying to do:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.

TABLES: setleaf.

PARAMETERS: p_setcl LIKE setleaf-setclass OBLIGATORY,
            p_subcl LIKE setleaf-subclass OBLIGATORY,
            p_value LIKE setleaf-valfrom  OBLIGATORY.

DATA: BEGIN OF setleaf_int OCCURS 0.
        INCLUDE STRUCTURE setleaf.
DATA: END   OF setleaf_int.

RANGES: r_value FOR setleaf-valfrom.

SELECT * FROM setleaf
  INTO TABLE setleaf_int
  WHERE setclass = p_setcl
    AND subclass = p_subcl.

LOOP AT setleaf_int.
  r_value-sign   = setleaf_int-valsign.
  r_value-option = setleaf_int-valoption.
  r_value-low    = setleaf_int-valfrom.
  r_value-high   = setleaf_int-valto.
  APPEND r_value.
  AT END OF setname.
    IF p_value IN r_value.
      WRITE: /001 p_value, 'is in set', setleaf_int-setname.
    ENDIF.
    REFRESH r_value.
  ENDAT.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2006 20:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-setleaf-table-to-access-setclass/m-p/1275271#M151350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-04T20:12:02Z</dc:date>
    </item>
  </channel>
</rss>

