<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380689#M1042166</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;For such cases we can have range table, which will have all 3 values and then these 3 values would be compared in select statement where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give ur range of doc types in r_blart itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RANGES r_blart FOR bkpf-blart.

r_blart-SIGN = 'I'.
r_blart-OPTION = 'EQ'.
r_blart-LOW = 'c_dz'.
APPEND r_blart.

and so on..for other values.

Select bukrs
belnr
budat
blart
kunnr from bkpf
into table it_bkpf
where blart in r_blart 
and bukrs eq p_bukrs&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select bukrs
belnr
budat
blart
from bkpf
into table it_bkpf
where bukrs eq p_bukrs and
blart IN ('DZ','DA','DP').&lt;/CODE&gt;&lt;/PRE&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;thanx,&lt;/P&gt;&lt;P&gt;dhanashri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Aug 20, 2008 10:42 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Aug 20, 2008 11:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2008 08:42:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-20T08:42:03Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380678#M1042155</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 have to fetch only data for doc type of particular types.For that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs&lt;/P&gt;&lt;P&gt;          belnr&lt;/P&gt;&lt;P&gt;          budat&lt;/P&gt;&lt;P&gt;          blart&lt;/P&gt;&lt;P&gt;         kunnr from bkpf&lt;/P&gt;&lt;P&gt;         into table it_bkpf&lt;/P&gt;&lt;P&gt;where blart in ( 'c_dz', 'c_da', 'c_dp' ) and&lt;/P&gt;&lt;P&gt;         bukrs eq p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is fetching all records irrespective of above mentioned types. Please guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;khadeer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380678#M1042155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380679#M1042156</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;&lt;/P&gt;&lt;P&gt;If you are using the SLECT-OPTIONS for this field s_type, use the extension button and input the values ('c_dz', 'c_da', 'c_dp' )as defaluts  then change the query as follows - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs&lt;/P&gt;&lt;P&gt;belnr&lt;/P&gt;&lt;P&gt;budat&lt;/P&gt;&lt;P&gt;blart&lt;/P&gt;&lt;P&gt;kunnr from bkpf&lt;/P&gt;&lt;P&gt;into table it_bkpf&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;blart in s_type&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;bukrs eq p_bukrs.&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;Lekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380679#M1042156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380680#M1042157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khadeer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alter your select statement as this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select bukrs
belnr
budat
blart
kunnr from bkpf
into table it_bkpf
where blart eq  'c_dz'
    and blart eq  'c_da'
    and blart eq  'c_dp'
bukrs eq p_bukrs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380680#M1042157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380681#M1042158</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;why u r passing 3 diif values there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this.&lt;/P&gt;&lt;P&gt;give ur range of doc types in c_dz itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs&lt;/P&gt;&lt;P&gt;belnr&lt;/P&gt;&lt;P&gt;budat&lt;/P&gt;&lt;P&gt;blart&lt;/P&gt;&lt;P&gt;kunnr from bkpf&lt;/P&gt;&lt;P&gt;into table it_bkpf&lt;/P&gt;&lt;P&gt;where blart in c_dz and&lt;/P&gt;&lt;P&gt;bukrs eq p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or mention in select statement directly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs&lt;/P&gt;&lt;P&gt;belnr&lt;/P&gt;&lt;P&gt;budat&lt;/P&gt;&lt;P&gt;blart&lt;/P&gt;&lt;P&gt;kunnr from bkpf&lt;/P&gt;&lt;P&gt;into table it_bkpf&lt;/P&gt;&lt;P&gt;where bukrs eq p_bukrs &lt;/P&gt;&lt;P&gt;and blart  = 'NB'  or 'WA' ....  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380681#M1042158</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-08-20T07:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380682#M1042159</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;Not sure but try this way-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select bukrs
belnr
budat
blart
kunnr from bkpf
into table it_bkpf
where blart = 'c_dz' or blart =  'c_da' or blart = 'c_dp'  and
bukrs eq p_bukrs.&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;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380682#M1042159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380683#M1042160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Khadeer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select bukrs
belnr
budat
blart
kunnr from bkpf
into table it_bkpf
where blart in ( 'c_dz', 'c_da', 'c_dp' ) and
bukrs eq p_bukrs."( 'c_dz', 'c_da', 'c_dp' ) is case sencetive check this carefully&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 07:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380683#M1042160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T07:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380684#M1042161</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;Write it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs&lt;/P&gt;&lt;P&gt;belnr&lt;/P&gt;&lt;P&gt;budat&lt;/P&gt;&lt;P&gt;blart&lt;/P&gt;&lt;P&gt;kunnr from bkpf&lt;/P&gt;&lt;P&gt;into table it_bkpf&lt;/P&gt;&lt;P&gt;where bukrs eq p_bukrs &lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;blart in ( 'c_dz', 'c_da', 'c_dp' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 08:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380684#M1042161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T08:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380685#M1042162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kadar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not sure if this works out but try this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs&lt;/P&gt;&lt;P&gt;belnr&lt;/P&gt;&lt;P&gt;budat&lt;/P&gt;&lt;P&gt;blart&lt;/P&gt;&lt;P&gt;kunnr from bkpf&lt;/P&gt;&lt;P&gt;into table it_bkpf&lt;/P&gt;&lt;P&gt;where bukrs eq p_bukrs &lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;blart in ( 'c_dz' or 'c_da' or 'c_dp' ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 08:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380685#M1042162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T08:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380686#M1042163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put the values in capital letter because the values in ' ' are case senstitive and data stored in the table in capital.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 08:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380686#M1042163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T08:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380687#M1042164</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;   youe select statemnet is proper.thre is no problem with it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only reason for this cud be that the alues for blart maintained in the table are in diffrent format than mentioned by you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check if it is case sensitive or something.because generally blart is stored in capital letters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that can be the problem.your select statement shud work properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 08:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380687#M1042164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T08:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380688#M1042165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have defined constants here, somthing like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_dz TYPE blart VALUE 'DZ',&lt;/P&gt;&lt;P&gt;           c_da TYPE blart VALUE 'DA',&lt;/P&gt;&lt;P&gt;           c_dp TYPE blart VALUE 'DP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when you have defined like this, your select statement should be as below:&lt;/P&gt;&lt;P&gt;SELECT bukrs&lt;/P&gt;&lt;P&gt;belnr&lt;/P&gt;&lt;P&gt;budat&lt;/P&gt;&lt;P&gt;blart&lt;/P&gt;&lt;P&gt;FROM bkpf&lt;/P&gt;&lt;P&gt;INTO TABLE it_bkpf&lt;/P&gt;&lt;P&gt;WHERE blart IN &lt;STRONG&gt;(c_dz, c_da, c_dp)&lt;/STRONG&gt; AND&lt;/P&gt;&lt;P&gt;bukrs EQ p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vibha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 08:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380688#M1042165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T08:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380689#M1042166</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;For such cases we can have range table, which will have all 3 values and then these 3 values would be compared in select statement where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give ur range of doc types in r_blart itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RANGES r_blart FOR bkpf-blart.

r_blart-SIGN = 'I'.
r_blart-OPTION = 'EQ'.
r_blart-LOW = 'c_dz'.
APPEND r_blart.

and so on..for other values.

Select bukrs
belnr
budat
blart
kunnr from bkpf
into table it_bkpf
where blart in r_blart 
and bukrs eq p_bukrs&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select bukrs
belnr
budat
blart
from bkpf
into table it_bkpf
where bukrs eq p_bukrs and
blart IN ('DZ','DA','DP').&lt;/CODE&gt;&lt;/PRE&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;thanx,&lt;/P&gt;&lt;P&gt;dhanashri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Aug 20, 2008 10:42 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Aug 20, 2008 11:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 08:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380689#M1042166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380690#M1042167</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;Check the following code, its working fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_bkpf occurs 0,&lt;/P&gt;&lt;P&gt;      bukrs like bkpf-bukrs,&lt;/P&gt;&lt;P&gt;      belnr like bkpf-belnr,&lt;/P&gt;&lt;P&gt;      budat like bkpf-budat,&lt;/P&gt;&lt;P&gt;      blart like bkpf-blart,&lt;/P&gt;&lt;P&gt;      end of it_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_bukrs like bkpf-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs&lt;/P&gt;&lt;P&gt;       belnr&lt;/P&gt;&lt;P&gt;       budat&lt;/P&gt;&lt;P&gt;       blart&lt;/P&gt;&lt;P&gt;       from bkpf&lt;/P&gt;&lt;P&gt;       into table it_bkpf&lt;/P&gt;&lt;P&gt;       where bukrs eq p_bukrs and&lt;/P&gt;&lt;P&gt;       blart IN ('DZ','DA','DP').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_bkpf.&lt;/P&gt;&lt;P&gt;write:/ it_bkpf-bukrs, it_bkpf-belnr, it_bkpf-budat, it_bkpf-blart.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 09:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/4380690#M1042167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T09:02:43Z</dc:date>
    </item>
  </channel>
</rss>

