Skip to Content
Former Member
Aug 04, 2005 at 07:26 AM

Document Numbers & BAPI's



I'm using various BAPI's to perform functions such as to park an invoice when no purchase order is available.

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.

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?