<?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/1803135#M344768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Account maximum length is only 10 but u had given 11 , remove one zero at the beginning


SELECT BLDAT DMBTR SGTXT FROM BSIS
INTO CORRESPONDING FIELDS OF TABLE ITAB_BSIS
WHERE BUKRS IN G_BUKRS
AND GJAHR IN G_GJAHR
AND BLART IN G_BLART
AND BELNR IN G_BELNR
AND HKONT NE '0000207130' or 
        HKONT NE '0000200123' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2006 15:29:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-11T15:29:02Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803133#M344766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all&lt;/P&gt;&lt;P&gt;help me inthis issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BLDAT DMBTR SGTXT FROM BSIS&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF  TABLE ITAB_BSIS&lt;/P&gt;&lt;P&gt;WHERE BUKRS IN G_BUKRS&lt;/P&gt;&lt;P&gt;AND   GJAHR IN G_GJAHR&lt;/P&gt;&lt;P&gt;AND   BLART IN G_BLART&lt;/P&gt;&lt;P&gt;AND   BELNR IN G_BELNR&lt;/P&gt;&lt;P&gt;AND   HKONT NE '00000207130'.&lt;/P&gt;&lt;P&gt;i am eliminating gl account  00000207130' from selection but still it is selecting data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i need to elimate one more account o also can do like this&lt;/P&gt;&lt;P&gt;AND   HKONT NE ( '00000207130' or '000000200123').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 15:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803133#M344766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T15:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803134#M344767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The length for HKONT in BSIS table is of 10 but you are specifying that with a length of 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BLDAT DMBTR SGTXT FROM BSIS&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE ITAB_BSIS&lt;/P&gt;&lt;P&gt;WHERE BUKRS IN G_BUKRS&lt;/P&gt;&lt;P&gt;AND GJAHR IN G_GJAHR&lt;/P&gt;&lt;P&gt;AND BLART IN G_BLART&lt;/P&gt;&lt;P&gt;AND BELNR IN G_BELNR&lt;/P&gt;&lt;P&gt;AND HKONT NE &amp;lt;b&amp;gt;'000207130'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 15:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803134#M344767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T15:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803135#M344768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Account maximum length is only 10 but u had given 11 , remove one zero at the beginning


SELECT BLDAT DMBTR SGTXT FROM BSIS
INTO CORRESPONDING FIELDS OF TABLE ITAB_BSIS
WHERE BUKRS IN G_BUKRS
AND GJAHR IN G_GJAHR
AND BLART IN G_BLART
AND BELNR IN G_BELNR
AND HKONT NE '0000207130' or 
        HKONT NE '0000200123' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 15:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803135#M344768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T15:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803136#M344769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the HKONT is a 10 char field and u are using more that 10 char in ur select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shejal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 15:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803136#M344769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T15:29: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/1803137#M344770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can do that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or alternatively&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RANGES : R_HKONT FOR BSIS-HKONT.
R_HKONT-LOW = '00000207130'.
R_HKONT-SIGN = 'I'.
R_HKONT-OPTION = 'EQ'.
APPEND R_HKONT.

R_HKONT-LOW = '00000200123'.
R_HKONT-SIGN = 'I'.
R_HKONT-OPTION = 'EQ'.
APPEND R_HKONT.

SELECT BLDAT DMBTR SGTXT FROM BSIS
INTO CORRESPONDING FIELDS OF TABLE ITAB_BSIS
WHERE BUKRS IN G_BUKRS
AND GJAHR IN G_GJAHR
AND BLART IN G_BLART
AND BELNR IN G_BELNR
AND not HKONT IN R_HKONT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Perfer the second way, if you have more G/L accounts to be added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 15:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803137#M344770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T15:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803138#M344771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This isn't the question you asked, but here's my answer anyway:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't know the GL, but do know the document number, you should go to BKPF and BSEG rather than BSIS. There is no index in BSIS on document number and the index on GL account won't work with NE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 15:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803138#M344771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T15:37: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/1803139#M344772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Othewise, user conversion exit before you compare the value in SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERSION_EXIT_ALPHA_INPUT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA V_HKONT(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input         = '207130'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT         = V_HKONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BLDAT DMBTR SGTXT FROM BSIS&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE ITAB_BSIS&lt;/P&gt;&lt;P&gt;WHERE BUKRS IN G_BUKRS&lt;/P&gt;&lt;P&gt;AND GJAHR IN G_GJAHR&lt;/P&gt;&lt;P&gt;AND BLART IN G_BLART&lt;/P&gt;&lt;P&gt;AND BELNR IN G_BELNR&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AND HKONT NE V_HKONT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 15:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803139#M344772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803140#M344773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do one thing u can prepare one ranges table with the values what u are trying to eliminate from select statement and use that in where class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the below code.....&lt;/P&gt;&lt;P&gt;r_hkont-sign = 'E'.&lt;/P&gt;&lt;P&gt;r_hkont-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_hkont-low = 'xxxxxxxxxxx'.&lt;/P&gt;&lt;P&gt;append r_hkont.&lt;/P&gt;&lt;P&gt;clear r_hkont-low.&lt;/P&gt;&lt;P&gt;r_hkont-low = 'yyyyyyyyyyy'.&lt;/P&gt;&lt;P&gt;append r_hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;where hkont in r_hkont&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 15:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803140#M344773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T15:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803141#M344774</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 BLDAT DMBTR SGTXT FROM BSIS&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE ITAB_BSIS&lt;/P&gt;&lt;P&gt;WHERE BUKRS IN G_BUKRS&lt;/P&gt;&lt;P&gt;AND GJAHR IN G_GJAHR&lt;/P&gt;&lt;P&gt;AND BLART IN G_BLART&lt;/P&gt;&lt;P&gt;AND BELNR IN G_BELNR&lt;/P&gt;&lt;P&gt;AND &amp;lt;b&amp;gt;HKONT NOT IN ( '0000207130', '0000200123')&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 16:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1803141#M344774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T16:27:57Z</dc:date>
    </item>
  </channel>
</rss>

