‎2014 Apr 15 7:34 PM
Hi!!
I'm trying to create a document through BAPI_DOCUMENT_CREAT2, we fill everything and run, not an error but the document is not created,
follows the fields that I filled
DocumentType - DBE
DocumentNumber - 22224
DOCUMENTVERSION - 00
DOCUMENTPART - 000
DESCRIPTION - "TEST"
USERNAME - PTCABAP
STATUSEXTERN - SW
STATUSINTERN-W1
TABLE
DOCUMENTDESCRIPTIONS - LANGUAGE - EN
LANGUAGE_ISO - EN
DESCRIPTION - "TEST"
can someone help me?
thank you
‎2014 Apr 15 9:37 PM
Hi,
You have to use FM BAPI_TRANSACTION_COMMIT afterwards.
Martin
‎2014 Apr 15 9:37 PM
Hi,
You have to use FM BAPI_TRANSACTION_COMMIT afterwards.
Martin
‎2014 Apr 16 1:27 PM
Hi Martin!!!
I do commits but still it says the document does not exist!
In BAPI_TRANSACTION_COMMIT just run, right?
I can create the document through CV01N but i need create in BAPI_DOCUMENT_CREATE2.
I verify the BAPI_DOCUMENT_GETDETAIL2 and it's all ok.
‎2014 Apr 16 3:26 PM
Hi Paulo,
Right, you just have to call BAPI_TRANSACTION_COMMIT after you call BAPI_DOCUMENT_CREATE2.
Both FM have a return table parameter that you can use to see if there are any errors at the creation.
Martin
‎2014 Apr 16 3:40 PM
Hi Martin,
Both FM not return anything... No errors, however does not create the document.
suggestions?
ty
‎2014 Apr 16 4:09 PM
Hi Paulo,
It is strange, perhaps you could post some of the code you are using to call FM BAPI_DOCUMENT_CREATE2 to try to see what's wrong.
Martin
‎2014 Apr 16 4:27 PM
follows:
DocumentType - DBE
DocumentNumber - 22224
DOCUMENTVERSION - 00
DOCUMENTPART - 000
DESCRIPTION - "TEST"
USERNAME - PTCABAP
STATUSEXTERN - SW
STATUSINTERN-W1
TABLE
DOCUMENTDESCRIPTIONS - LANGUAGE - EN
LANGUAGE_ISO - EN
DESCRIPTION - "TEST"
‎2014 Apr 16 2:54 PM
Hi Paulo,
check the below link may helpful for you.
http://scn.sap.com/thread/1639500
Regards,
Gurunath D
‎2014 Apr 16 3:25 PM