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: 

[ABAP] send mail with private flag (sensitivity)

raffi1
Participant

Hi altogether,

I am sending infomails from SAP-system using function module SO_NEW_DOCUMENT_SEND_API1. Customer wants to have the mails with the private flag.

So I tested it sending the mails with the sensitivity flag of domain SO_OBJ_SNS. We tried P and E. But both do not represent the private flag. P sends the mail with the correct flag which is confidential in outlook.

Sending mails with E does not show any flag.

So to summarize: Both, P and E do not represent the sensitivity private in outlook. The other possible values (F and G) were not tested but do not sound like private.

Did I miss something or is it not possible to send mails with private sensitivity.

thanks and best regards

Christian

5 REPLIES 5

matt
Active Contributor

SO_NEW_DOCUMENT_SEND_API1 is obsolete. Use the CL_BCS... classes instead. They're easier to use, and may have the functionality you're look for.

Sandra_Rossi
Active Contributor
0 Kudos

It's recommended to use CL_BCS, SO functions are obsolete (but I wouldn't think that CL_BCS adds a new feature about sensitivity).

The note 1090262 - Enhancement of the 'Sensitivity' sending attribute explains how it works in SAP:

  • [SAP values in Business Workplace are:]
  • Standard
  • Confidential
  • Functional
  • The 'Confidential' value is set to 'Private' in the MIME attribute if you are sending a document to an external email address. The other sensitivity values have no effect when documents are sent to external email addresses.
  • [so, Private is supported by SAP]
  • [In the changed code, I see:]
  • case object_hd_change-objsns.
    when 'E'. " personal
    perform objhead_param_set in program sapfssoa
    using '&SO_SENSITIVITY'
    'PERSONAL'
    changing l_objhead.
    object_hd_change-objsns = 'P'.
    objhead[] = l_objhead[].
    when 'G'. " business
    perform objhead_param_set in program sapfssoa
    using '&SO_SENSITIVITY'
    'CONFIDENTIAL'
    changing l_objhead.
    object_hd_change-objsns = 'P'.

So, I guess that the value 'G' should do what you're looking for.

NB: not sure whether 'F' is valid (too bad (!) you tried P and E, but it was the last value G).

raffi1
Participant

Hi Sandra,

thanks for this hint. We will try this with G and if necessary class cl_bcs.

best regards

raffi1
Participant
0 Kudos

short status: At the moment the best we get is a confidential.

I am now in contact with SAP. G marked the mails as confidential, too.

raffi1
Participant

Today I got the final answer from SAP: the feature is not implemented in sap

That's a pitty. So I now have to go through solutions outside of SAP.