Skip to Content
author's profile photo
Former Member

Workflow : How to send mail to a SAP distribution list

Hi ,

I need to send a mail from workflow to

a group of SAP users (ideally in a distribution list).

I did not find any suitable option in the workflow

for this.

Can someone throw some light upon how to go about it ?

Thanks very much.

Regards,

Sandip.

Ph: +44 121 683 2814.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Sep 23, 2005 at 12:49 PM

    Hi Sandip,

    Resolve the DL into an internal table of users (there is an FM to do this - search for SOAPIDL* in the FM name) and bind it to a multi line container element. You could do this in a background method by extending a suitable object (SOFM for instance) or in a custom method that precedes the mail step. Assign the multilne container element as recipients.

    Cheers,

    Ramki Maley.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      <b>But I thought why would i create an org. structure only for four users.</b>

      It is not the question of how many users but how easy/flexible it is to change the recipients in a Production system. In your case any change needs to be transported because it is hard coded in the WF definition. Many installations have procedures that need approvals before any change can be transported to a Production client and strict controls when changes can be transported. I am strictly for No Hardcoding anywhere. Also one should be very careful while changing a Productive Workflow. Please see OSS Note #125400

      <b>If we select recipient as USER we cannot input container elements.</b>

      Sorry did not realize that. You can try recipient type expression. Container element is of type SWHACTOR. Populate OTYPE with 'US' (user) and OBJID with the user id.

      Cheers,

      Ramki Maley.

  • author's profile photo
    Former Member
    Oct 03, 2005 at 05:45 PM

    Execute one methon in the background which will have all the four SAP user names concatenated with US like

    USFIRST

    USSECOND

    USTHIRD

    USFOURTH

    MAP this element with the multiline container element of workflow.

    in the workflow select the SEND MAIL.

    Recipient type = G

    Expresion = multiline container element

    Try this.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi All,

      Resolve it into an internal table.

      And in the workflow,send the mail to &AGENTS& where &AGENTS& contains all user-ids.

      By this,you need not hard code or create any org structure.

      Hope it helps.

      sandip.