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

Spool Email Send with Sensitivity

Former Member
0 Likes
1,649

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:

  • I did some investigations and found that we can set the sensitivity in CL_DOCUMENT_BCS & SO_DOCUMENT*, but I'm not using any of these to send.
  • delete the whole list from SOST.

Please advice.

Cheers,

Chaminda

1 ACCEPTED SOLUTION
Read only

former_member223133
Active Participant
0 Likes
1,173

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

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:

  • I did some investigations and found that we can set the sensitivity in CL_DOCUMENT_BCS & SO_DOCUMENT*, but I'm not using any of these to send.
  • delete the whole list from SOST.

Please advice.

Cheers,

Chaminda

5 REPLIES 5
Read only

Former Member
0 Likes
1,173

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

Read only

former_member209120
Active Contributor
0 Likes
1,173

This message was moderated.

Read only

former_member223133
Active Participant
0 Likes
1,174

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

Read only

Former Member
0 Likes
1,173

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

Read only

Former Member
0 Likes
1,173

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