<?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 Numbers &amp; BAPI's in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990519#M74071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tried the BAPI, not really sure which document type  I should be using for Parked invoices, tried a few , which did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2005 09:07:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-04T09:07:21Z</dc:date>
    <item>
      <title>Document Numbers &amp; BAPI's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990514#M74066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using various BAPI's to perform functions such as to park an invoice when no purchase order is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do not change the document number when creating a new entry, the system "dumps", because the document number is already in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to ensure I have a unique document number before calling the BAPI, should I just create an internal table based on findinf the document number I am trying to insert, or is there a function available which does this already?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 07:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990514#M74066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T07:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Document Numbers &amp; BAPI's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990515#M74067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sims,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should use number ranges. I would advise an internal number range, then SAP handles number assignment automatically. &lt;/P&gt;&lt;P&gt;If internal number ranges can't be assigned, define your own number range (SNRO) and use function module NUMBER_GET_NEXT to get unique numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 08:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990515#M74067</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-08-04T08:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Document Numbers &amp; BAPI's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990516#M74068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can't use number ranges, the customer is passing in the document number they would like to use, and then it is up to me to check if it is unique or pass back an error message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 08:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990516#M74068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T08:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Document Numbers &amp; BAPI's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990517#M74069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;have you checked out BAPI_DOCUMENT_EXISTENCECHECK? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mikko&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry this was applicable to DMS only after checking it out.. I'd go with external number ranges where you can have your own document numbers if they are just included in the range you define. You should get an error message if the number has already been reserved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mikko Mäki-Rahkola&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mikko Mäki-Rahkola&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 08:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990517#M74069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T08:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Document Numbers &amp; BAPI's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990518#M74070</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;if you should change the number, then number ranges are an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you should raise an error, then a simple select will give you your answer. But then no document will be created, that's the result of ERROR message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 08:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990518#M74070</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-08-04T08:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Document Numbers &amp; BAPI's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990519#M74071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tried the BAPI, not really sure which document type  I should be using for Parked invoices, tried a few , which did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 09:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990519#M74071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T09:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Document Numbers &amp; BAPI's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990520#M74072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sims,&lt;/P&gt;&lt;P&gt;my mistake, sorry. The BAPI was only for DMS documents as I stated before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not finding any bapi's and the table lookup is not an option, I'd go with the external number ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mikko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 09:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990520#M74072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T09:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Document Numbers &amp; BAPI's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990521#M74073</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;table select is not an option? Isn't RBKP holding the data?&lt;/P&gt;&lt;P&gt;By the way: if you should raise a message and still book the document, then use the external number range in this exception cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 10:48:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-numbers-bapi-s/m-p/990521#M74073</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-08-04T10:48:03Z</dc:date>
    </item>
  </channel>
</rss>

