Application Development and Automation 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: 
Read only

FI Documents posted cannot be seen..?

Former Member
0 Likes
1,596

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
Read only

naimesh_patel
Active Contributor
0 Likes
1,496

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

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

9 REPLIES 9
Read only

naimesh_patel
Active Contributor
0 Likes
1,497

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

Read only

Former Member
0 Likes
1,496

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

Read only

gopi_narendra
Active Contributor
0 Likes
1,496

> 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

Read only

naimesh_patel
Active Contributor
0 Likes
1,496

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

Regards,

Naimesh Patel

Read only

0 Likes
1,496

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

Read only

0 Likes
1,496

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

.

Read only

0 Likes
1,496

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

Thanks

Sam

Read only

0 Likes
1,496

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

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,496

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