Skip to Content
author's profile photo Former Member
Former Member

How can a Rule assigned to Send mail step in Workflow

Hi all,

I have created a Rule which fetches the mail id from ztable againt a plant to which the alert is to be send

And assigned this rule to the mail step as default rule . But mail was not going and the workflow gives error at mail step . Pls suggest what to do.

Thanks in advance

V.Kumar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 01:12 PM

    Hi Vivek,

    You cant fetch agent using rule in Mail step task. Before the mail step task write a backgroung method to fetch the agent store this value in a workflow container and pass this value to mail step as an Expression.

    Hope this solves your issue.

    Regards,

    Dheepak

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 01:35 PM

    Hi,

    Use macro coding in the subtype created by you in SWO1 transaction. If u r defining ur own business object then just create an object with out using subtype.When u r binding between the method to task and workflow containers be very careful that u pass agent in the "Container/Expression" of type character of width 14('US' concatenated to agent name) Give this in the expression of mail step .Hope this solves ur question

    Below is a useful link,

    http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4acef453d11d189430000e829fbbd/frameset.htm.

    Regards,

    Sivakaran.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 25, 2009 at 06:41 AM

    Hi,

    You can create a custom background task using BO SELFITEM & Method SENDTASKDESCRIPTION.

    Then you can use rule in this task. You can write the subject in the work item text part and the body in the description part of the task. This should do the job.

    Let me know if you have any queries.

    Regards,

    Raj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 25, 2009 at 06:47 AM

    when ever yuou create a mail step in the workflow then by defalut a custom task is created by using the BO SELFITEM and the method SENDTASKDESCRIPTION now if at all you want to use the rule in the mail step then then elements that are exported to the RULE those elements must need to be declared even in the task container too. so define the exported exlements of the rule even in the mail TASK and then try to execute this will work.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.