Issue with secondary method after execution

Morris, Eddie eddie.morris at sap.com
Fri Mar 2 07:07:38 EST 2012


Hi Srini,

You should not use the secondary method for editing. The man purpose of the secondary method is to display something so the user can make a more informed decision with the user decision step.

Put the DRAW.EDIT method in an activity step after the user decision step in the branch for case 1 and remove the secondary method.

Regards,
Eddie


-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Srinivas Reddy
Sent: 02 March 2012 10:09
To: SAP Workflow Users' Group
Subject: Issue with secondary method after execution

Hi Experts,

I am facing a strange issue with the secodary method, After execution
in the user decision step. The requirement is as follows.

The user will a  receive workitem with 2 buttons. 1) Proceed with
changes and 2) Cancel button. Note: Cancel button is SAP default.

Case 1) When the user executes the workitem in SBWP and decideds to
make changes, he will click on Proceed with changes button and  the
workflow wil show the relevant document on the CV02N screen. He can
make changes and save the document and the subsequent steps in the
workflow will trigger.
Case 2)  If the user is not willing to make any changes at the
moment.He will click on CANCEL button and the workitem should stay in
his inbox.

For the case 1 I have  assigned  EDIT method from the DRAW standard
business object as a secondary method choosing AFTER EXECUTION. This
case is working fine.

The problem is with the case 2. If the user clicks on Cancel button
still the CV02N screen is displaying and then if the user clicks on
back button the workitem is comming back to his inbox. I guess in both
the cases the EDIT method assigned as AFTER EXECUTION is triggering.
How to bypass the EDIT method triggering when the user click's on
Cancel button.

Kindly help me in fixing this issue.

Thanks and Regards
Srini..
SAP Technical Consultant
+919963307464
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug



More information about the SAP-WUG mailing list