<?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: select for all entries+offset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313090#M1028148</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;Can you please elaborate your explanation on Language consideration?????..sorry am not getting it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI- these fields will have only numerical values and spaces..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 11:41:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-06T11:41:58Z</dc:date>
    <item>
      <title>select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313077#M1028135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find my code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT partner bpkind FROM but000 INTO TABLE i_but000&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN lt_cmst_rtcm_bw&lt;/P&gt;&lt;P&gt;    WHERE partner = lt_cmst_rtcm_bw-tk_partner_i+0(10).&lt;/P&gt;&lt;P&gt;    SORT i_but000 BY partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;partner is of length 10, tk_partner_i is of length 32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i use this offset value for comparison, its giving me the correct output. no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but am getting this warning:&lt;/P&gt;&lt;P&gt;Bei der Verwendung von FOR ALL ENTRIES wird die Längenangabe für "TK_PARTNER_I" in dieser Bedingung ignoriert.		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i have to mind this warning??..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is to be considered, please suggest me an alternate solution to use "For all entries" in this case.&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;Yog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 15:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313077#M1028135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T15:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313078#M1028136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your programe code under the SAP guidlines than no warning should be occured.but in genral case it is not possible so you may ignore this warning message and go ahead.&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 15:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313078#M1028136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T15:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313079#M1028137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think  it depends on the requirement. If u r sure that  in tk_partner_i for 1st 10 char. data will be maintained for partner then nothing to worry about, u can ignore this warning message. Otherwise u have to give a 2nd look to ur select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JOy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 15:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313079#M1028137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T15:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313080#M1028138</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;Actually am writing this code in CMOD-CRM system. those tables are having more than 16lakhs records. i dont have any direct mapping field available..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but tk_partner_i's first 10 digits will definitely match with partner. i have checked this in debugging mode and its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so to improve the overall performance, i definitely need this comparison, else it will impart huge performance difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats why..any alternatives??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 15:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313080#M1028138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T15:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313081#M1028139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Joy already said,you can ignore this message if you are getting desired result.&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 15:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313081#M1028139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313082#M1028140</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;Please check if you have lot of records in table  lt_cmst_rtcm_bw and if these records are duplicate for partner?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes, then it is suggestable to build a range for the partner and then pass it to the select query, it will improve the performance as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if table  lt_cmst_rtcm_bw contains few records and thers is no duplicate records of partner then what you are doing is perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you in solving your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kamesh Bathla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 16:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313082#M1028140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T16:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313083#M1028141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Folks,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; please find my code below:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; SELECT partner bpkind FROM but000 INTO TABLE i_but000&lt;/P&gt;&lt;P&gt;&amp;gt;     FOR ALL ENTRIES IN lt_cmst_rtcm_bw&lt;/P&gt;&lt;P&gt;&amp;gt;     WHERE partner = lt_cmst_rtcm_bw-tk_partner_i+0(10).&lt;/P&gt;&lt;P&gt;&amp;gt;     SORT i_but000 BY partner.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; partner is of length 10, tk_partner_i is of length 32.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; when i use this offset value for comparison, its giving me the correct output. no errors.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; but am getting this warning:&lt;/P&gt;&lt;P&gt;&amp;gt; Bei der Verwendung von FOR ALL ENTRIES wird die Längenangabe für "TK_PARTNER_I" in dieser Bedingung ignoriert.		&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Do i have to mind this warning??..&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; if this is to be considered, please suggest me an alternate solution to use "For all entries" in this case.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks in advance..&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Yog&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The warning is telling you that the length specification (10) will be ignored.  So, either your code won't work, or the warning is false, and SAP got it wrong.  If you're totally convinced that your code is working as you expect, then you should let SAP know so they can fix their code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 16:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313083#M1028141</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-08-05T16:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313084#M1028142</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;If the length specification is ignored, then it should generate the error saying that the two fields must have same length in order to do the comparison right??...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am a BI consultant..dont know much in ABAP..please correct me if i am wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have checked in Debugging mode..that internal table is getting filled after this where condition is executed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so do i have to consider any other factors to ensure this?..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 17:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313084#M1028142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T17:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313085#M1028143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;correct way is to build a range for partner&lt;/P&gt;&lt;P&gt;ranges: r_partner for but000-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_partner -sign = 'I'.&lt;/P&gt;&lt;P&gt;r_partner -option = 'EQ'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_cmst_rtcm_bw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_partner -low = lt_cmst_rtcm_bw-tk_partner_i+0(10).&lt;/P&gt;&lt;P&gt;append r_partner.&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;delete adjacent duplicates from r_partner comparing low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT partner bpkind FROM but000 INTO TABLE i_but000&lt;/P&gt;&lt;P&gt;WHERE partner = r_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if in case r_partner contains lot of records.. say more than 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can do&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges: r_partner_save for but000-partner.
r_partner_save[] = r_partner[].
DATA : l_index    LIKE sy-tabix,
       l_index_fr LIKE sy-tabix,
       l_index_to LIKE sy-tabix,
       l_packet   TYPE i,
       l_calcu    TYPE p DECIMALS 3,
       l_times    TYPE i.

    DESCRIBE TABLE r_partner LINES l_index.

    IF l_index &amp;gt; 1000.
      l_calcu = l_index / 1000.
      l_times = CEIL( l_calcu ).
    ELSE.
      l_times = 1.
    ENDIF.
    CLEAR: l_packet.


    DO l_times TIMES.
      l_index_fr = 1    + l_packet.
      l_index_to = 1000 + l_packet.

      REFRESH r_partner. CLEAR r_partner.
      APPEND LINES OF r_partner_save FROM l_index_fr TO l_index_to
                   TO r_partner.
      l_packet = l_packet + 1000.
   SELECT partner bpkind FROM but000 *APPENDING* TABLE i_but000
    WHERE partner = r_partner.
enddo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kamesh Bathla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kamesh Bathla on Aug 5, 2008 7:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 17:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313085#M1028143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T17:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313086#M1028144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; If the length specification is ignored, then it should generate the error saying that the two fields must have same length in order to do the comparison right??...&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No.  It will do its best to do a comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where "b" is a space, if partner contains "ABCDEFbbbb" and lt_cmst_rtcm_bw-tk_partner_i contains "ABCDEFbbbbbbbbbbbbbbbbbbbbbbbbbb" then you'll get a match.  The following spaces are ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if partner contains "ABCDEFGHIJ" and it_cmst_rtcm_bw-tk_partner_i contains "ABCDEFGHIJKbbbbbbbbbbbbbbbbbbbbbb" you won't get a match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Joyjit Ghosh said, if you KNOW that it_cmst_rtcm_bw-tk_partner_i always has at least 22 trailing spaces, then it's perfectly safe to do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT partner bpkind FROM but000 INTO TABLE i_but000
    FOR ALL ENTRIES IN lt_cmst_rtcm_bw
    WHERE partner = lt_cmst_rtcm_bw-tk_partner_i.
SORT i_but000 BY partner.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the warning message says, the length specification is ignored, which means that it must be working without it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done similar in my BI programming quite often.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 09:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313086#M1028144</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-08-06T09:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313087#M1028145</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;Actually i am writing this code in CRM system's CMOD-User exit program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i remove the offset i am getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When using the addition "FOR ALL ENTRIES IN itab", the fields "PARTNER"	and "LT_CMST_RTCM_BW-TK_PARTNER_I" must have the same type and length.and length&lt;/STRONG&gt;.	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but with offset its generating warning and internal table is getting filled..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can you please explain me on this?..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 11:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313087#M1028145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T11:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313088#M1028146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you give the offset values in the select statement it will give you warning .....no need to consider this warning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 11:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313088#M1028146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T11:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313089#M1028147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think warning is given that code will not work for other language becuase you have given offset considering only EN language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are sure that your code will not be used for any other language, that should be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 11:27:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313089#M1028147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T11:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313090#M1028148</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;Can you please elaborate your explanation on Language consideration?????..sorry am not getting it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI- these fields will have only numerical values and spaces..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 11:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313090#M1028148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T11:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313091#M1028149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Actually i am writing this code in CRM system's CMOD-User exit program.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; when i remove the offset i am getting this error:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;When using the addition "FOR ALL ENTRIES IN itab", the fields "PARTNER"	and "LT_CMST_RTCM_BW-TK_PARTNER_I" must have the same type and length.and length&lt;/STRONG&gt;.	&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; but with offset its generating warning and internal table is getting filled..&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; so can you please explain me on this?..&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks,&lt;/P&gt;&lt;P&gt;&amp;gt; Yog&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wow!  It seems you have indeed found a bug!  With the length specification you get a warning, without you get an error!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also written a little test program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF mandt_ty,
         mandt TYPE char6,
       END OF mandt_ty.

DATA: t_mandt TYPE STANDARD TABLE OF mandt_ty WITH NON-UNIQUE KEY mandt,
      l_mandt TYPE mandt_ty.

DATA: lt_t000 TYPE STANDARD TABLE OF t000 WITH NON-UNIQUE KEY mandt,
      ls_t000 TYPE t000.

l_mandt-mandt = '1201'.
INSERT l_mandt INTO TABLE t_mandt.

SELECT * FROM t000 INTO TABLE lt_t000 FOR ALL ENTRIES IN t_mandt WHERE mandt = t_mandt-mandt+1(3).
*SELECT * FROM t000 INTO TABLE lt_t000 FOR ALL ENTRIES IN t_mandt WHERE mandt = t_mandt-mandt.

LOOP AT lt_t000 INTO ls_t000.
  WRITE: ls_t000-mandt.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it seems that the offset &lt;STRONG&gt;isn't&lt;/STRONG&gt; being ignored.  I've also done and SQL trace, and this confirms that the offset isn't being ignored - the SQL issued actually says &lt;STRONG&gt;SELECT WHERE "MANDT" = '020'&lt;/STRONG&gt; even though I've set it in the table to be 1201.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it seems that, at the moment, you can safely ignore the message.  But if SAP ever enforce it, or they make it an error instead of a warning, there will be problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 12:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313091#M1028149</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-08-06T12:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: select for all entries+offset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313092#M1028150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simple solution is to create another field in the internal table with the correct attributes and move the correct field contents to it and use &lt;STRONG&gt;that&lt;/STRONG&gt; in the SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 13:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-for-all-entries-offset/m-p/4313092#M1028150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T13:21:56Z</dc:date>
    </item>
  </channel>
</rss>

