‎2008 Jul 28 1:42 PM
Hi,
i use the Function SO_NEW_DOCUMENT_SEND_API to send Emails, but the emails have always the status 'waiting for communcation service'. The standard function to send emails works!!
I guess the system missed an entry in one of the import-tables?!
kr
Thorsten
‎2008 Jul 28 1:51 PM
After the sy-subrc check
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_type = 'RAW'
document_data = wa_doc_chng
put_in_outbox = 'X'
TABLES
object_content = it_objcont[]
receivers = it_recl[]
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
IF sy-subrc EQ 0.
COMMIT WORK. "use comit work or
" you can use thi too
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
‎2008 Jul 28 1:51 PM
After the sy-subrc check
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_type = 'RAW'
document_data = wa_doc_chng
put_in_outbox = 'X'
TABLES
object_content = it_objcont[]
receivers = it_recl[]
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
IF sy-subrc EQ 0.
COMMIT WORK. "use comit work or
" you can use thi too
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
‎2008 Jul 28 1:53 PM
Hi,
Just add these 2 lines after calling mail sending FM. It will send the mail immediately.
SUBMIT rsconn01 USING SELECTION-SET 'INT' AND RETURN.
CALL FUNCTION 'SO_DEQUEUE_UPDATE_LOCKS'.
Thanks,
Vinod.
‎2008 Jul 28 1:54 PM
‎2008 Jul 28 1:56 PM
Hello,
Goto tcode SOST,
clear the queue except your message and click Execute.
Regards
Indu.
‎2008 Jul 28 1:58 PM