cancel
Showing results for 
Search instead for 
Did you mean: 

Send Immeditely causes COMMIT_IN_POSTING

Former Member
0 Kudos

Hi folks,

I am taking a SAP script Invoice, converting it to a PDF, and sending as an email attachment.

My program works great when I use output dispatch time of "1 send with periodically scheduled job" and using program RSNAST00, but when I execute using "4 Send immediatley (when saving the application)" it fails with error COMMIT_IN_POSTING.

Any idea why? How do I fix it?

Thanks,

Clint

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Smith ,

I'm also facing the same problem .

In the smartform after configuring the message type with '4 SZend Immediately' and saving it ...generates a error message the update is terminated and shows error COMMIT_IN_POSTING.

Can u please tell me how to overcome this .

Thanks in advance

Anil

Former Member
0 Kudos

Did you see my other posts about the commit option and the other function module I used?

Former Member
0 Kudos

Well through trial and error for the most part...

I was missing CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'.

Everything seems to be working now.

Former Member
0 Kudos

If I don't pass parameter

commit_work = 'X' to function 'SO_NEW_DOCUMENT_ATT_SEND_API1'

I don't get the error but there is no data in the invoice attachment. If I use RSNAST00 it has the data.

Any ideas?