on 11-11-2010 7:49 AM
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.
Resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.