WF-BATCH on different systems with different email adresses using CUA

Kjetil Kilhavn kjetil.kilhavn at bluec.no
Mon Oct 24 05:55:29 EDT 2011


One way of doing this is by implementing an implicit enhancement of 
CL_SEND_REQUEST_BCS at the end of method GETU_MESSAGE_SUBJECT_LONG.
The modified subject will not be stored in SAP, the modification of it takes 
place when the message is sent. I've done this to inform users that the 
message is sent from a non-production system, so you'll have to modify it a 
bit for your needs, but apart from that it's a copy & paste excercise

I've also enhanced CL_SX_MIME_SINGLEPART->SET_CONTENT_TXT to add some 
information (including the client number), but that's not necessary for your 
purpose. Besides, that enhancement doesn't work perfectly, e.g. I haven't been 
able to sort out how to add this information when an e-mail contains only a 
PDF in the body the body.

CL_SEND_REQUEST_BCS->GETU_MESSAGE_SUBJECT_LONG
Implicit enhancement at end of method.

ENHANCEMENT 1  ZBC_PREFIX_MESSAGE_SUBJECT.    "active version
*--------------------------------------------------------------------*
* Prefix the subject to indicate message is sent from a non-production system.
*--------------------------------------------------------------------*
  DATA: zle_system_name TYPE syst-sysid,
        zle_client_role TYPE t000-cccategory.
  DATA: zle_prefix LIKE result.

  CALL FUNCTION 'TR_SYS_PARAMS'
   IMPORTING
     systemname         = zle_system_name
     system_client_role = zle_client_role
   EXCEPTIONS
     no_systemname      = 1
     no_systemtype      = 2.
  IF zle_client_role <> 'P'.  "Non-production client
    MESSAGE i001(zbc_srv_com)
            WITH zle_system_name
                 sy-mandt
                 result
            INTO zle_prefix.
    CONCATENATE zle_prefix '***' result
                INTO result SEPARATED BY space.
  ENDIF.
ENDENHANCEMENT.



On Onsdag 12. oktober 2011 07.47.01 Dart, Jocelyn wrote:
> Hi madABAPer
> At some sites we've also included system and client in a standard footer -
> set up via SE61 class "General Text" - and then included that at the end
> of all work items/emails of that system. You have to include the reference
> in each individual task, but at least the text is maintained once for all.
> Regards,
> Jocelyn
> 
> -----Original Message-----
> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of
> Alon Raskin Sent: Wednesday, 12 October 2011 4:01 AM
> To: SAP Workflow Users' Group
> Subject: RE: WF-BATCH on different systems with different email adresses
> using CUA
> 
> Never mind. Central User Admin... got it.
> 
> Can you embed the system ID and client into the text of the email?
> 
> Alon Raskin
> e: araskin at go3i.com
> 
> 
> -----Original Message-----
> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of
> Mad ABAPper Sent: Tuesday, October 11, 2011 11:24 AM
> To: sap-wug at mit.edu
> Subject: WF-BATCH on different systems with different email adresses using
> CUA
> 
> NOTE: This topic was discussed in SAP-WUG Digest, Vol 72, Issue 39
> (November 17, 2010) with no real solution.
> 
> We use CUA to manage users across our SAP production systems (ECC, BI,
> GTS, SRM). There are numerous workflow processes executed on a daily
> basis from each of these instances which are delivered to the SMTP
> email address of the responsible users. Additionally, the vast majoity
> of standard SAP (and our own custom) tasks and messages do not include
> system/client identifying details.
> 
> Ideally, we would like to manage the email addresses of WF-BATCH to
> include a concatenation of SAP system ID and client which would
> require configuration changes to CUA, as well as, manual input on the
> various systems. Our CUA team has denied this approach.
> 
> The objective is to provide our end users with an easy way to
> determine which system has sourced a particular message in their email
> inbox. Has anyone figured this out?
> 
> Regards,
> 
> MadABAPper
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug

-- 
Kjetil Kilhavn (+47 40220607)
Blue Consulting AS (http://www.bluec.no)



More information about the SAP-WUG mailing list