cancel
Showing results for 
Search instead for 
Did you mean: 

commit_in_posting in me23n

Former Member
0 Kudos

Hi All ,

I'm facing the following problem .

In the Tcode for PO in ME23n , after configuring the message type with '4 Send Immediately' and saving it ...it generates a error message the update is terminated and shows error COMMIT_IN_POSTING.

Actually I need to send the smartform as an PDF attachment to an external Email ID and this must be done as soon as I press save in Me23n.

Can u please tell me how to achieve this .

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Resolved

Former Member
0 Kudos

Sam,

Shall you please let me know how you resolved this issue, we have similar issue.

Regards,

Venkat.

Former Member
0 Kudos

well just dont do any commits since you are in update task when forms are processed with sending time 4 (which actually IS right at the point where user clicks save).

Former Member
0 Kudos

Thanks for Reply.

if i comment the commit_work then mail is not generating.Help me if any other suggestion where i am going wrong.

Former Member
0 Kudos

It is a bit hard to tell you where you may be going wrong since we dont know what you are doing. you could post excertps of your code you use to process the mail. maybe even the part where your decommented commit is.

Edited by: Florian Kemmer on Nov 11, 2010 10:08 AM

Former Member
0 Kudos

Hi,

i am posting my code.



CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = w_document_data
          put_in_outbox              = 'X'
*          commit_work                = 'X' here i am making comment
        IMPORTING
          sent_to_all                = g_sent_to_all
        TABLES
          packing_list               = i_packing_list
          contents_bin               = it_pdf
          contents_txt               = i_body_msg
          receivers                  = i_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        MESSAGE 'Mail Successfully Sent' TYPE 'S'.
      ENDIF.

Former Member
0 Kudos

according to this we got following answer from David Liu in thread .

Former Member
0 Kudos

Thanks for Reply.

When i have used SO_NEW_DOCUMENT_SEND_API1 the same problem i am facing.When i was analysing i came to know for some document type it is working fine and for other document types it is not working.Any help regarding this which i need badly...

Thanks in Advance

Former Member
0 Kudos

Hi

But if you're using a PO message why you're using the fm SO_NEW_DOCUMENT_SEND_API1 in order to send a mail?

You don't need it, the sapscript and smartform can send the mail automatically without that fm.

In the smartform interface you can see the follwing import parameter:

MAIL_APPL_OBJ

MAIL_RECIPIENT

MAIL_SENDER

They have to be used just to send a mail

The import parameter CONTROL_PARAMETERS-DEVICE has to set with value: MAIL (instead of PRINTER)

Max

Former Member
0 Kudos

Thanks for u r timely reply.

I have tried this also.It is giving mail receipint successfully sent but i am not able to see the mail in transaction SOST.

Former Member
0 Kudos

have a look at TA SCOT or ask your basis team about how SCOT/SOST is configured, and if those configurations would match your requirement.

Former Member
0 Kudos

Thanks for Reply.

In PO when i am saving the application the mail is going automatically and there is entry in SOST Transaction.

but when i click print priview and want send the mail it is giving 'Mail Request xxxxxxxxxxxxxxx192 created Successfully' i am not receiving any mail and there is no entry in SOST.