2007 Nov 09 2:36 AM
Gurus,
We are posting FI GL documents in the quality box using BAPI BAPI_ACC_DOCUMENT_POST and we are also using commit work after the BAPI...We ran it as a job and when we are monitoring it we see that documents are getting posted and it gives us the document number...But when we go to FB03 or to BKPF to see the document we cannot see...it says document does not exist...
What can be reason...Please suggest...its really URGENT...
Thanks
Sam
2007 Nov 09 3:25 AM
Please use BAPI_TRANSACTION_COMMIT FM to commit your work. After the execution of this FM, you document will actually going to store in DB.
Regards,
Naimesh Patel
2007 Nov 09 3:25 AM
Please use BAPI_TRANSACTION_COMMIT FM to commit your work. After the execution of this FM, you document will actually going to store in DB.
Regards,
Naimesh Patel
2007 Nov 09 3:30 AM
Hi sam,
It is really weired that after document number shown also they are not there in BKPF.
Can you recheck once with correct parameters.
Regards,
Atish
2007 Nov 09 5:51 AM
> We are posting FI GL documents in the quality box
> using BAPI BAPI_ACC_DOCUMENT_POST and we are also
> using commit work after the BAPI
As you mentioned that you have been using COMMIT WORK.
You should be using the BAPI_TRANSACTION_COMMIT instead in order to do commit after using the BAPI_ACC_DOCUMENT_POST.
Regards
Gopi
2007 Nov 12 10:27 PM
Check your RETURN table. Does it contains any document number which were generated by BAPI?
Regards,
Naimesh Patel
2007 Nov 12 10:31 PM
Yes Naimesh...We run a job in background for posting.. and the documents numbers were generated...but we were not able to view the document in FB03 transaction...after a while we were able to look at the documenst...
What do u suggest...
Thanks
SAm
2007 Nov 12 10:42 PM
IF you are using COMMIT WORK instead of the BAPI_TRANSACTION_COMMIT, then please change it to BAPI_TRANSACTION_COMMIT .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X' "<< system will wait till the transaction will commit ...
Regards,
Naimesh Patel
.
2007 Nov 12 10:48 PM
2007 Nov 12 10:52 PM
2007 Nov 13 1:53 AM
Sam - if you are doing any kind of COMMIT in the program and cannot see the document number well after the program finishes, then I stongly doubt if the COMMIT is your problem. If you search the forum you'll see that this problem has come up before. It's likely a coding problem with the BAPI call.
Rob