I'm trying to use CREATE method of this BAPI in a function module to create documents from a list provided. In test mode it's returning a document number but this document is not actually created: nothing in DFKKOP nor in DFKKKO.
However that document number is taken out. If I use FPE1 to manually create another document, the next number is used, creating a "gap" in these tables.
Any idea how to fix this?
Thanks a million in advance.