2006 Aug 30 8:29 AM
Hi,
Could any body tell me the how to send an e-mail from a report . Is there any Function Module which serve the same purpose.
Regards,
Satya
2006 Aug 30 8:43 AM
Hi
use any of the following FM.
'SO_DOCUMENT_SEND_API1'
'SO_NEW_DOCUMENT_SEND_API1'
'SO_OBJECT_SEND'
Regards,
Amit
Hi,
Could any body tell me the how to send an e-mail from a report . Is there any Function Module which serve the same purpose.
Regards,
Satya
2006 Aug 30 8:43 AM
Hi
use any of the following FM.
'SO_DOCUMENT_SEND_API1'
'SO_NEW_DOCUMENT_SEND_API1'
'SO_OBJECT_SEND'
Regards,
Amit
2006 Aug 30 8:45 AM
and also
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
regards
srikanth
Message was edited by: Srikanth Kidambi
2006 Aug 30 8:53 AM
Hello,
U can use this code to send the email.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_DATA
IMPORTING
NEW_OBJECT_ID = OBJECT_ID
TABLES
OBJECT_CONTENT = OBJCONT
RECEIVERS = RECEIVER
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.
CLEAR: OBJCONT,RECEIVER.
REFRESH:OBJCONT,RECEIVER.
CLEAR: G_F_FLAG.
ENDIF.
If useful reward.
Vasanth