cancel
Showing results for 
Search instead for 
Did you mean: 

To send the spool of a job to specified receipient.

Former Member
0 Kudos

HI ALL,

I have included JOB_CLOSE in my function module.

Here the job which i am passing is running in background and sends out a spool which i need to send to specified receipient immediately as the job finishes.

I found that JOB_CLOSE has a parameter RECEIPIENT_OBJ where i can give the receipient to whom i can send the spool of the job.

I want to know how do i pass a value to it..because it is of type structure SWOTOBJID.

So i defined a work area like this structure.

I do not know what values i should assign to OBJTYPE,OBJKEY,DESCRIBE etc..

Can anyone throw some light on this??

Reg,

Dhanya.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

answered

Former Member
0 Kudos

hi all,

thnx for such good responses.

i started trying with the code in

http://www.sap-basis-abap.com/sapac018.htm

so i now able to send the mail to SAP Inbox.

Now i have 2 problems

1.I need to send to internet Address like myname@organization.com.

wht is the code change i need to make???

2.If i have to send to multiple users how do i send??

Help appreciated!!

Reg

Lakshmant1
Active Contributor
0 Kudos

Hi Dhanya,

Check FM RS_SEND_MAIL_FOR_SPOOLLIST

Thanks

Lakshman

Former Member
0 Kudos

HI

PLEASE REFER THE FOLLOWING LINKS:

<a href="http://sap.ionelburlacu.ro/sap0/sapac018.htm">http://sap.ionelburlacu.ro/sap0/sapac018.htm</a>

<a href="http://www.sap-basis-abap.com/wf/workflow-creation-and-customization.htm">http://www.sap-basis-abap.com/wf/workflow-creation-and-customization.htm</a>

<a href="http://www.sap-basis-abap.com/sapac018.htm">http://www.sap-basis-abap.com/sapac018.htm</a>

<b><a href="http://help.sap.com/saphelp_46c/helpdata/en/fa/096d81543b11d1898e0000e8322d00/content.htm">http://help.sap.com/saphelp_46c/helpdata/en/fa/096d81543b11d1898e0000e8322d00/content.htm</a></b>

REGARDS

ANOOP

Former Member
0 Kudos

Hi,

See the function module CREATE_RECIPIENT_OBJ_PPF

And also refer the below link..

http://help.sap.com/saphelp_bw33/helpdata/en/fa/097720543b11d1898e0000e8322d00/plain.htm

Regards,

Prema

Former Member
0 Kudos

Hi Dhanya,

Please check these links:

http://www.sap-basis-abap.com/sapac018.htm

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

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

http://www.sap-img.com/abap/sending-mail-with-attachment-report-in-background.htm

Also, check out OSS note 190895 which includes a program that can send the output from a spool to mail recipients.

FM RS_SEND_MAIL_FOR_SPOOLLIST is also useful.

Hope it helps you.

Best Regards,

Anjali