<?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: Read table doubt.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984855#M951948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have defined IT_MINI as internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_KEYROLE occurs 0,&lt;/P&gt;&lt;P&gt;      KEYROLE LIKE ZROLEMAP-KEYROLE,&lt;/P&gt;&lt;P&gt;      TCODE LIKE ZROLEMAP-TCODE,&lt;/P&gt;&lt;P&gt;      OBJECT LIKE ZROLEMAP-OBJECT,&lt;/P&gt;&lt;P&gt;      FIELD LIKE ZROLEMAP-FIELD,&lt;/P&gt;&lt;P&gt;      VALUE LIKE ZROLEMAP-VALUE,&lt;/P&gt;&lt;P&gt;      END OF I_KEYROLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_MINI LIKE I_KEYROLE OCCURS 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now IT_MINI is populated with data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to read data as following, system says there is no component like IT_MINI[1]. Even if I try to read data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table I_RATT with KEY ROLENAME = I_ROLE-ROLE OBJECT = 'S_TCODE' &lt;/P&gt;&lt;P&gt;                                     LOW =  IT_MINI[1]-TCODE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 16:25:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T16:25:37Z</dc:date>
    <item>
      <title>Read table doubt....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984850#M951943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a internal table which stores following values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T-Code----&lt;DEL&gt;OBJECT&lt;/DEL&gt;&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="--------" /&gt;FIELD----VALUE&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AC01--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;M_SRV_LS&lt;DEL&gt;&lt;HR originaltext="---" /&gt;ACTVT&lt;/DEL&gt;-----01&lt;P&gt;&lt;/P&gt;&lt;P&gt;AC01--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;M_SRV_LV&lt;DEL&gt;&lt;HR originaltext="---" /&gt;ACTVT&lt;/DEL&gt;-----02&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have fetched all the data from AGR_1251 table into internal table T_ROLES which stores auhorization data for roles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read these internal table T_ROLES and check sy-subrc, such that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object = S_TCODE, &lt;/P&gt;&lt;P&gt;Object = M_SRV_LS and M_SRV_LV, Field = ACTVT and VALUE = 01 and 02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now every time the internal table will have different Objects, Field and values but the T-Code will be same for all those values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 15:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984850#M951943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T15:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read table doubt....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984851#M951944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;AGR_NAME&lt;/P&gt;&lt;P&gt; OBJECT&lt;/P&gt;&lt;P&gt;AUTH&lt;/P&gt;&lt;P&gt;FIELD&lt;/P&gt;&lt;P&gt;LOW&lt;/P&gt;&lt;P&gt;HIGH&lt;/P&gt;&lt;P&gt;from AGR_1251&lt;/P&gt;&lt;P&gt;into table it_roles&lt;/P&gt;&lt;P&gt;where object in s_object .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_roles where OBJECT in ( S_TCODE ,   M_SRV_LV )&lt;/P&gt;&lt;P&gt;                      and field  =  ACTVT &lt;/P&gt;&lt;P&gt;                       and low = 1 &lt;/P&gt;&lt;P&gt;                        and high = 2 .&lt;/P&gt;&lt;P&gt;write:/ ............&lt;/P&gt;&lt;P&gt;endloop .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 15:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984851#M951944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T15:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read table doubt....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984852#M951945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I want to read the internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table IT_ROLES with KEY ROLENAME = XXX OBJECT = (I need all the objects which are there in another internal table) Field = (All the field which are there in another internal table)  Value (All the values which are there in another internal table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 15:42:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984852#M951945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T15:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Read table doubt....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984853#M951946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table IT_ROLES with KEY ROLENAME = XXX .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table IT_ROLES with KEY OBJECT = (I need all the objects which are there in another internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 15:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984853#M951946</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-19T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Read table doubt....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984854#M951947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  read is used to get the single line of data but here we may get many no of records ..so it is better to use the loop than read statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 15:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984854#M951947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T15:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read table doubt....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984855#M951948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have defined IT_MINI as internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_KEYROLE occurs 0,&lt;/P&gt;&lt;P&gt;      KEYROLE LIKE ZROLEMAP-KEYROLE,&lt;/P&gt;&lt;P&gt;      TCODE LIKE ZROLEMAP-TCODE,&lt;/P&gt;&lt;P&gt;      OBJECT LIKE ZROLEMAP-OBJECT,&lt;/P&gt;&lt;P&gt;      FIELD LIKE ZROLEMAP-FIELD,&lt;/P&gt;&lt;P&gt;      VALUE LIKE ZROLEMAP-VALUE,&lt;/P&gt;&lt;P&gt;      END OF I_KEYROLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_MINI LIKE I_KEYROLE OCCURS 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now IT_MINI is populated with data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to read data as following, system says there is no component like IT_MINI[1]. Even if I try to read data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table I_RATT with KEY ROLENAME = I_ROLE-ROLE OBJECT = 'S_TCODE' &lt;/P&gt;&lt;P&gt;                                     LOW =  IT_MINI[1]-TCODE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 16:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984855#M951948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T16:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read table doubt....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984856#M951949</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;PRE&gt;&lt;CODE&gt;READ table I_RATT with KEY ROLENAME = I_ROLE-ROLE 
                                           OBJECT = 'S_TCODE' 
                                           LOW = IT_MINI-TCODE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the way u use it. it will give the matching record for the goven condition,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_MINI is the internal table in which u want to pass the field TCODE to Low to read the value from I_RATT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 16:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-doubt/m-p/3984856#M951949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T16:42:15Z</dc:date>
    </item>
  </channel>
</rss>

