cancel
Showing results for 
Search instead for 
Did you mean: 

TRIGGER OF WORKFLOW FROM OPERATION STATUS

Former Member
0 Kudos

Hi,

In MO,Is it possible to trigger workflow based on the status of the operation?

Regards

KRISHNAN

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

THANKS

Former Member
0 Kudos

Dear PETE,

Yes.I Got it and works fine.But the requirement has extended little bit.

For example if we have 10 operations in order and in that 5th and 10th operation are considered as milestone operation(I will change the cutomer when I complete 5th operation and DP90 run will consider all the time spent for 5, 4,3,2&1 operation).

As per the logic in exit it triggers mail for DP90 run, when 5th operation is final confirmed.but peoples involved in the project will keep on work for 6th,7th operation and confirm their timings.They dont bother about DP90 run.

If the respective head runs DP90 after some time wrt mail receipt(eg delay of 2 days), the DP90 will consider for all the timespent in oper 7,6,5,4,3,2,1.But the requirement is it should consider for 5,4,3,2,1,bcoz the aggreement was made with the customer as I will charge when complete 5th(5,4,3,2,1) and 10th operation(10,9,8,7,6).

your views to handle this scenario?

regards

KRISHNAN

peter_atkin
Active Contributor
0 Kudos

KRISHNAN,

Excellent news...

The next bit is a little more tricky..

How would DP90 "know" to only consider these operations???

Once you work this out, you will then need to utilise the [RRB user-exits|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf] (TCode SMOD and search for AD01*) to filter-out the un-necessary operations.

PeteA

Former Member
0 Kudos

Thank you very much Mr Pete and really you helped me lot in my issues.

Iam having a issue in your solution. I need to send the Mail to sap inbox only when particular operation is confirmed.How can I differentiate the milestone operation with other operations in the order.If I able to differentiate then as you said in the user exit I shall include the logic as when this operation is received CNF status,send mail.

Regards

KRISHNAN

peter_atkin
Active Contributor
0 Kudos

KRISHNAN,

You could use a different operation control key (OCK) to denote your milestone operation.

User-exit CONFPM05 could then determine this OCK and send an email when the user sets the final confirmation flag.

You do not need to use workflow for this. Indeed, I would recommend you don't since workflow is a specialised area. There are standard function modules to send a mail to your SAP Inbox (and no, I don't know what they are..). Try asking in the ABAP- General forum.

PeteA

Former Member
0 Kudos

Thanks Mr Pete.

I need to trigger a mail to the person concerned whenever the particular operation(like MILESTONE concept) in the the MO is reached CNF status.(As you know in PS,there is a option to build workflow for a particular activity reaches CNF status).

The reason behind this requirement is based on mail,the concern person will run DP90 to create Billing Request (since the agreement was made with the customer as you can bill for the actuals at every stages of services planned).

I hope you can able to give me a best option to handle this scenario.

Regards

KRISHNAN

peter_atkin
Active Contributor
0 Kudos

KRISHNAN,

In that case you need to do it from the confirmation document (IW41) when the final confirmation flag is checked. This could be done via user-exit CONFPM05 (Customer specific enhancements when saving).

Are you sending a mail to someones SAP inbox, or an external email?

PeteA

peter_atkin
Active Contributor
0 Kudos

KRISHNAN,

I'm not sure about the standard workflow triggers in an order. My guess is that they are all header related statuses.. has anyone got a definitive list????

But it can be done via development, probably using IWO10009 (at save event).

What are you trying to do?

PeteA