Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

email from report

Former Member
0 Likes
463

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

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
437

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

3 REPLIES 3
Read only

amit_khare
Active Contributor
0 Likes
438

Hi

use any of the following FM.

'SO_DOCUMENT_SEND_API1'

'SO_NEW_DOCUMENT_SEND_API1'

'SO_OBJECT_SEND'

Regards,

Amit

Read only

Former Member
0 Likes
437

and also

http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm

regards

srikanth

Message was edited by: Srikanth Kidambi

Read only

Former Member
0 Likes
437

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