2013 Jun 27 2:46 AM
Hi Experts,
I have a program which converts a Smartform into a spool as a PDF. Then It gets send as a email to the respective user.
I have selected the Spool: Output device as EMAIL and this device has been configured in SPAD.
This works fine.
But this email can be open in SOST, this should not be open in SOST as I'm sending some sensitive data.
Please advice the possibility of setting this email as Sensitive or any other solutions.
Investigations I did:
Please advice.
Cheers,
Chaminda
2013 Jun 27 7:06 AM
Hi Chaminda,
Please refer the below wiki link for your issue.
http://wiki.sdn.sap.com/wiki/display/Snippets/Smartform+to+Mail+as+PDF+attachment
Hope this will help you.
Thanks
Gangadhar
2013 Jun 27 6:53 AM
Hi,
Try to convert Smartform into pdf format in the program itself and then send from there using Function Module : SO_NEW_DOCUMENT_ATT_SEND_API1.
By this you need not to go for spool process.
Regards,
Ravi Pratap Singh
2013 Jun 27 7:00 AM
2013 Jun 27 7:06 AM
Hi Chaminda,
Please refer the below wiki link for your issue.
http://wiki.sdn.sap.com/wiki/display/Snippets/Smartform+to+Mail+as+PDF+attachment
Hope this will help you.
Thanks
Gangadhar
2013 Jun 27 11:31 PM
Hi All,
Thanks for your replies.
I have mention in my question under "Investigations", that I could do this using CL_DOCUMENT_BCS or SO_DOCUMENT* - This is agreed.
But my question is, without this, is there any possible way to achieve this using standard spool configurations in SPAD by configuring a output device for emailing?
This what I have have done ( part of my code 😞
it_popt-tdcopies = 1 .
it_popt-tdimmed = 'X' .
it_popt-tddelete = 'X' .
it_popt-tdcovtitle = '64010519'.
it_popt-tddest = 'MAIL' .
it_popt-rqposname = '[email protected]'.
it_control-no_dialog = 'X'.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = p_form "Smart form Name
importing
fm_name = fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
* error handling
endif.
* now call the generated function module
call function fm_name
exporting
control_parameters = it_control
output_options = it_popt
user_settings = ' '
TABLES
T_PC408 = i_pc408
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
This code send the email without any issues, but the email is not sensitive.
Could anybody explain me whether I can set the email as sensitive with this logic?
Cheers,
Chaminda
2013 Jul 03 11:25 PM
Hi Experts,
Thanks for the replies. Anyway those were helpful.
Actually I couldn't add the sensitivity as I expected using the SPOOL config.
So, I believe that, we cannot add the sensitivity when sending emails through SPOOL config. ( If anybody has a different idea, please let me know )
I had to change the logic to convert the Smartform to PDF and send the email using CL_BCS/CL_DOCUMENT_BCS classes.
Anyway my problem is resolved ( even though I had to change whole thing )
Cheers,
Chaminda