<?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: fb03 datum problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659685#M613525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2007 10:57:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-23T10:57:48Z</dc:date>
    <item>
      <title>fb03 datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659681#M613521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts !&lt;/P&gt;&lt;P&gt;there is a program for displaying domestic sales figures as per&lt;/P&gt;&lt;P&gt;customer/document type/Invoice wise. &lt;/P&gt;&lt;P&gt;input data for report is&lt;/P&gt;&lt;P&gt;Company code&lt;/P&gt;&lt;P&gt;DOCUMENT TYPE&lt;/P&gt;&lt;P&gt;START DATE &amp;amp; END DATE&lt;/P&gt;&lt;P&gt;FINANCIAL YEAR.&lt;/P&gt;&lt;P&gt;problem is in date when i entered date 01.05.07 to 04.05.07 or 02.05.07 to 05.05.07 or 02.05.07 to 06.05.07 its taking data for all 3 line items in invoice and showing correct data. but if date is 01.05.07 to 05.05.07 or 01.05.07 to 06.05.07 its taking data for two line items leaving 1st line item in invoice . Date for these invoice creation is 02.05.07, its showing correct data for it . but not showing correct data in some date intervals(i.e its taking data for two line items leaving 1st line item in invoice ) . for other invoices its giving correct data except in this specific doc.no. otherwise it is correct . can anybody help me why its showing incorrect data for only one specific doc.no. &lt;/P&gt;&lt;P&gt;code for date is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have checked fb03 and its showing correct 3 line items in invoice &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM FORM_COLLECT_BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BUKRS BELNR GJAHR BLDAT BUDAT BLART XBLNR BKTXT USNAM CPUDT&lt;/P&gt;&lt;P&gt;CPUTM FROM BKPF&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_BKPF&lt;/P&gt;&lt;P&gt;WHERE BUKRS = PR_BUKRS&lt;/P&gt;&lt;P&gt;AND GJAHR = PR_GJAHR&lt;/P&gt;&lt;P&gt;AND BLART IN SO_BLART&lt;/P&gt;&lt;P&gt;AND BUDAT IN SO_BUDAT&lt;/P&gt;&lt;P&gt;AND XREVERSAL = ''&lt;/P&gt;&lt;P&gt;AND BSTAT = ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM FORM_COLLECT_BSEG .&lt;/P&gt;&lt;P&gt;  SELECT BUKRS BELNR GJAHR HKONT DMBTR KUNNR LIFNR BSCHL KOART MENGE&lt;/P&gt;&lt;P&gt;  MWSKZ ZUONR MWSTS PRCTR FROM BSEG INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;  IT_BSEG&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN IT_BKPF&lt;/P&gt;&lt;P&gt;  WHERE&lt;/P&gt;&lt;P&gt;  BELNR = IT_BKPF-BELNR AND&lt;/P&gt;&lt;P&gt;  BUKRS = PR_BUKRS AND&lt;/P&gt;&lt;P&gt;  GJAHR = PR_GJAHR.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 08:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659681#M613521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T08:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: fb03 datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659682#M613522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ranjna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand right this is one document with three line items. In this case the problem is not with the BKPF selection, but with the line item selections. Pls. check your code or copy it here and people can have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 08:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659682#M613522</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-08-23T08:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: fb03 datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659683#M613523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ranjana, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the SQL to this - &lt;/P&gt;&lt;P&gt;FORM FORM_COLLECT_BSEG .&lt;/P&gt;&lt;P&gt;SELECT BUKRS BELNR GJAHR &amp;lt;b&amp;gt;BUZEI&amp;lt;/b&amp;gt; HKONT DMBTR KUNNR LIFNR BSCHL KOART MENGE&lt;/P&gt;&lt;P&gt;MWSKZ ZUONR MWSTS PRCTR FROM BSEG INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;IT_BSEG&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_BKPF&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;BELNR = IT_BKPF-BELNR AND&lt;/P&gt;&lt;P&gt;BUKRS = PR_BUKRS AND&lt;/P&gt;&lt;P&gt;GJAHR = PR_GJAHR.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do this - you will get all the line items. &lt;/P&gt;&lt;P&gt;Make sure - You have added this BUZEI to ur internal table IT_BSEG also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally - FOR ALL ENTRIES fetches unique entries based on the Fields you are trying to SELECT. As you missed the BUZEI , it was fetching the unique sets based on the fields you have selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it solves the problem.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;SKC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 09:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659683#M613523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T09:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: fb03 datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659684#M613524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the changes below, i hope it will solve your problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM FORM_COLLECT_BSEG .&lt;/P&gt;&lt;P&gt;if not IT_BKPF[] is initial.&lt;/P&gt;&lt;P&gt;SELECT BUKRS BELNR GJAHR HKONT DMBTR KUNNR LIFNR BSCHL KOART MENGE&lt;/P&gt;&lt;P&gt;MWSKZ ZUONR MWSTS PRCTR FROM BSEG INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;IT_BSEG&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_BKPF&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;BELNR = IT_BKPF-BELNR AND&lt;/P&gt;&lt;P&gt;BUKRS = IT_BKPF-BUKRS AND&lt;/P&gt;&lt;P&gt;GJAHR = IT_BKPF-GJAHR.&lt;/P&gt;&lt;P&gt;*Changes to code made here&lt;/P&gt;&lt;P&gt;*BUKRS = PR_BUKRS AND&lt;/P&gt;&lt;P&gt;*GJAHR = PR_GJAHR.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful, get back in case of query...&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and do always check the previous internal table is not empty while using for all entries in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tripat Pal Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 09:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659684#M613524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T09:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: fb03 datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659685#M613525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 10:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659685#M613525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T10:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: fb03 datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659686#M613526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi E.C !&lt;/P&gt;&lt;P&gt;THANKS A LOT . U REALLY SOLVED MY PROBLEM.&lt;/P&gt;&lt;P&gt;THANKS AGAIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 11:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659686#M613526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T11:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: fb03 datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659687#M613527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey i am not E.C !! thanks for the points by the way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 11:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659687#M613527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T11:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: fb03 datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659688#M613528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ha ha, so who really solved ur problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 11:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb03-datum-problem/m-p/2659688#M613528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T11:09:36Z</dc:date>
    </item>
  </channel>
</rss>

