Skip to Content
author's profile photo Former Member
Former Member

Send Immeditely causes COMMIT_IN_POSTING

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 05, 2008 at 07:11 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 05, 2008 at 07:49 PM

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

    I was missing CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'.

    Everything seems to be working now.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2008 at 10:01 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.