<?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 FI document created by IDoc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-created-by-idoc/m-p/9561609#M1754275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are creating FI documents on R3 using IDocs issued from SRM system. I want to get the created document number in realtime. There are user exits in fg BBPI like EXIT_SAPLBBPI_001 etc&amp;nbsp; but these are called before the document creation. Is there a user exit which I can use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 08:34:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-06-27T08:34:31Z</dc:date>
    <item>
      <title>FI document created by IDoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-created-by-idoc/m-p/9561609#M1754275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are creating FI documents on R3 using IDocs issued from SRM system. I want to get the created document number in realtime. There are user exits in fg BBPI like EXIT_SAPLBBPI_001 etc&amp;nbsp; but these are called before the document creation. Is there a user exit which I can use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 08:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-created-by-idoc/m-p/9561609#M1754275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T08:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: FI document created by IDoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-created-by-idoc/m-p/9561610#M1754276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From experience, the accounting document number is not available in Exits/BADis/BTE's. If this is an absolute requirement, you would probably have to look for an implicit enhancement somewhere in the AC_DOCUMENT_CREATE Function Module. &lt;/P&gt;&lt;P&gt;You can also check Function Module Number_Get_Next as can be seen below to find the real time document number:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp; NR_RANGE_NR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '1'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Number range interval&lt;/P&gt;&lt;P&gt;&amp;nbsp; OBJECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'ZNRANGE' "Number range object (SNRO)&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUMBER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ld_number&lt;/P&gt;&lt;P&gt;&amp;nbsp; RETURNCODE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ld_error&lt;/P&gt;&lt;P&gt;But there is a Risk involved with this i.e. if you have multiple Accounting documents of the same type being posted parallel, the Number might be incorrect. Hence only if you are sure that Accounting document is posted from one place and one by one, I would recommend you use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also. lastly, you can wait for other posts from people more experienced than me who may be able to provide a better solution. &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1581/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&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;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jul 2013 04:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-created-by-idoc/m-p/9561610#M1754276</guid>
      <dc:creator>vijay_hariharan</dc:creator>
      <dc:date>2013-07-07T04:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: FI document created by IDoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-created-by-idoc/m-p/9561611#M1754277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if you can get this information through BTE "&lt;STRONG&gt;00001030"&lt;/STRONG&gt;: POST DOCUMENT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jul 2013 06:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-document-created-by-idoc/m-p/9561611#M1754277</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2013-07-07T06:36:42Z</dc:date>
    </item>
  </channel>
</rss>

