‎2006 Aug 03 9:19 AM
Hi,
Can you send the function module name to send mail from ABAP program.
KK.
‎2006 Aug 03 9:22 AM
You can use the function module
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
DOCUMENT_TYPE = 'RAW'
DOCUMENT_DATA = IS_DOCDATA
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
tables
OBJECT_CONTENT = IT_CONTENT
RECEIVERS = IT_RECEIVERS
exceptions
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
others = 99.
Regards
Anurag
‎2006 Aug 03 9:22 AM
‎2006 Aug 03 9:23 AM
‎2006 Aug 03 9:52 AM
Hi Krishna,
use SO_NEW_DOCUMENT_SEND_API1 ....for sending the document as mail
SO_NEW_DOCUMENT_ATT_SEND_API1... for sending it as an attachment
Regards,
Vidya.
‎2006 Aug 03 9:52 AM
hi Krishna
You can check out the FM's
SO_OBJECT_SEND
SO_NEW_DOCUMENT_SEND_API1
SO_NEW_DOCUMENT_ATT_SEND_API1
Hope this info is useful to you..
Regards,
Richa
‎2006 Aug 03 9:56 AM
Hi Krishna,
Here is the FM
'SO_NEW_DOCUMENT_SEND_API1'
U can check it's documentation for more details
even a sample program is there.
Copy it and check it.
Reward points if helpful.
Regards
-
Sachin Dhingra
‎2006 Aug 03 10:04 AM
Hi
Check this out
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wal_docdata
put_in_outbox = c_check
TABLES
packing_list = t_objpack
contents_txt = t_content_txt
receivers = t_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.Hope Ths Helps
Anirban