<?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: Need help with a select statement..? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863915#M671636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were right Atish...The PPNAM field doesnt get poulated for parked documents....it gets populated only for documents those were parked first and then posted...how shud i change the selection criteria to include these documents also....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is i have to write a select statement that picks up parked documents from the database...The Document type (BLART) field will be 'SY' and CPUDT will be the date entered on...what else can be the condition so that it picks up all the parked documents...I cannot use STATUS field because then we will not get documenst that were parked forst and then posted as for the posted documents the ststus changes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know its confusing but u guys can only help....Please suggest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2007 01:08:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-05T01:08:29Z</dc:date>
    <item>
      <title>Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863908#M671629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gurus,&lt;/P&gt;&lt;P&gt;I have written a select statement that select records from the BKPF table..It gets the FI GL documents that are parked..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select BUKRS BELNR GJAHR from BKPF into TABLE i_vbkpf where BLART = 'SY'
                                                              AND CPUDT eq p_cpudt
                                                              AND PPNAM is not null.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i debug and see i_vbkpf internal table it also has documents that were just posted in the system...is using &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PPNAM is not Null"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  valid....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 23:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863908#M671629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T23:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863909#M671630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your question? Sorry, i did not understand from your comments. Can you please tell in detail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 00:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863909#M671630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T00:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863910#M671631</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select BUKRS BELNR GJAHR 
from BKPF 
into TABLE i_vbkpf 
where BLART = 'SY'
   and CPUDT eq p_cpudt
   and PPNAM ne space.
&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 00:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863910#M671631</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-05T00:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863911#M671632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with PPNAM &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 00:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863911#M671632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T00:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863912#M671633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to write a select statement that picks up company code document number fiscal year from BKPF for FI documents that were parked...I have written this select but this select statement also picks up documents that were posted...What changes shud i make in the where co ndition to solve this issue....&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 00:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863912#M671633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T00:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863913#M671634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ferry,&lt;/P&gt;&lt;P&gt;When i executed this it just picked up one parked document but i had parked 2 documents on that date...is there any other change that i have to do....It did not picked up posted documents which is what i wanted...but why is it not picking up all the parked documents of that date...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 00:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863913#M671634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T00:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863914#M671635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go to SE16 and see the table data. Are you able to see the two entries with the same selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863914#M671635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863915#M671636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were right Atish...The PPNAM field doesnt get poulated for parked documents....it gets populated only for documents those were parked first and then posted...how shud i change the selection criteria to include these documents also....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is i have to write a select statement that picks up parked documents from the database...The Document type (BLART) field will be 'SY' and CPUDT will be the date entered on...what else can be the condition so that it picks up all the parked documents...I cannot use STATUS field because then we will not get documenst that were parked forst and then posted as for the posted documents the ststus changes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know its confusing but u guys can only help....Please suggest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:08:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863915#M671636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863916#M671637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with PPNAM = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863916#M671637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863917#M671638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can use the below select query to select the parked document from BKPF table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is an field STAT in BKPF check the table field entries for parked documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select BUKRS BELNR GJAHR from BKPF into TABLE i_vbkpf where BLART = 'SY'&lt;/P&gt;&lt;P&gt;                                                              AND CPUDT eq p_cpudt&lt;/P&gt;&lt;P&gt;                                                              AND PPNAM is not null&lt;/P&gt;&lt;P&gt;                                                             AND  BSTAT EQ 'V'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please rewad points if its helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sukumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863917#M671638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863918#M671639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No buddy it doesnt work....it picked up the posted doc and the parked doc but no the one that was parked first and then posted.....I just want to have docs that were parked at some stage and out of those parked ones some were posted also...right...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863918#M671639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863919#M671640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are saying there are 2 documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check if for these 2 documents Document type is "SY", date is same as that of used in SELECT and PPNAM is not equal to space.&lt;/P&gt;&lt;P&gt;Can you confirm this again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863919#M671640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863920#M671641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suku thanks for the reply...but please read my previous post...u will understand what i am saying....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863920#M671641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863921#M671642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will explain again ashish...There are 3 documents...for all three documents BLART = SY and CPUDT is same....&lt;/P&gt;&lt;P&gt;doc 1: Parked&lt;/P&gt;&lt;P&gt;doc 2: Posted&lt;/P&gt;&lt;P&gt;doc 3: parked and then posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have to get docs that were parked at some stage...so i shud get doc 1 and doc 3...&lt;/P&gt;&lt;P&gt;but i just get doc 3 for the current select statement with PPNAM &amp;lt;&amp;gt; space...&lt;/P&gt;&lt;P&gt;am I able to explain now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863921#M671642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863922#M671643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sam&lt;/P&gt;&lt;P&gt;for this u can use the BSTAT = 'V'. in select query .&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;sukumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863922#M671643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863923#M671644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think by using BSTAT as V or W or Z you will get all the parked documents. No need to give BLART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863923#M671644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863924#M671645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Atish, please understand for document that is parked the status is V fro docs that are posted status is space...&lt;/P&gt;&lt;P&gt;so&lt;/P&gt;&lt;P&gt;doc 1: Parked BSTAT = V&lt;/P&gt;&lt;P&gt;doc 2: Posted BSTAT = space&lt;/P&gt;&lt;P&gt;doc 3: parked and then posted. BSTAT = space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to retrive documents 1 and 3..as they were or are in parked status at some point of time....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we do it....i am sure i am explaining everything in detail....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863924#M671645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863925#M671646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you write two different queries on BKPF &lt;/P&gt;&lt;P&gt;1 to get parked documents &lt;/P&gt;&lt;P&gt;2 to get parked and posted documents &lt;/P&gt;&lt;P&gt;and then combine the result or just use the APPENDING option in second query so no need to use two internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 01:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863925#M671646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T01:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a select statement..?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863926#M671647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this and see whether pick up both documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select BUKRS BELNR GJAHR 
from BKPF 
into TABLE i_vbkpf 
where BLART = 'SY'
   and CPUDT eq p_cpudt.
   
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 02:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-a-select-statement/m-p/2863926#M671647</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-05T02:07:17Z</dc:date>
    </item>
  </channel>
</rss>

