cancel
Showing results for 
Search instead for 
Did you mean: 

Send Immeditely causes COMMIT_IN_POSTING

Former Member
0 Kudos

Hi,

I'm trying to convert a sap script content into a PDF, and to send it as an email attachment.

I'm using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' .

My program works fine when I use output dispatch time of "1 send with periodically scheduled job".

But when I execute using "4 Send immediately (when saving the application)" it fails with error " Express document "Update was terminated" received from author ...... ".

When I dig into that error message it gives an explanation as

" COMMIT_IN_POSTING ".

Can anyone please advice me on this issue ?

Many Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

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.

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

I was missing CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'.

Reward points..

Former Member
0 Kudos

Hi Murali,

Thank you very much for your concern.

I have tried before with not to pass the parameter commit_work = 'X'. But then no email is generating at all.

It's not very much clear to me what do mean by the use of "CONVERT_COMM_TYPE_DATA". Because it has already been called before the OPEN FORM function.

Please clarify !!!!!