Skip to Content
avatar image
Former Member

Send mail for PO Approval - Workflow.

Hi All,

          I am a newbie in workflow and have got a requirement for sending mail to approve PO (Multiple Approval) when PO is created.  The mail content and subject for the mail would be fetched from SO10. I found from SWEL that the worflow triggered is WS20000075. I am planing to take a copy of the standard workflow WS20000075 (not sure if i need to create a new workflow) and delegate the business object BUS2012 and create the method inside it.  Now what i want to understand is

1. How do i get the list of approvers in the workflow.

2. how do i get the SO10 value in the subject of the mail?

Br,

Kalpesh.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 31, 2014 at 07:20 AM

    You can read the text maintained with SO10 for example with function READ_TEXT. There should be lot of examples of this if you just use search.

    Anyhow, I would question that why do you want to use text(s) maintained in SO10? Why don't you just use the standard email sending step and use the task editor? Is there a specific reason for this? Sure the standard email sending step has its limitations, but if you are sending just some simple plain text emails, there first choice should be the standard email step.

    Regards,

    Karri

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      You need to find out that how the approvers are found in the actual workflow itself (=what kind of agent determination it has). Then you can probably have the same logic in the method. Or if the approvers are available in the workflow container, you could just deliver them to the method through binding.

      To be honest, I am not sure how easy everything is going to be. If I remember correctly the workflow that you are talking about is for the PO release. And you will have sequential workflow instances. First approver A approves the PO, then another workflow instance starts for approver B, etc. I am not sure if it works like this, but worth to check. You might run into problems, if you send the email to all approvers at once - what if approver A rejects the PO => B got is mail already, etc.

      Regards,

      Karri

  • Dec 30, 2014 at 02:17 PM

    Hi Kalpesh,

    For this, the workflow WS20000075 will suitable for your requirement and you no need to change/ custom this.

    PO for multilevel --> it is based on the "Release Strategies", these configs will done by MM consultant, based on that, a PO will go for levels. To determine the agents the standard task TS20000166 will call the default rule.

    Contact your MM Consultant to maintain Release strategies.

    If you want to change the standard task text, you need to copy this task to a custom one and do your changes ( do not touch/change any other things, like default rules ).

    Best Regards,

    Murali Krishna.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Murali,

                    I believe i might have to copy the workflow WS20000075 and delegate BU2012  and create a method to get the Email subject from SO10 but then my doubt is whether i need to create one more method to send mail for multi level approval???

  • avatar image
    Former Member
    Jan 15, 2015 at 12:45 PM

    Thanks Karri and Murali for you valuable answers.

    Thanks & Regards,

    Kalpesh Mehta

    Add comment
    10|10000 characters needed characters exceeded