<?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: accounting document - clearing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703742#M1105207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the accounting document (header BKPF; items BSEG) you have to look for the Customer item ([BSID/BSAD|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=bsid&lt;EM&gt;BSAD&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] or [BSEG-KOART = 'D' |https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=bseg-koart&lt;/EM&gt;%3D&lt;EM&gt;%27D%27&lt;/EM&gt;&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue]for debitor)&lt;/P&gt;&lt;P&gt;- If you go through BSID/BSAD, BSAD contains the cleared items and BSID the others)&lt;/P&gt;&lt;P&gt;- If you go through BSEG, check fields [BSEG-AUGDT or BSEG-AUGBL|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=bseg-augdt+bseg-augbl&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] which are filled during the clearing&lt;/P&gt;&lt;P&gt;Look at table [VBFA|https://www.sdn.sap.com/irj/scn/advancedsearch?query=vbfa&amp;amp;cat=sdn_all] for flow of document and at some threads like &lt;SPAN __jive_macro_name="thread" id="628225"&gt;&lt;/SPAN&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>Thu, 13 Nov 2008 13:51:24 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2008-11-13T13:51:24Z</dc:date>
    <item>
      <title>accounting document - clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703741#M1105206</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 would like to view if an accounting document is cleared or not, for a particular client, in sap databases not from VF03 - document flow .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Which is that indicator that tell me if an accounting document is cleared or not?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And if it's possible, please someone tell me which are the main tables involved in document flow:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sales order-&amp;gt;...-&amp;gt;accounting document.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703741#M1105206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: accounting document - clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703742#M1105207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the accounting document (header BKPF; items BSEG) you have to look for the Customer item ([BSID/BSAD|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=bsid&lt;EM&gt;BSAD&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] or [BSEG-KOART = 'D' |https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=bseg-koart&lt;/EM&gt;%3D&lt;EM&gt;%27D%27&lt;/EM&gt;&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue]for debitor)&lt;/P&gt;&lt;P&gt;- If you go through BSID/BSAD, BSAD contains the cleared items and BSID the others)&lt;/P&gt;&lt;P&gt;- If you go through BSEG, check fields [BSEG-AUGDT or BSEG-AUGBL|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&amp;amp;query=bseg-augdt+bseg-augbl&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] which are filled during the clearing&lt;/P&gt;&lt;P&gt;Look at table [VBFA|https://www.sdn.sap.com/irj/scn/advancedsearch?query=vbfa&amp;amp;cat=sdn_all] for flow of document and at some threads like &lt;SPAN __jive_macro_name="thread" id="628225"&gt;&lt;/SPAN&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>Thu, 13 Nov 2008 13:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703742#M1105207</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-11-13T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: accounting document - clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703743#M1105208</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;The main accounting tables are BKPF (header) and BSEG (items), and you can also considere BSID (open item) and BSAD (cleared item) for customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you wan to do a query starting from sales invoice (VBRK):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- A) Search account document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BKPF-AWTYP = 'VBRK'.&lt;/P&gt;&lt;P&gt;BKPF-AWKEY = VBRK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This query is very fast because there's a standard index for those fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- B) Search items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSEG-BUKRS = BKPF-BUKRS.&lt;/P&gt;&lt;P&gt;BSEG-BELNR = BKPF-BELNR.&lt;/P&gt;&lt;P&gt;BSEG-GJAHR = BKPF-GJAHR.&lt;/P&gt;&lt;P&gt;BSEG-KOART = 'D'.          &amp;lt;----&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt; Items for customer only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- C) Check if the document is cleared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT BSEG-AUGBL IS INITIAL. -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&amp;gt; Item is cleared. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all items are cleared means the invoice is cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can also considere:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF BSEG-AUGBL is initial -&amp;gt; u'll find a record in BSID else in BSAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 14:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703743#M1105208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: accounting document - clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703744#M1105209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanx  &lt;STRONG&gt;Raymond Giuseppi&lt;/STRONG&gt;    	 &amp;amp;  &lt;STRONG&gt;max bianchi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question: beside what you told me, i have run FBL5N report to see if coincide with table BSID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in FBL5N report there is a field called  &lt;STRONG&gt;Probable Payment Date (Cash Discount 1 Due)&lt;/STRONG&gt;. I have not found this field in BSID table. This field is automatically calculated based on &lt;STRONG&gt;Document Date in Document&lt;/STRONG&gt; and &lt;STRONG&gt;Cash discount days 1 (terms of payment)&lt;/STRONG&gt; OR it's stored somewhere in a table??&lt;/P&gt;&lt;P&gt;Ex: &lt;U&gt;Document Date&lt;/U&gt; = 01.11.2008&lt;/P&gt;&lt;P&gt;      &lt;U&gt;Cash discount days 1&lt;/U&gt; = 10&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;=&amp;gt;_Probable Payment Date (Cash Discount 1 Due)_ will be 11.11.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about field &lt;STRONG&gt;Days in Arrears by Net Due Date&lt;/STRONG&gt; from FBL5N? It's calculated like Probable Payment Date?&lt;/P&gt;&lt;P&gt;(Payment Date - current date) I think it is ... but i want to be sure about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again I thank those who helped me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 07:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703744#M1105209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T07:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: accounting document - clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703745#M1105210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find the field Probable Payment Date (Cash Discount 1 Due). I have a field called "Cash Disc. 1 Due", but it's a flag not a date. This flag is set at runtime (it belongs to the layout structure RFPOS*), perhaps you're speaking about the baseline date (BSEG-ZFBDT)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's so that date is calculated by fm NET_DUE_DATE_GET, here it needs to use the cash discount fields (ZFBD1T, ZFBD2T, ZFBD3T): these fields depend on term of payment (ZTERM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're speaking about other field u should check if it's a custom fields and so if it's filled by an user-exit (probably BTE) called by FBL5N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway u should considere the output fields are in structures RFPOS*, the values of most of fields are transfered from BSEG (BSID/BSAD) directly, but other fields can be calculated at runtime: u should check the fm FI_ITEM_DISPLAYS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Nov 14, 2008 12:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 11:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703745#M1105210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T11:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: accounting document - clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703746#M1105211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This kind ogf field is calculated during display process, this short code used in many report and logical database may help you&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: BSEGH, BSEGA, FAEDE. " force sharing data 
MOVE-CORRESPONDING bseg TO bsegh. " pass data
PERFORM got_bsega(sapbsega). " bsega and faede are now filled.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 14:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accounting-document-clearing/m-p/4703746#M1105211</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-11-14T14:06:37Z</dc:date>
    </item>
  </channel>
</rss>

