<?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: For all entries. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753321#M326551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks all for you replies. All have given seemingly the same alternative. I have tried it, but the project in which i am using it, this alternative would be a performance issue because of an extra loop that i have to do. I would be glad if there is anyother alternative in addition to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou and regards,&lt;/P&gt;&lt;P&gt;chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2006 07:17:32 GMT</pubDate>
    <dc:creator>Chaitanyat</dc:creator>
    <dc:date>2006-12-15T07:17:32Z</dc:date>
    <item>
      <title>For all entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753316#M326546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select statment i have used is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;field 1&amp;gt;&lt;/P&gt;&lt;P&gt;          &amp;lt;field 2&amp;gt;&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;           &amp;lt;field n&amp;gt;&lt;/P&gt;&lt;P&gt;from  &amp;lt;dbtable&amp;gt;&lt;/P&gt;&lt;P&gt;into table &amp;lt;internal table&amp;gt;&lt;/P&gt;&lt;P&gt;for all entries in &amp;lt;internal table 2&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;field 1&amp;gt;  = &amp;lt;internal table 2&amp;gt;-&amp;lt;field&amp;gt;+len(offset).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above statement the length and offset were hard coded. When i tried giving the code dynamically, the statement was generating an error. I would like to know if there is any other alternative for a statement like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753316#M326546</guid>
      <dc:creator>Chaitanyat</dc:creator>
      <dc:date>2006-12-15T06:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: For all entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753317#M326547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Loop at the second internal table and move the substring part (with dynamic offset) to another internal table or another fiold in the same table. Use this new field/table in the for all entries clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753317#M326547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: For all entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753318#M326548</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;In the internal table 2 -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; have a new field "offset" which will &lt;/P&gt;&lt;P&gt;have the value =  &amp;lt;internal table 2&amp;gt;-&amp;lt;field&amp;gt;+len(offset).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this u do a &lt;/P&gt;&lt;P&gt;loop at internal table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;nternal table 2&amp;gt;-offset = &amp;lt;internal table 2&amp;gt;-&amp;lt;field&amp;gt;+len(offset).&lt;/P&gt;&lt;P&gt;modify nternal table 2.&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;Then u have the select statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;field 1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;field 2&amp;gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;field n&amp;gt;&lt;/P&gt;&lt;P&gt;from &amp;lt;dbtable&amp;gt;&lt;/P&gt;&lt;P&gt;into table &amp;lt;internal table&amp;gt;&lt;/P&gt;&lt;P&gt;for all entries in &amp;lt;internal table 2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;where &amp;lt;field 1&amp;gt; = &amp;lt;internal table 2&amp;gt;-&amp;lt;offset&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 07:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753318#M326548</guid>
      <dc:creator>santhosh_patil</dc:creator>
      <dc:date>2006-12-15T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: For all entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753319#M326549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chaitanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give error, You should not use offsets. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Take one more internal table and take copy of data into that table.&lt;/P&gt;&lt;P&gt;Modify the tables as per your offset value.&lt;/P&gt;&lt;P&gt;Please in select query&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 07:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753319#M326549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T07:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: For all entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753320#M326550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move the string field(you want to trim or extract) into another field and then use that field in the condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sumthing like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_field = field+len(offset)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select &amp;lt;field 1&amp;gt;
&amp;lt;field 2&amp;gt;
.
.
&amp;lt;field n&amp;gt;
from &amp;lt;dbtable&amp;gt;
into table &amp;lt;internal table&amp;gt;
for all entries in &amp;lt;internal table 2&amp;gt;
where &amp;lt;field 1&amp;gt; = &amp;lt;internal table 2&amp;gt;-&amp;lt;gv_field&amp;gt;

&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;Shehryar Dahar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 07:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753320#M326550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T07:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: For all entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753321#M326551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks all for you replies. All have given seemingly the same alternative. I have tried it, but the project in which i am using it, this alternative would be a performance issue because of an extra loop that i have to do. I would be glad if there is anyother alternative in addition to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou and regards,&lt;/P&gt;&lt;P&gt;chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 07:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753321#M326551</guid>
      <dc:creator>Chaitanyat</dc:creator>
      <dc:date>2006-12-15T07:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: For all entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753322#M326552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to try generated code which would give you the chance to do things like dynamically assigning offset and length in a select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just write your statements into an internal table and turn it into executable code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember: there is no syntax-check whithin the text-table, so be extra careful whith it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - just copy, paste and adapt to your needs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZEXMP_GENERATE.&lt;/P&gt;&lt;P&gt;data: BEGIN OF lgtx OCCURS 0,&lt;/P&gt;&lt;P&gt;        lgart TYPE lgart,&lt;/P&gt;&lt;P&gt;        lgtxt TYPE lgtxt,&lt;/P&gt;&lt;P&gt;      END OF lgtx.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;offset and length to be set dynamically&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: i_off(3) TYPE n VALUE 3,&lt;/P&gt;&lt;P&gt;      i_len(3) TYPE n VALUE 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;texttable for your code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: formline(75).&lt;/P&gt;&lt;P&gt;data: formtab like table of formline.&lt;/P&gt;&lt;P&gt;data: repid type sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;your &amp;lt;internal table 2&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: BEGIN OF t1 occurs 0,&lt;/P&gt;&lt;P&gt;        cfield(10),&lt;/P&gt;&lt;P&gt;      END OF t1.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;some nonsense, except for +3(4)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND 'bla/101foo' to t1.&lt;/P&gt;&lt;P&gt;APPEND 'bla/102foo' to t1.&lt;/P&gt;&lt;P&gt;APPEND 'bla/103foo' to t1.&lt;/P&gt;&lt;P&gt;APPEND 'bla/104foo' to t1.&lt;/P&gt;&lt;P&gt;APPEND 'bla/106foo' to t1.&lt;/P&gt;&lt;P&gt;APPEND 'bla/107foo' to t1.&lt;/P&gt;&lt;P&gt;APPEND 'bla/108foo' to t1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*build up the source&lt;/P&gt;&lt;P&gt;APPEND 'PROGRAM SUBPOOL.'              TO formtab. "ESSENTIAL!!!!&lt;/P&gt;&lt;P&gt;APPEND 'FORM SEL4ALL USING t_in'       TO formtab. "your formname&lt;/P&gt;&lt;P&gt;APPEND '             CHANGING t_out.'  TO formtab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;remember! you're outside your program context, so globals won't be visible&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from here. DDIC-references would have made life easier&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;local copies, because Form SEL4ALL wouldn't know, they're tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND 'DATA: BEGIN OF t1 occurs 0,'   TO formtab.&lt;/P&gt;&lt;P&gt;APPEND '        cfield(10),'           TO formtab.&lt;/P&gt;&lt;P&gt;APPEND '      END OF t1.'              TO formtab.&lt;/P&gt;&lt;P&gt;APPEND 'DATA: BEGIN OF lgtx OCCURS 0,' TO formtab.&lt;/P&gt;&lt;P&gt;APPEND '        lgart TYPE lgart,'     TO formtab.&lt;/P&gt;&lt;P&gt;APPEND '        lgtxt TYPE lgtxt,'     TO formtab.&lt;/P&gt;&lt;P&gt;APPEND '      END OF lgtx.'            TO formtab.&lt;/P&gt;&lt;P&gt;APPEND '  t1[] = t_in.'                TO formtab.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;APPEND '  SELECT LGART LGTXT FROM T512T' TO formtab.&lt;/P&gt;&lt;P&gt;APPEND '       INTO TABLE lgtx'        TO formtab.&lt;/P&gt;&lt;P&gt;APPEND '       FOR ALL ENTRIES IN T1'  TO formtab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;build up the dynamic part&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  concatenate&lt;/P&gt;&lt;P&gt;  '   WHERE LGART = T1-CFIELD+' i_off '(' i_len ')' INTO formline.&lt;/P&gt;&lt;P&gt;APPEND formline TO formtab.&lt;/P&gt;&lt;P&gt;APPEND '       AND SPRSL = SY-LANGU.'  to formtab.&lt;/P&gt;&lt;P&gt;APPEND '  T_OUT = LGTX[].'             TO formtab.&lt;/P&gt;&lt;P&gt;APPEND 'ENDFORM.'                      TO formtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;make it executable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  GENERATE SUBROUTINE POOL formtab NAME repid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and doit&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM sel4all IN PROGRAMM (repid) USING t1[]&lt;/P&gt;&lt;P&gt;                                                                CHANGING lgtx[].&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;it works!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT lgtx.&lt;/P&gt;&lt;P&gt;    WRITE:/ lgtx-lgart, lgtx-lgtxt.&lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it does the trick for you.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 21:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753322#M326552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T21:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: For all entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753323#M326553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you getting data in to ur internaltable2. if you are getting one entry at a time, so i would suggest to add a field to the internal table and move the offset value in it.&lt;/P&gt;&lt;P&gt;Now using this field you can use for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if you are not getting data into internal tbale2 as a single record at a time then you have to loop.&lt;/P&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;Shreekant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 22:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries/m-p/1753323#M326553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T22:35:36Z</dc:date>
    </item>
  </channel>
</rss>

