<?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 Data from BSEG table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073675#M1355892</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 written a select query to pull data from BSEG table for BSCHL (Posting key) values 31 or 22.&lt;/P&gt;&lt;P&gt;But currently its pulling only for 31 value and not for 22, if i am specifying only 22 in where condition then also I am facing the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I modify the below select query to pull data from bseg table for b oth the values of BSCHL field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BUKRS BELNR GJAHR AUGDT BSCHL WRBTR WMWST LIFNR  &lt;/P&gt;&lt;P&gt;     APPENDING CORRESPONDING FIELDS OF TABLE  I_BSEG PACKAGE SIZE 5000&lt;/P&gt;&lt;P&gt;         FROM  BSEG&lt;/P&gt;&lt;P&gt;         WHERE  BUKRS IN S_BUKRS&lt;/P&gt;&lt;P&gt;                 AND AUGDT IN S_AUGDT&lt;/P&gt;&lt;P&gt;                AND BSCHL IN ('31','22')     &lt;/P&gt;&lt;P&gt;                AND KOART = 'K'&lt;/P&gt;&lt;P&gt;                AND SHKZG = 'H'&lt;/P&gt;&lt;P&gt;                AND LIFNR IN S_LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Selina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2009 06:30:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-09T06:30:16Z</dc:date>
    <item>
      <title>Data from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073675#M1355892</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 written a select query to pull data from BSEG table for BSCHL (Posting key) values 31 or 22.&lt;/P&gt;&lt;P&gt;But currently its pulling only for 31 value and not for 22, if i am specifying only 22 in where condition then also I am facing the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I modify the below select query to pull data from bseg table for b oth the values of BSCHL field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BUKRS BELNR GJAHR AUGDT BSCHL WRBTR WMWST LIFNR  &lt;/P&gt;&lt;P&gt;     APPENDING CORRESPONDING FIELDS OF TABLE  I_BSEG PACKAGE SIZE 5000&lt;/P&gt;&lt;P&gt;         FROM  BSEG&lt;/P&gt;&lt;P&gt;         WHERE  BUKRS IN S_BUKRS&lt;/P&gt;&lt;P&gt;                 AND AUGDT IN S_AUGDT&lt;/P&gt;&lt;P&gt;                AND BSCHL IN ('31','22')     &lt;/P&gt;&lt;P&gt;                AND KOART = 'K'&lt;/P&gt;&lt;P&gt;                AND SHKZG = 'H'&lt;/P&gt;&lt;P&gt;                AND LIFNR IN S_LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Selina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 06:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073675#M1355892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T06:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073676#M1355893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Selina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First step will be to check in SE16 if you have data in BSEG for the given combination of selection params.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check &amp;amp; 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>Wed, 09 Sep 2009 06:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073676#M1355893</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-09T06:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073677#M1355894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Selk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check for your other  &lt;STRONG&gt;WHERE Conditions&lt;/STRONG&gt; are they true for &lt;STRONG&gt;22&lt;/STRONG&gt; as well ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 06:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073677#M1355894</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-09-09T06:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073678#M1355895</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 bukrs belnr gjahr augdt bschl wrbtr wmwst lifnr&lt;/P&gt;&lt;P&gt;APPENDING CORRESPONDING FIELDS OF TABLE i_bseg PACKAGE SIZE 100&lt;/P&gt;&lt;P&gt;FROM bseg&lt;/P&gt;&lt;P&gt;WHERE bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;AND augdt IN s_augdt&lt;/P&gt;&lt;P&gt;AND ( bschl ='31'&lt;/P&gt;&lt;P&gt;    OR bschl = '22' )&lt;/P&gt;&lt;P&gt;AND koart = 'K'&lt;/P&gt;&lt;P&gt;AND shkzg = 'H'&lt;/P&gt;&lt;P&gt;AND lifnr IN s_lifnr.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work.. Only this what you need to keep in mind is there should be entries in BSEG for bschl 22 koart K and shkzg H.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 06:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073678#M1355895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T06:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073679#M1355896</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 with posting key 22 (Reverse invoice) you can not have SHKZG( Debit credit indicator ) as 'H' it will always be 'D' so you have to remove the where condition on SHKZG and that should resolve the issue.&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;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 06:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073679#M1355896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T06:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073680#M1355897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Selk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just comment out the following where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"AND shkzg = 'H'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same on my system there is no value in the table where &lt;STRONG&gt;SHKZG = 'H'&lt;/STRONG&gt; and &lt;STRONG&gt;BSCHL = '22'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope will help you to understand you problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 06:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073680#M1355897</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-09-09T06:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073681#M1355898</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;Thank you all for the Quick reply.&lt;/P&gt;&lt;P&gt;My issue is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Selina.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 11:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-bseg-table/m-p/6073681#M1355898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T11:11:59Z</dc:date>
    </item>
  </channel>
</rss>

