You are on page 1of 3

How restrict to send email PO PDF when PO is canceled.

Workflow ATTRIBUTE:- "Change Order Header Cancel Flag Modified" CO_H_CANCEL_FLAG


will contain cancel flag value as 'Y' or 'N'.

Workflow ACTIVITY :- "Get Header Changes will set value" will set value as Y/N to attribute
CO_H_CANCEL_FLAG with cancel flag value of PO_HEADERS_ALL table.

1. In PO Approval workflow go to process 'Email PO PDF' then after activity “Generate PDF
in Email Process” break/delete the workflow line.

2. And insert New Process “Get Header Changes” (This will set value to variable
CO_H_CANCEL_FLAG).

3. Then insert standard function “Compare Text”. drag line from “Get Header Changes”
to “Compare Text” as Activity Performed.

4. Goto its node attribute of “Compare Text” and select


Attribute Name “test value” Type – ‘Item Attribute’, Value – ‘Change Order Header Cancel Flag
Modified’.
Attribute Name “Reference Value” Type – ‘Constant’, Value – ‘Y’.

5. Then Drag line to “END” from “Compare Text”, when result is Yes and drag line to “Wait for
Concurrent Program” when result is ‘No’

6. Upload workflow.

7. In this way we can restrict to send email PO PDF when PO is canceled.

You might also like