<?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: Document number in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409902#M1242297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajalakshmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below query, hope its help you to find out the both billing document and accounting document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*--- Data are fetched from table RSEG
      SELECT belnr            "Accounting Document Number
             gjahr            "Fiscal Year
             buzei            "Document item in invoice document
             ebeln            "Purchasing Document Number
             matnr            "Material Number
             bukrs            "Company Code
             werks            "Plant
             FROM rseg
             INTO TABLE it_rseg
             FOR ALL ENTRIES IN it_mseg &amp;lt;internal table filled from MSEG table&amp;gt;
             WHERE matnr = it_mseg-matnr
             AND bukrs = it_mseg-bukrs
             AND werks = it_mseg-werks
             AND ebeln = it_mseg-ebeln.

*--- Data are fetched from table RBKP
        SELECT belnr         "Document number of an invoice document
               gjahr         "Fiscal Year
               xblnr         "Reference Document Number
               FROM rbkp
               INTO TABLE it_rbkp
               FOR ALL ENTRIES IN it_rseg
               WHERE belnr = it_rseg-belnr
               AND gjahr = it_rseg-gjahr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sayak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2009 07:23:52 GMT</pubDate>
    <dc:creator>RoySayak</dc:creator>
    <dc:date>2009-04-09T07:23:52Z</dc:date>
    <item>
      <title>Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409900#M1242295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any table which links the invoice document number and the accounting document number?I have a accounting  document number using that have to update the contents of bseg table.How to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409900#M1242295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T07:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409901#M1242296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz &lt;STRONG&gt;SEARCH&lt;/STRONG&gt; in SCN you have lot of posts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409901#M1242296</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-04-09T07:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409902#M1242297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajalakshmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below query, hope its help you to find out the both billing document and accounting document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*--- Data are fetched from table RSEG
      SELECT belnr            "Accounting Document Number
             gjahr            "Fiscal Year
             buzei            "Document item in invoice document
             ebeln            "Purchasing Document Number
             matnr            "Material Number
             bukrs            "Company Code
             werks            "Plant
             FROM rseg
             INTO TABLE it_rseg
             FOR ALL ENTRIES IN it_mseg &amp;lt;internal table filled from MSEG table&amp;gt;
             WHERE matnr = it_mseg-matnr
             AND bukrs = it_mseg-bukrs
             AND werks = it_mseg-werks
             AND ebeln = it_mseg-ebeln.

*--- Data are fetched from table RBKP
        SELECT belnr         "Document number of an invoice document
               gjahr         "Fiscal Year
               xblnr         "Reference Document Number
               FROM rbkp
               INTO TABLE it_rbkp
               FOR ALL ENTRIES IN it_rseg
               WHERE belnr = it_rseg-belnr
               AND gjahr = it_rseg-gjahr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sayak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:23:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409902#M1242297</guid>
      <dc:creator>RoySayak</dc:creator>
      <dc:date>2009-04-09T07:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409903#M1242298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajalakshmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find this in the table VBFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the invoice number in Preceeding document field and get the entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get the subsequent entries of the invoice. i.e. after invoce what ever the document generated for the invoice wil be displayed. Using subsequnet doc. type you can find the required document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409903#M1242298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T07:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409904#M1242299</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;try with table : &lt;STRONG&gt;BKPF&lt;/STRONG&gt;  OR &lt;STRONG&gt;VBFA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAHUL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RAHUL SHARMA on Apr 9, 2009 3:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409904#M1242299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T07:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409905#M1242300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry am not still clear  with this.I have a invoice document number in an internal table using that i want to update the status of bseg table.Plz help to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409905#M1242300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T07:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409906#M1242301</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;Get billing document number from VBFA ref to invoice number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409906#M1242301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T07:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409907#M1242302</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;Get billing document number from VBFA ref to invoice number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409907#M1242302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T07:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409908#M1242303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table &lt;STRONG&gt;VBRL-VBELN&lt;/STRONG&gt; has Invoice Document No. and the same table has &lt;STRONG&gt;VBRL-VBELN_VF&lt;/STRONG&gt; as the Billing document No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take the billing document No. and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBRL-VBELN_VF = VBRK-VBELN = BSEG-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt; go in a reverse way--- BSEG &lt;DEL&gt;&amp;gt; VBRK&lt;/DEL&gt;-&amp;gt; VBRL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 08:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409908#M1242303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T08:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409909#M1242304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u have accounting number. bkpf-xblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s &lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM BKPF INTO TABLE GT_BKPF&lt;/P&gt;&lt;P&gt;WHERE AWTYP = 'VBRK' . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will get gt_bkpf-AWKEY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'0' + VBRK-VBELN = GT_BKPF-AWKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN THIS WAY U WILL GET VBRK-VBELN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is invoice no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOPE THIS HELP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 09:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409909#M1242304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T09:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Document number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409910#M1242305</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;RESG and RBKP are the two table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESG contains accounting document number&lt;/P&gt;&lt;P&gt;RBKP conatins invoice document number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;RItesh J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 09:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number/m-p/5409910#M1242305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T09:40:53Z</dc:date>
    </item>
  </channel>
</rss>

