<?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: Range valuses in Select statment. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138000#M1366456</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 remove &lt;STRONG&gt;corresponding fields of&lt;/STRONG&gt; in select statement and try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: MR Venkat on Sep 4, 2009 11:10 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2009 09:10:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-04T09:10:16Z</dc:date>
    <item>
      <title>Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6137996#M1366452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;i am retriving the data from the data base table and in where cluse im using the RANGE tables i difiened and appending the values of sign option low ,high to it.&lt;/P&gt;&lt;P&gt;i have defined as:&lt;/P&gt;&lt;P&gt; ranges:post for bsak-budat.&lt;/P&gt;&lt;P&gt; post-sign   = post_dat-sign .&lt;/P&gt;&lt;P&gt; post-option = post_dat-option.&lt;/P&gt;&lt;P&gt;  post-low    = post_dat-low.&lt;/P&gt;&lt;P&gt;  post-high   = post_dat-high.&lt;/P&gt;&lt;P&gt;  append post.&lt;/P&gt;&lt;P&gt; comp-sign = comp_code-sign .&lt;/P&gt;&lt;P&gt;  comp-option = comp_code-option.&lt;/P&gt;&lt;P&gt;  comp-low  = comp_code-low.&lt;/P&gt;&lt;P&gt;  comp-high = comp_code-high.&lt;/P&gt;&lt;P&gt;  append comp.&lt;/P&gt;&lt;P&gt; vend-sign   =  vendor-sign  .&lt;/P&gt;&lt;P&gt;  vend-option =  vendor-option  .&lt;/P&gt;&lt;P&gt;  vend-low    = vendor-low.&lt;/P&gt;&lt;P&gt;  vend-high   = vendor-high  .&lt;/P&gt;&lt;P&gt;  append vend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs gjahr belnr&lt;/P&gt;&lt;P&gt;         xblnr lifnr wskto&lt;/P&gt;&lt;P&gt;         skfbt waers wrbtr&lt;/P&gt;&lt;P&gt;         wmwst augdt budat&lt;/P&gt;&lt;P&gt;         bldat cpudt zfbdt&lt;/P&gt;&lt;P&gt;         zterm zbd1t zbd2t&lt;/P&gt;&lt;P&gt;         zbd3t zbd1p zbd2p&lt;/P&gt;&lt;P&gt;         zlsch  from bsak into  corresponding fields of table g_bsak&lt;/P&gt;&lt;P&gt;                                             where&lt;/P&gt;&lt;P&gt;                                             budat in  post and&lt;/P&gt;&lt;P&gt;                                             bukrs in comp and&lt;/P&gt;&lt;P&gt;                                             lifnr in vend .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in select i am not getting any rows retrieval but entries are there in Table for same condition.&lt;/P&gt;&lt;P&gt;Plz help me how to code ranges values in select statement where condition and in anything wrong in my code mentioned above.&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mahesh s on Sep 4, 2009 10:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 08:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6137996#M1366452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T08:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6137997#M1366453</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;What are the structures post_dat, comp_code and vendor and how are they getting populated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:08:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6137997#M1366453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6137998#M1366454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are post_dat, comp_code, vendor? Please clarify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your code i understand that post_dat, comp_code, vendor are (some kind of) range. Why do you want to move these values to post, comp, vend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6137998#M1366454</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-04T09:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6137999#M1366455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i am filling them using select-option&lt;/P&gt;&lt;P&gt;and assigning them to ranges.&lt;/P&gt;&lt;P&gt;'plz help me&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6137999#M1366455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138000#M1366456</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 remove &lt;STRONG&gt;corresponding fields of&lt;/STRONG&gt; in select statement and try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: MR Venkat on Sep 4, 2009 11:10 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138000#M1366456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138001#M1366457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;actuly i am using this code in FM so in fm i can not use select-option so taken the SELOPT structre and filling it in import parameter and &lt;/P&gt;&lt;P&gt;i am filling them using select-option&lt;/P&gt;&lt;P&gt;and assigning them to ranges.&lt;/P&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138001#M1366457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138002#M1366458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahesh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you donot have to move the SELECT-OPTION to RANGES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select bukrs gjahr belnr
xblnr lifnr wskto
skfbt waers wrbtr
wmwst augdt budat
bldat cpudt zfbdt
zterm zbd1t zbd2t
zbd3t zbd1p zbd2p
zlsch from bsak into corresponding fields of table g_bsak
where
budat in post and
bukrs in comp and
lifnr in vend .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138002#M1366458</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-04T09:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138003#M1366459</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 post_dat, comp_code and vendor are select-options you don't need to move them into ranges.  The problem is coming from the fact that you are not looping at the select-options to fill the ranges, but in truth you don't need to do this step at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select bukrs gjahr belnr
xblnr lifnr wskto
skfbt waers wrbtr
wmwst augdt budat
bldat cpudt zfbdt
zterm zbd1t zbd2t
zbd3t zbd1p zbd2p
zlsch from bsak into corresponding fields of table g_bsak
where
budat in post_dat and                      "Just use the selection options
bukrs in comp_code and              "Just use the selection options
lifnr in vendor.                           "Just use the selection options
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138003#M1366459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138004#M1366460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;actually i am using this code in FM so in fm i can not use select-option so taken the SELOPT structre and filling it in import parameter and &lt;/P&gt;&lt;P&gt;i am filling them using select-option&lt;/P&gt;&lt;P&gt;and assigning them to ranges.&lt;/P&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138004#M1366460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138005#M1366461</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;As per Suhas Saha Answer Select query :.it is working when all the fields list in internal table is same as BSAK fields list in order. If you change order in internal table fields  which is not same as BSAK then it wont get the data into internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138005#M1366461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138006#M1366462</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;Thats true if you are using select-options to get the values then its not required for you to move into ranges...&lt;/P&gt;&lt;P&gt;but stil if you want to move them into ranges....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the following code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges:post for bsak-budat.

loop at post_dat.
move post_dat to post.
append post.
endloop.

loop at comp_code.
move comp_code to comp.
append comp.
endloop.

loop at vendor.
move vendor to vend.
append vend.
endloop.

select bukrs gjahr belnr
xblnr lifnr wskto
skfbt waers wrbtr
wmwst augdt budat
bldat cpudt zfbdt
zterm zbd1t zbd2t
zbd3t zbd1p zbd2p
zlsch from bsak into corresponding fields of table g_bsak
where
budat in post and
bukrs in comp and
lifnr in vend .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138006#M1366462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138007#M1366463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;actually i am using this code in FM so in fm i can not use select-option so taken the SELOPT structure and filling it in import parameter and&lt;/P&gt;&lt;P&gt;i am filling them using select-option&lt;/P&gt;&lt;P&gt;and assigning them to ranges.&lt;/P&gt;&lt;P&gt;how too loop the select-option to assign to ranges.&lt;/P&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138007#M1366463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138008#M1366464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did u try the code which I have provided....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138008#M1366464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138009#M1366465</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;Move the select-options data to ranges through this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

loop at post_dat.
move-corresponding post_dat to post.
append post_dat.
clear post_dat.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same way populate for other ranges and use it in the select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138009#M1366465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Range valuses in Select statment.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138010#M1366466</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;But even if you are using this in a function module you shouldn't need to fill the ranges tables.  You're just passing data from one table with structure SELOPT to a differently named table with structure SELOPT, the SELECT statement will accept the original structures without filling ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 09:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/range-valuses-in-select-statment/m-p/6138010#M1366466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T09:30:16Z</dc:date>
    </item>
  </channel>
</rss>

