on ‎2013 Dec 11 1:43 PM
Dear Experts,
We are having a requirement in SAP EREC, where the business wants to set font 'Arial' as its default font in the email body. This email is being generated from the "Correspondence Activity", we have designed smartforms after copying the Standard SAP Templates "HRRCF_CS_IT_EXA_INVITATION". In the IMG Settings, we have set the "SSF_PDF" as the format for the output channel "Email".
The email triggers both, the email body and the attachment as PDF Document. We have created a Custom Smartstyle, applied the font "Arial" to the entire smartform. The PDF Attachment is displaying correctly "Font Arial" but the same email body is displaying the text in either "Courier" Or "Calibri".
We have tried various combinations of font families, applied the HTML Tags in Smartforms, debugged Class & Method "IF_HRRCF_CHANNEL_MAIL~SEND_DOCUMENT" but still we have not got any concrete clue.
Kindly let us know the probable solution, if someone has come across this kind of issue in SAP Erecruitment. We are on ERECRUIT 604 Release.
Thanks & Regards,
Shafique Shaikh
Request clarification before answering.
Hi Shafique,
I had a similar requirement, but I only needed to change the size of some text in the email body. However, I think your issue could be similar to that.
I had added HTML Tags in my Smartform for the email body, but I also had to do a small modification of SAP standard in order to get the wanted result.
In Class CL_HRRCF_CS_DOC_CAT_SF_SUPER, Method IF_HRRCF_CHANNEL_MAIL~SEND_DOCUMENT I replaced the lines
IF me->doc_properties-mime_type = c_html.
lv_doc_type = 'HTM'.
ELSE.
lv_doc_type = 'RAW'.
ENDIF.
with these ones:
IF me->doc_properties-mime_type = c_html
or me->doc_properties-mime_type = c_txt.
lv_doc_type = 'HTM'.
ELSE.
lv_doc_type = 'RAW'.
ENDIF.
It worked very well for my issue.
Regards
Mihaela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mihaela,
Thanks for responding to my query. Though I have included the HTML Tags in my smartform text, but still I am not getting the desired result in the "email body".
I have debugged the above piece of code in my system and the IMG Setting is set to "SSF_PDF" and hence the value in "me->doc_properties-mime_type" is "application/pdf" which will anyhow go to the ELSE part (that means lv_doc_type = 'RAW'.).
Following is the HTML Code which I have included in my Smartform -
<!DOCTYPE HTML>
<HTML>
<BODY>
<FONT SIZE="+10" FACE="Helve">
and closed the relevant Tags.
Could you please let me know whether you had the same settings in IMG (Email is set to SSF_PDF), which means you get the email body and the pdf attachment with the same content?
Regards,
Shafique
Hi Shafique,
this is working in our system for all cover letters. The MIME type of the cover letter is set in SAP standard hard coded to 'text/plain'(constant c_txt) in the above mentioned method, so it should go to the IF part.
If you want it to work for all letters, then you have to change the IMG setting for email or do some more modification of the method.
Our IMG setting for Emails is also set to SSF_PDF.
Regards
Mihaela
Hi Mihaela,
We are not using Cover Letters, but we want to send the email along with the PDF Attachment. We achieved this by maintaining the Output Channel as "SSF_PDF" for the Email Output. I have also checked by maintaining the TEXT/PLAIN & the HTML Output channels but these too didnt solved my issue. Even I was not able to change the font size (Which I maintained as "20" for testing purpose).
The smartstyle is applied to the entire smartform which works fine with the PDF Attachment ( We are able to see Font Family 'Arial' & Size '10' in the PDF File), but the same text (Which we are displaying as email body) changes the font to "Courier".
I have checked the Printer Fonts / Device Type Settings Etc, but still I am not able to find the clue.
Kindly let me know whether the HTML Tags which I have mentioned in my earlier post are correct? Also, do let me know the other probable options which would help me in achieving the desired results.
Thanks for your patience.
Regards,
Shafique Shaikh
| User | Count |
|---|---|
| 7 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.