Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FI Documents posted cannot be seen..?

Former Member
0 Kudos
183

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

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos
83

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

9 REPLIES 9

naimesh_patel
Active Contributor
0 Kudos
84

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

Former Member
0 Kudos
83

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

gopi_narendra
Active Contributor
0 Kudos
83

> 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

naimesh_patel
Active Contributor
0 Kudos
83

Check your RETURN table. Does it contains any document number which were generated by BAPI?

Regards,

Naimesh Patel

0 Kudos
83

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

0 Kudos
83

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

.

0 Kudos
83

wHAT WILL U SUGGEST THE VALUE FOR WAIT....

Thanks

Sam

0 Kudos
83

Should be <b>'X'</b>

Regards,

Naimesh Patel

Former Member
0 Kudos
83

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