<?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: offset in where condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244780#M1211910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi altaf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't hard code the value like '71%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;beacuse i will have another client '811' then i need to get the value of 810 i.e. '345'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i can't hard code and get the value.&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>Wed, 11 Feb 2009 13:39:41 GMT</pubDate>
    <dc:creator>tarangini_katta</dc:creator>
    <dc:date>2009-02-11T13:39:41Z</dc:date>
    <item>
      <title>offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244762#M1211892</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;How to use offset in where condition like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_client= sy-mandt.&lt;/P&gt;&lt;P&gt;Select * from ztable where client(2) =  l_client(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this hsowing error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please how to use offset in where condition.&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>Wed, 11 Feb 2009 12:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244762#M1211892</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-11T12:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244763#M1211893</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 think you can't use it in the Select Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244763#M1211893</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-11T12:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244764#M1211894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarangini&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Offset specification in WHERE clause of the SELECT query throws a syntax error.&lt;/P&gt;&lt;P&gt;You could instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM ztable.
DELETE FROM ztable where client(2) NE l_client(2).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244764#M1211894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T12:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244765#M1211895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   you need to write like this&lt;/P&gt;&lt;P&gt;l_client= sy-mandt.&lt;/P&gt;&lt;P&gt;w_client  = l_client(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from ztable where client = w_client&lt;/P&gt;&lt;P&gt;we cannot use offset for client as it reads the contents completely and not in parts&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Viquar Iqbal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:59:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244765#M1211895</guid>
      <dc:creator>viquar_iqbal</dc:creator>
      <dc:date>2009-02-11T12:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244766#M1211896</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;go with following code  THIS IS A WORKING CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot use assignment in where clause along with offset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_cahr(2).&lt;/P&gt;&lt;P&gt;l_client= sy-mandt.&lt;/P&gt;&lt;P&gt;w_cahr = l_client(2).&lt;/P&gt;&lt;P&gt;Select * from ztable where client(2) = w_cahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244766#M1211896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244767#M1211897</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;Select single mandt into l_client from ztable&lt;/P&gt;&lt;P&gt;   CLIENT SPECIFIED&lt;/P&gt;&lt;P&gt;     where mandt = l_client+0(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is the condition what you want to write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244767#M1211897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244768#M1211898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what u can do is fetch the value of the value with the offset into a variable.&lt;/P&gt;&lt;P&gt;in the select query, do comparision wth this variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244768#M1211898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244769#M1211899</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 using '+'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_client= sy-mandt.&lt;/P&gt;&lt;P&gt;Select * from ztable where client(2) = l_client+0(2).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244769#M1211899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244770#M1211900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   we can use offsets in SELECT statement when we pass the data base values directly to the internal table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code:&lt;/P&gt;&lt;P&gt;     select ......&lt;/P&gt;&lt;P&gt;               .......   from (db table) onto (it_tab-field1, ........).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244770#M1211900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244771#M1211901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is throwing error message client(2) does not exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please have a look at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244771#M1211901</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-11T13:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244772#M1211902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Taringini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use offset after the = sign in where clause not before that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244772#M1211902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244773#M1211903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    You can't use offsets in SELECT statements, instead fetch the whole data from the table, and then use IF and ENDIF conditions using offsets and delete the data from the table which does not meet your requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare an internal table of structure ztable with addition of &lt;STRONG&gt;flag&lt;/STRONG&gt; field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM ztable INTO TABLE it_itab .

LOOP AT it_itab INTO wa_itab.
w_client = wa_itab-client+0(2).
IF w_client = l_client.
    wa_itab-flag = 'X'.
    MODIFY it_itab INDEX sy-tabix FROM wa_itab TRANSPORTING flag.
ENDIF.

DELETE it_itab WHERE flag NE 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bala Krishna on Feb 11, 2009 6:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244773#M1211903</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-02-11T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244774#M1211904</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;I have z table like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with thae values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123 710&lt;/P&gt;&lt;P&gt;456 720&lt;/P&gt;&lt;P&gt;123 710&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the records who is having offset 71 to my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please anybody help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244774#M1211904</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-11T13:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244775#M1211905</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 all,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I have z table like &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; with thae values &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; 123 710&lt;/P&gt;&lt;P&gt;&amp;gt; 456 720&lt;/P&gt;&lt;P&gt;&amp;gt; 123 710&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I want to get the records who is having offset 71 to my internal table.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Can you please anybody help me.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks,&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test the following Sample Code it will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_kna1 LIKE STANDARD TABLE OF kna1 WITH HEADER LINE.
DATA: l_client LIKE sy-mandt.
l_client = sy-mandt.

SELECT * from kna1 CLIENT SPECIFIED
  into CORRESPONDING FIELDS OF TABLE it_kna1
  WHERE mandt like '71%'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244775#M1211905</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-11T13:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244776#M1211906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;if wa_itab-value+0(2) = '71'.                   " value that u need to chk for offset&lt;/P&gt;&lt;P&gt;append wa_itab1-value to wa_itab-value.&lt;/P&gt;&lt;P&gt;append wa_itab1 to it_itab1.                 " itab1 will have value that hve 71 as offset.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 should be of same structure as itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kalyan Chakravarthi on Feb 11, 2009 2:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244776#M1211906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244777#M1211907</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;Thanks for all of u r efforts.&lt;/P&gt;&lt;P&gt;I will tell my problem clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have z table it is client independent table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has recors value client&lt;/P&gt;&lt;P&gt;                   123    610&lt;/P&gt;&lt;P&gt;                    345   810&lt;/P&gt;&lt;P&gt;                    567   820&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i am geeting the data from client 610 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing select * from ztable into it_tab where client = l_client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i am logging in 611 and getting data any way sy-subrc will be 4.But i need the value of 610 i.e '123' if i am working on client '611' also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my exact problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244777#M1211907</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-11T13:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244778#M1211908</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;Is above my Sample code not working for you i think you don't need to select first all in an internal table you can do it in the select as i did it is working fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Sample Code Must work for you in your Case.&lt;/P&gt;&lt;P&gt;Please Replay if any Issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select * from ztable where client LIKE '71%'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Feb 11, 2009 6:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244778#M1211908</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-11T13:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244779#M1211909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;jus give a variable v_client and gve ite the value 610.&lt;/P&gt;&lt;P&gt;now, in ur select query gce condition as client = v_client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kalyan Chakravarthi on Feb 11, 2009 2:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244779#M1211909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244780#M1211910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi altaf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't hard code the value like '71%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;beacuse i will have another client '811' then i need to get the value of 810 i.e. '345'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i can't hard code and get the value.&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>Wed, 11 Feb 2009 13:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244780#M1211910</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-11T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: offset in where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244781#M1211911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you can do like following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF sy-mandt+0(2) = 71.
  SELECT * FROM kna1 CLIENT SPECIFIED
    INTO CORRESPONDING FIELDS OF TABLE it_kna1
    WHERE mandt LIKE '71%'.
ELSEIF sy-mandt+0(2) = 61.
  SELECT * FROM kna1 CLIENT SPECIFIED
    INTO CORRESPONDING FIELDS OF TABLE it_kna1
    WHERE mandt LIKE '61%'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply if still any Issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-in-where-condition/m-p/5244781#M1211911</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-11T13:43:24Z</dc:date>
    </item>
  </channel>
</rss>

