09-27-2016 3:28 PM
Hi Everybody
I am using the bapi fm BAPI_DOCUMENT_CREATE2 for craeting document for CV01n ..
BAPI_DOC_DRAW2-DOCUMENTNUMBER = wa_finaldata-doknr.
BAPI_DOC_DRAW2-DOCUMENTTYPE = wa_finaldata-dokar.
BAPI_DOC_DRAW2-DOCUMENTVERSION = wa_finaldata-dokvr.
BAPI_DOC_DRAW2-DOCUMENTPART = wa_finaldata-doktl.
BAPI_DOC_DRAW2-DESCRIPTION = wa_finaldata-dktxt.
BAPI_DOC_DRAW2-LABORATORY = wa_finaldata-labor.
BAPI_DOC_DRAW2-AUTHORITYGROUP = wa_finaldata-begru.
BAPI_DOC_DRAW2-STATUSEXTERN = wa_finaldata-stabk.
BAPI_DOC_DRAW2-WSAPPLICATION1 = wa_finaldata-dappl.
I am exporting the values ...Return no error message I am getting and sy-subrc = 0..
But Document not creating ..Pl. help me where is mistake ???
Thanks
Subhasis
09-27-2016 5:49 PM
PL. help me ..If anybody came across CV01N T-code updation through bapi function module ???
09-27-2016 6:28 PM
09-27-2016 11:00 PM
You need to take a look at the RETURN structure (type BAPIRET2). Does that contain any error messages or other information?
09-28-2016 4:01 PM
RETURN structure (type BAPIRET2) does not contain any error messages ..Its Successful ..Then I am using
BAPI_TRANSACTION_COMMIT is called but document not creating when checking in CV02N..
Pl. help all basic parameters I am passing ..
09-28-2016 5:41 AM
Hi,
Please check if the following parameters are filled properly:
originaltype
storagecategory
Also, check if BAPI_TRANSACTION_COMMIT is called.
Regards,
Renjith Michael
09-28-2016 7:44 AM
BAPI implementing FM shouml never fill sy-subrc, were you able to even put some EXCEPTION in your report?
Look at RETURN for error message(s) , type E or A
Hint: Refer to your course notes or the online documentation for 'Calling BAPIs from ABAP'
Regards,
Raymond
09-28-2016 3:58 PM
Thanks for ur reply...
But my BAPI returning no error message then I am using BAPI_TRANSACTION_COMMIT..But still
Document not creating ....
Thanks
09-29-2016 7:48 AM
09-29-2016 7:58 AM
Hello,
Do you use all conversion before doing the transaction ? if no please do.
Please use BAPI_TRANSACTION_COMMIT
Hope it will help you
Regards
Ashraf