<?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: Problem with Selecting data from BSIK Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158737#M1369784</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;BSIK table contains the open items only: so the field AUGBL is always empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cleared items are in BSAK table, so u need to use two different conditions for two dofferent selection: one for BSIK and one for BSAK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2009 10:01:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-22T10:01:28Z</dc:date>
    <item>
      <title>Problem with Selecting data from BSIK Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158732#M1369779</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 got stuck up with one problem.&lt;/P&gt;&lt;P&gt;i am fetching data from BSIK table where AUGBL equals to space ( means open items)&lt;/P&gt;&lt;P&gt;                                                                  AUGDT &amp;lt;= 30.06.2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My select staement is as shown below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT SINGLE LIFNR INTO OP_ITEM-LIFNR
FROM BSIK
WHERE BELNR = OP_ITEM-BELNR
  AND BUKRS = P_RBUKRS
  AND GJAHR = OP_ITEM-GJAHR
  AND HKONT = OP_ITEM-RACCT
  AND BUZEI = OP_ITEM-BUZEI
  AND  AUGBL = ' '.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the same time i want to fetch Cleared items between date 30.06.2009 to 30.07.2009 ( means AUGBL &amp;lt;&amp;gt; ' '.)&lt;/P&gt;&lt;P&gt;Now how can i include this condition in above select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 09:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158732#M1369779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T09:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Selecting data from BSIK Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158733#M1369780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      Remove AUGBL from the SELECT statement and get the data for all conditions into a single internal table.You can then separate your data to other internal tables according to the scenarios&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 09:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158733#M1369780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T09:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Selecting data from BSIK Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158734#M1369781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fetch all the data into one internal table (dont use AUGBL conditin..)&lt;/P&gt;&lt;P&gt;And loop over this internal table twice for different conditions you specified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 09:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158734#M1369781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T09:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Selecting data from BSIK Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158735#M1369782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will suggest you for cleared line items use table &lt;STRONG&gt;BSAK&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;then try for the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 09:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158735#M1369782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Selecting data from BSIK Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158736#M1369783</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;Use the OR condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT SINGLE LIFNR INTO OP_ITEM-LIFNR
FROM BSIK
WHERE BELNR = OP_ITEM-BELNR
  AND BUKRS = P_RBUKRS
  AND GJAHR = OP_ITEM-GJAHR
  AND HKONT = OP_ITEM-RACCT
  AND BUZEI = OP_ITEM-BUZEI
  AND  AUGBL = ' ' 
  OR    AUGBL BETWEEN '20090630' AND '20090730'.
&lt;/CODE&gt;&lt;/PRE&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>Tue, 22 Sep 2009 09:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158736#M1369783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Selecting data from BSIK Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158737#M1369784</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;BSIK table contains the open items only: so the field AUGBL is always empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cleared items are in BSAK table, so u need to use two different conditions for two dofferent selection: one for BSIK and one for BSAK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 10:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158737#M1369784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T10:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Selecting data from BSIK Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158738#M1369785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove "AUGBL = ' '" from select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after getting the lines into a internal table is a loop filter the documents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 10:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158738#M1369785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T10:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Selecting data from BSIK Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158739#M1369786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai...&lt;/P&gt;&lt;P&gt;see this code for example &lt;/P&gt;&lt;P&gt;  SELECT BUKRS&lt;/P&gt;&lt;P&gt;          LIFNR&lt;/P&gt;&lt;P&gt;          augdt&lt;/P&gt;&lt;P&gt;          ZUONR&lt;/P&gt;&lt;P&gt;          BELNR&lt;/P&gt;&lt;P&gt;          BLDAT&lt;/P&gt;&lt;P&gt;          XBLNR&lt;/P&gt;&lt;P&gt;          BLART&lt;/P&gt;&lt;P&gt;          SHKZG&lt;/P&gt;&lt;P&gt;          WRBTR&lt;/P&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF IT_BSIK&lt;/P&gt;&lt;P&gt;          FROM BSIK&lt;/P&gt;&lt;P&gt;          WHERE LIFNR IN S_LIFNR&lt;/P&gt;&lt;P&gt;          AND  BUKRS IN S_BUKRS&lt;/P&gt;&lt;P&gt;          and SHKZG = 'H'&lt;/P&gt;&lt;P&gt;          and bLdat &amp;lt;= S_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND IT_BSIK.&lt;/P&gt;&lt;P&gt;CLEAR IT_BSIK.&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;  SELECT BUKRS&lt;/P&gt;&lt;P&gt;          LIFNR&lt;/P&gt;&lt;P&gt;          augdt&lt;/P&gt;&lt;P&gt;          ZUONR&lt;/P&gt;&lt;P&gt;          BELNR&lt;/P&gt;&lt;P&gt;          BLDAT&lt;/P&gt;&lt;P&gt;          XBLNR&lt;/P&gt;&lt;P&gt;          BLART&lt;/P&gt;&lt;P&gt;          SHKZG&lt;/P&gt;&lt;P&gt;          WRBTR&lt;/P&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF IT_BSIK1&lt;/P&gt;&lt;P&gt;          FROM BSIK&lt;/P&gt;&lt;P&gt;          WHERE LIFNR IN S_LIFNR&lt;/P&gt;&lt;P&gt;          AND  BUKRS IN S_BUKRS&lt;/P&gt;&lt;P&gt;          and SHKZG = 'S'&lt;/P&gt;&lt;P&gt;          and bLdat &amp;lt;= S_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND IT_BSIK1.&lt;/P&gt;&lt;P&gt;CLEAR IT_BSIK1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 10:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-selecting-data-from-bsik-table/m-p/6158739#M1369786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T10:13:19Z</dc:date>
    </item>
  </channel>
</rss>

