<?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 Query help req???? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044617#M720665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;Loop at TAB1into wa_itab1 where BSART = 'NB'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;delete itab1 from wa_itab1.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;you can do this after you fill the in ternal tables, so that wherenever there is a NB entry , that entry willbe deleted.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2007 10:39:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-06T10:39:38Z</dc:date>
    <item>
      <title>Select Query help req????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044613#M720661</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 have to hardcode in the case of Doc Type = NB i.e BSART = 'NB' &amp;amp; FRGKZ = SPACE,in this code .I have to maintian the same functionlity,but if this is the case,than release indicator FRGKZ = Space.this additional thing as to be maintain.Please tell me...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT  DISTINCT     eban~banfn&lt;/P&gt;&lt;P&gt;                                   eban~badat&lt;/P&gt;&lt;P&gt;                                   eban~matnr&lt;/P&gt;&lt;P&gt;                       eban~werks&lt;/P&gt;&lt;P&gt;                       eban~ekgrp&lt;/P&gt;&lt;P&gt;                       eban~bsart&lt;/P&gt;&lt;P&gt;                       ekko~ebeln&lt;/P&gt;&lt;P&gt;                       ekko~bedat&lt;/P&gt;&lt;P&gt;      INTO CORRESPONDING FIELDS OF TABLE itab1&lt;/P&gt;&lt;P&gt;      FROM eban AS eban INNER JOIN ekko AS ekko ON eban&lt;SUB&gt;ebeln = ekko&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;      WHERE eban~loekz EQ space    AND&lt;/P&gt;&lt;P&gt;            eban~banfn IN p_prno   AND&lt;/P&gt;&lt;P&gt;            eban~badat IN p_prdate AND&lt;/P&gt;&lt;P&gt;            eban~matnr IN p_matnr  AND&lt;/P&gt;&lt;P&gt;            eban~werks IN p_plant  AND&lt;/P&gt;&lt;P&gt;            eban~ekgrp IN p_prgrp  AND&lt;/P&gt;&lt;P&gt;            eban~bsart IN p_doctyp AND&lt;/P&gt;&lt;P&gt;            ekko~ebeln IN p_pono   AND&lt;/P&gt;&lt;P&gt;            ekko~bedat IN p_podate AND&lt;/P&gt;&lt;P&gt;            ekko~frgke = 'R'&lt;/P&gt;&lt;P&gt;      GROUP BY eban~banfn&lt;/P&gt;&lt;P&gt;               eban~badat&lt;/P&gt;&lt;P&gt;               eban~matnr&lt;/P&gt;&lt;P&gt;               eban~werks&lt;/P&gt;&lt;P&gt;               eban~ekgrp&lt;/P&gt;&lt;P&gt;               eban~bsart&lt;/P&gt;&lt;P&gt;               ekko~ebeln&lt;/P&gt;&lt;P&gt;               ekko~bedat&lt;/P&gt;&lt;P&gt;               eban~banpr&lt;/P&gt;&lt;P&gt;               eban~frgkz .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Vipin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044613#M720661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query help req????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044614#M720662</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;Loop at TAB1 where BSART = 'NB'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Move ' ' to TAB1-FRGKZ.&lt;/P&gt;&lt;P&gt;modify TAB1.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trythis,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044614#M720662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query help req????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044615#M720663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;well my prob is that i am selecting the data as per as the selection-screen.than i have to put it into an internal table &amp;amp; have to do the,claculations.&lt;/P&gt;&lt;P&gt;if user will put.doc type = 'nb',than its release indic is. frgkz is space,no entry.So my select query will not pick any data in case of NB as all the where condi has to be true.&lt;/P&gt;&lt;P&gt;so i am asking,where should i code,as per as my knowlege,i have to code before filling the data into the int. table.otherise,my table will be empty in case of BSART = NB.As its release indi is none,so i have to pass space in its filed.&lt;/P&gt;&lt;P&gt;please help me.if u got my prob??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044615#M720663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query help req????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044616#M720664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipin ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT eban~banfn&lt;/P&gt;&lt;P&gt;eban~badat&lt;/P&gt;&lt;P&gt;eban~matnr&lt;/P&gt;&lt;P&gt;eban~werks&lt;/P&gt;&lt;P&gt;eban~ekgrp&lt;/P&gt;&lt;P&gt;eban~bsart&lt;/P&gt;&lt;P&gt;ekko~ebeln&lt;/P&gt;&lt;P&gt;ekko~bedat&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE itab1&lt;/P&gt;&lt;P&gt;FROM eban AS eban INNER JOIN ekko AS ekko ON eban&lt;SUB&gt;ebeln = ekko&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;WHERE eban~loekz EQ space AND&lt;/P&gt;&lt;P&gt;eban~banfn IN p_prno AND&lt;/P&gt;&lt;P&gt;eban~badat IN p_prdate AND&lt;/P&gt;&lt;P&gt;eban~matnr IN p_matnr AND&lt;/P&gt;&lt;P&gt;eban~werks IN p_plant AND&lt;/P&gt;&lt;P&gt;eban~ekgrp IN p_prgrp AND&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;( eban~bsart IN p_doctyp or " here put And / Or as reqd.&lt;/P&gt;&lt;P&gt; eban~bsart eq 'NB' ) and&lt;/P&gt;&lt;P&gt;eban-frgkz = ' ' and&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ekko~ebeln IN p_pono AND&lt;/P&gt;&lt;P&gt;ekko~bedat IN p_podate AND&lt;/P&gt;&lt;P&gt;ekko~frgke = 'R'&lt;/P&gt;&lt;P&gt;GROUP BY eban~banfn&lt;/P&gt;&lt;P&gt;eban~badat&lt;/P&gt;&lt;P&gt;eban~matnr&lt;/P&gt;&lt;P&gt;eban~werks&lt;/P&gt;&lt;P&gt;eban~ekgrp&lt;/P&gt;&lt;P&gt;eban~bsart&lt;/P&gt;&lt;P&gt;ekko~ebeln&lt;/P&gt;&lt;P&gt;ekko~bedat&lt;/P&gt;&lt;P&gt;eban~banpr&lt;/P&gt;&lt;P&gt;eban~frgkz .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044616#M720664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query help req????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044617#M720665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;Loop at TAB1into wa_itab1 where BSART = 'NB'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;delete itab1 from wa_itab1.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;you can do this after you fill the in ternal tables, so that wherenever there is a NB entry , that entry willbe deleted.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044617#M720665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query help req????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044618#M720666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well in earlier select query,eban~frgkz = 'R' is already hardcoded. i forgot to write.&lt;/P&gt;&lt;P&gt;So now will 2 frgkz,means eban&lt;SUB&gt;frgkz = '' ,eban&lt;/SUB&gt;frgkz = 'R'  will work .?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 11:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044618#M720666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T11:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query help req????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044619#M720667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,can i use this??is displaying error?? "("  ")"  has no closing.??&lt;/P&gt;&lt;P&gt;cn you please make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  DISTINCT    eban~banfn&lt;/P&gt;&lt;P&gt;                      eban~badat&lt;/P&gt;&lt;P&gt;                      eban~matnr&lt;/P&gt;&lt;P&gt;                      eban~werks&lt;/P&gt;&lt;P&gt;                      eban~ekgrp&lt;/P&gt;&lt;P&gt;                      eban~bsart&lt;/P&gt;&lt;P&gt;                      eban~frgkz&lt;/P&gt;&lt;P&gt;                      eban~banpr&lt;/P&gt;&lt;P&gt;      INTO CORRESPONDING FIELDS OF TABLE itab2  FROM eban AS eban&lt;/P&gt;&lt;P&gt;     WHERE eban~loekz EQ space    AND&lt;/P&gt;&lt;P&gt;           eban~banfn IN p_prno   AND&lt;/P&gt;&lt;P&gt;           eban~badat IN p_prdate AND&lt;/P&gt;&lt;P&gt;           eban~matnr IN p_matnr  AND&lt;/P&gt;&lt;P&gt;           eban~werks IN p_plant  AND&lt;/P&gt;&lt;P&gt;           eban~ekgrp IN p_prgrp  AND&lt;/P&gt;&lt;P&gt;           eban~bsart IN p_doctyp AND&lt;/P&gt;&lt;P&gt;         (  eban&lt;SUB&gt;frgkz EQ 'R'  or  eban&lt;/SUB&gt;frgkz = space  where eban~bsart = 'NB' ) and&lt;/P&gt;&lt;P&gt;         ( eban&lt;SUB&gt;banpr EQ '05'  or eban&lt;/SUB&gt;banpr = space where eban~bsart = 'NB' )  AND&lt;/P&gt;&lt;P&gt;           eban~ebeln EQ space&lt;/P&gt;&lt;P&gt;     GROUP BY eban~banfn&lt;/P&gt;&lt;P&gt;              eban~badat&lt;/P&gt;&lt;P&gt;              eban~matnr&lt;/P&gt;&lt;P&gt;              eban~werks&lt;/P&gt;&lt;P&gt;              eban~ekgrp&lt;/P&gt;&lt;P&gt;              eban~bsart&lt;/P&gt;&lt;P&gt;              eban~frgkz&lt;/P&gt;&lt;P&gt;              eban~banpr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 11:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-help-req/m-p/3044619#M720667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T11:30:12Z</dc:date>
    </item>
  </channel>
</rss>

