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

sending spool using RS_SEND_MAIL_FOR_SPOOLLIST function.

Former Member
0 Likes
1,098

I'm Trying to send a spoollist via the

function RS_SEND_MAIL_FOR_SPOOLLIST as mail

to the SAP-Office-Express-Mail.

The function sends the mail but without the

spoollist. The spoollistnumber has to be given into the inputparameter SPOOLNUMBER.

This function calls another function SO_OBJECT_SEND. It does'nt work.

Do you know how to handle this problem?

Thank you

I'm Trying to send a spoollist via the

function RS_SEND_MAIL_FOR_SPOOLLIST as mail

to the SAP-Office-Express-Mail.

The function sends the mail but without the

spoollist. The spoollistnumber has to be given into the inputparameter SPOOLNUMBER.

This function calls another function SO_OBJECT_SEND. It does'nt work.

Do you know how to handle this problem?

Thank you

7 REPLIES 7
Read only

andreas_mann3
Active Contributor
0 Likes
981

Hi,

look OSS-note 190669

regards Andreas

Read only

0 Likes
981

thank you very much Andreas Mann. may i ask what is "OSS-note 190669"???? sorry, i'm a newbie here.. thanks again..

Read only

0 Likes
981

Hi Ferdino,

look here :

in this oss-note there is a sample program SENDLIST

, which you can copy and modify

regards Andreas

Read only

0 Likes
981

hi Andreas Mann, i didn't find any program SENDLIST in the link you gave me...

please check the link you gave me.. thank so much

Read only

0 Likes
981

Hi,

the link i send you is to register in oss.

After that you can login at oss and view the oss note.

regards Andreas

Read only

Former Member
0 Likes
981

Hi Bueno Ferdino

Visit Thread

Regards,

Vijay Raheja

Read only

Former Member
0 Likes
981

************************************************************************

REPORT ZMSRMAIL NO STANDARD PAGE HEADING

LINE-SIZE 255

LINE-COUNT 65

MESSAGE-ID ZM.

TABLES: RS38M.

DATA : BEGIN OF I_MAIL_TEXT OCCURS 0,

FIELD(72) TYPE C,

END OF I_MAIL_TEXT.

DATA : V_TEXT(72) TYPE C.

************************************************************************

SELECTION-SCREEN BEGIN OF BLOCK MAIL WITH FRAME TITLE TEXT-014.

SELECTION-SCREEN BEGIN OF LINE.

  • Checkbox for sending Mail.

PARAMETERS: P_MAIL AS CHECKBOX DEFAULT 'X'.

SELECTION-SCREEN COMMENT (17) TEXT-001.

SELECTION-SCREEN COMMENT (7) TEXT-002.

SELECTION-SCREEN POSITION 33.

PARAMETERS: P_EMAIL(60) TYPE C LOWER CASE

DEFAULT '[email protected]'.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN SKIP 1.

PARAMETERS: SUBJECT(60) TYPE C DEFAULT

'Test mail from SAP by Madhusudan - ZMSRMAIL'.

SELECTION-SCREEN SKIP 1.

PARAMETERS: P_PROG LIKE RS38M-PROGRAMM DEFAULT SY-REPID.

PARAMETERS: P_MFILE(60) TYPE C LOWER CASE DEFAULT

'/iface/DV1/data_out/comm/ZMSRMAIL.TXT'.

SELECTION-SCREEN END OF BLOCK MAIL.

************************************************************************

  • Sending a SAP mail to User

IF NOT P_MAIL IS INITIAL.

PERFORM POP_MAIL.

PERFORM MAILING.

ENDIF.

************************************************************************

&----


*& Form MAILING

&----


  • text

----


FORM MAILING.

call FUNCTION 'RS_SEND_MAIL_FOR_SPOOLLIST'

EXPORTING

SPOOLNUMBER = SY-SPONO

MAILNAME = 'test'

MAILTITEL = 'test mail'

USER = P_UNAME "sy-uname

TABLES

TEXT = I_CHECK

EXCEPTIONS

ERROR = 1

OTHERS = 2.

ENDFORM. " MAILING

&----


*& Form POP_MAIL

&----


FORM POP_MAIL.

READ REPORT P_PROG INTO I_MAIL_TEXT.

V_TEXT = 'This mail is triggered by SAP Program : ZMSRMAIL'.

INSERT V_TEXT INTO I_MAIL_TEXT INDEX 1.

CLEAR V_TEXT.

ENDFORM. " POP_MAIL