Application Development 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: 

How to customize or change the subject of the mail send throu SM36

Former Member
0 Kudos

HI,

i m using SM36 to Schedule some of reports and send the output of those reports as an attachement to particular email ids.

It is working fine people are receive mails with an output of the report as an attachement , but the subject is coming like this

"Job PRODUCTION PLANING REPORT, Step 1" where "PRODUCTION PLANING REPORT" is the job name . What i want is the Subject should be only my Job Name "PRODUCTION PLANING REPORT" the Prefix Iob and the Sufix Step 1, should not appear in the subject. How can i achive this ?

Regards

Edited by: nau on Jan 20, 2010 3:31 PM

1 ACCEPTED SOLUTION

Former Member

Are you using some FM to send emails?

14 REPLIES 14

Former Member

Are you using some FM to send emails?

0 Kudos

No directly doing through SM36.

Edited by: nau on Jan 21, 2010 11:54 AM

0 Kudos

Hi

I believe u are scheduling a program to send the email.If yes then you should amend the program where you are building the email header.

Regards

Gaurav

0 Kudos

You cannot send email directly through SM36. You need to assign a program to it.

0 Kudos

Hi,

I have not written any code to send a email, i m just scheduling my ALV report Through SM36 and added some email address to the SPOOL RECEIPENT and it send the output of the reprt as an attachement to the receipents. What i want is that the subject should be only the job Name which i have entered and not the suffix and prefix attached to it .

0 Kudos

Hi Kumar,

Yes we can send directly through SM36.

Edited by: nau on Jan 25, 2010 2:53 PM

0 Kudos

Hi,

When you execute the job, It builts the subject in the formate Job <job name > step no.

If you want the message with the differnt subject line, you may need to send the same using FM.

Regards,

Judith

0 Kudos

Dear Judith,

Thanks for your reply , but how can we send this with a FM ?

Edited by: nau on Jan 27, 2010 2:15 PM

0 Kudos

Hi Kumar,

Yes we can send directly through SM36.

Why do we need a FM now if we can directly send it via SM36 as per you

Manas M.

Edited by: Kumar Manas Mishra on Jan 27, 2010 9:52 AM

0 Kudos

Hi Manas,

What i want is the Subject should be only my Job Name "PRODUCTION PLANING REPORT" the Prefix job and the Sufix Step 1, should not appear in the subject. That's why i ask about the FM that how can we achive the subject to be only the Job name.

Edited by: nau on Jan 27, 2010 4:23 PM

0 Kudos

I am so pity you Nu ,

you are looking for this answer from so long time

Sorry can't give you the wright answer...but

Is it ok if you can send mail it via ABAP report instead of SM36?

FM: SO_DOCUMENT_SEND_API1.

Sas

0 Kudos

Hi Sas,

I had conveyed earlier to nau it is not possible via SM36.

We can either use some FM's.

Please suggest your views?

Manas M.

0 Kudos

In SM36, under the 'General Data' area, the answer is right there. Click on the Spool list recepient button and place the e-mail recepient in the box. It looks like only one entry can be entered there so you may want to have a distribution group setup accordingly for multiple recepients

My view is as per the line i can see only .html attachment only you can send...

See Mr NA. take intitiative and tell the clients....Clearly that if we schedule thtrough SM36 then we have limited funcitonalities like you can't attach the excel version's specially and Subject issue what you are discussing...

So as of now my suggestion is Using the FM (if it is version 6.0 Ecc prefer using classes....) You can write extra funcitionality to report to send via Email

Sas

0 Kudos

I hope now Mr.Nau can get out of this issue.

Thanks Sas for ypur views.

Manas M.