on 05-25-2008 6:56 PM
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,
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 !!!!!
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.