Workflow Step to Reject or Approve based on a page property
I have extended the MyProcess.java workflow process from the CQ5.5 training class, so that it sets the approve property to true or false, depending if the page contains any expired assets or not.
So the next step is to publish the page if the approve page property is set to true, and if the approve property is set to true, make the workflow go back to the initial step.
Can this be done with the "Or Split" step with 2 branches.
What would the ecm script code to get the page property approved and test if it's set to true or false?
Thanks
Tyrone
Hi Kevin,
Not a problem. Thanks for all the replies.
I knew that method (IF_HRASR00GEN_SERVICE~GET_SPECIAL_FIELDS) will be called when the REJECT button is hit.
But this method is originally empty with no code, I am wondering whether I can add some code over here like below:
CALL METHOD me->IF_HRASR00GEN_SERVICE~DO_OPERATIONS
EXPORTING
special_fields = special_fields
SERVICE_OPERATIONS = SERVICE_OPERATIONS
no_auth_check = no_auth_check
message_handler = message_handler
CHANGING
help_datasets = relevant_help_datasets
SERVICE_DATASETS = relevant_service_datasets.
I am not sure how to use the "Call method me->",
I am still figuring out what values to be passed into the DO_OPERATION method. When the code runs into that method, I wish that I can use "If formscenario_stage = Approve" and "processing_status = reject" then_ do the comment field validation in the method.
Thanks
Regards,
Justin
Similar Messages
-
Wrong workflow step after rejection
we have a workitem which is sent to the Approver for approving the travel expense. (PRAP).in SAPP T&E module (travel and expense)
When the Approver executes the workitem, he has an option to either approve or reject the travel expense.
Approval
After approval of travel expenses, the approver can either be set as complete or cancel. However if the approver cancels it, although it remains in inbox the approver cannot process it further since the Expense has already been approved.
This is fine as per our scenario
Rejection
The issue in rejection is that, once the approver rejects it in PRAP and the task is set as compelte, the workflow triggers an email that the expense has been approved whereas in reality the approver has rejected it. Currently the workflow is only working if the approver cancels the workitem after rejecting it. The workitem also no longer remains in the inbox. We have checked the Branching condition and it is defined properly but nevertheless it seems to only work when the work item is cancelled in rejection scenario
Any pointers on how this issue can be resolved will be usefulMake use of the attributes that are provided in BUS2089 Business object.Make use of these 2 Attributes in your workflow Approval status,Settlement status. You need to check what value it becomes when you reject it and accordingly filter it.
<b>
Reward points if useful and close thread if resolved</b> -
Calling the Adobe form in a workflow step for Approval
Hi All,
We are creating a PCR scenario using Adobe forms for "Employee seperation". This form will require 7 subsequent approvals from various agents which is to be handled using a workflow.
I had gone through the ISR cookbook and managed to create a scenario. I have also assigned it to a PDF form and a dummy workflow. Now from my PCR iview i am able to submit the form for my scenario which also triggers the dummy workflow(through the BUS7051-CREATED event).
Right now this dummy workflow just sends a mail(by sendmail step) to the first approver. Now i want this workflow to send a workitem to the first approver for approval of this form which will have to appear in his UWL. When the approver double clicks on the workitem in UWL he should be able to view the form along with Approve/Reject/Cancel buttons. I am not aware how to do this. My questions are,
<b>Is this handled by a decision step or an activity?
If it is an activity step which Task/Business object method is used to handle this?
If it is a decision step how do we make the Adobe form also to be displayed along with approve/Reject buttons?</b>
We are using ECC5.0 and EP6.0.
Thanks in advance for any help.
Prasath NHi Rajasekhar,
The UWL issue has been resolved now and i am receiving the workitems in my UWL. But i am getting the following error when i am trying to execute the workitem from my UWL.
<b>Service cannot be reached
What has happened?
URL http://xxxxxxxx.xxxx.xxx.xxx:8000/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrFormApprove call was terminated because the corresponding service is not available.
Note
The termination occurred in system xxx with error code 404 and for the reason Not found.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:DALSPHSB_HSB_37-v:0-s:404-r:Notfound
HTTP 404 - Not found
Your SAP Internet Communication Framework Team
</b>
I have done the following configuration settings in SWFVISU transaction :
Task : TS500000075
Visualization Type : WebDynpro Java
visualization parameter: Application
visualization Value: IsrFormApprove
visualization parameter: Package
visualization Value: sap.com/pcui_gp~isr
Is there anything else that i have missed out in the configuration?
Message was edited by:
prasath natesan
Message was edited by:
prasath natesan -
Need help setting up approval workflow step for PO and Shopping Cart
Hello,
We are on SRM 7.0 and setup BRF and process level config for automatic approvals of SCs and POs using task 40007988. We would now like to test approval based workflow (create work item to route to approver) using a process level step.
1) Is there a standard task that can be used to enter in the process level step? Or should we create a new standard task? If a new task is required, what import/export parameters should be defined?
2) How do we setup agent for this step? Are the entries u201CResp Resolveru201D and u201CResp Resolver Parameteru201D in process level config required? The BADI BD_WF_RESP_RESOLVER already has some SAP delivered implementations? Should I create a new implementation here?
Thanks,
ZackHi,
Welcome to new Process-Controlled Workflow implementation in SRM 70.
You can find the task list in the transaction PFTC. Task Group 40000003.
Please activate the BC Sets in transaction SCPR20. Find the BC Sets /sapsrm/*.
Regards,
Masa -
Approve workflow step via outlook
Good morning!
I have a problem with SAP Business Workflow. I want to prepare a workflow what have steps what can be approved from outlook/e-mail. How can I achieve this? I need just only one approve and one reject button. Can I send out to a mailbox a similar message like Business Workplace/Workflow messages?
I have red about MAPI interface (but nothing special detail), extended notification setup etc. I am a newbie in SAP Workflow so I'd like to ask you tell me in detailed how to set up the system.
Many thanks in advance
PeterHi,
You can achieve this through Extended Notification..
Check this links:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d5/581ee8d56f1247bf34cfcd66d16d81/content.htm
How to get Work items @ your Outlook Inbox
One more thing!!!
Please check in forum before posting!
Regards
SM Nizamudeen -
How to troubleshoot approval workflow of a rejected purchase order
Hi,
We are working in oracle applications 11i.
I have a purchase order with status rejected that has hanged up in the system. The user rejected PO and the document has not been transferred to the PO buyer. From the application forms -> Forward documents window, I can see that neither the user who rejected or the buyer has the document.
From System Administrator responsibility I can see that the workflow administrator can modify a PO that is only IN PROCESS,
what shall I do?please check :
http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/how-to-troubleshoot-approval-workflow-of-a-rejected-purchase-order-4211332 -
Ucm: displaying some fields on a profile based on a workflow step
Hi,
Is it possible to hide/display some standard/custom metadata fields on a profile based on a workflow step/
e.g. I am having a workflow with 3 steps
1. manager step
2. specialist step
3. reviewer step
On the 3 step, a reviewer can decide calling an adhoc workflow if he updates some custom metadata fields(adhoc rev1, adhoc rev2). My requirement: Is it possible to show the custom metadata fields only to reviewer on updating the content item. It should not get displayed while checkin the content item or any other step users update the content item.
thanksI had a similar question some times ago - see this thread: Value of dpAction
Yes, you can do it, but you will have to define rule activation conditions properly - using dpAction and dWfCurrentStepID. -
Calling Adobe form in a Workflow Step for approval
Hello,
There are some ISR forms and workflows in MSS which use Workflow tasks configured as JavaWebDynpro to call Adobe form from the Workflow Step.
Is it possible to achieve the same using ABAP Web Dynpro and creating a new task and configuring to use it as an ABAP Web Dynpro (which can in turn call the Adobe form from the WD)?
Thanks.Hi Anjali,
1)You can develop an<b> RFC</b> that collects required basic data from R/3 and display them in <i>ABAP WD - Adobe Form</i>. The End user can change/fill the remaining contents of the Adobe Form and submits it for approval. The <b>RFC</b> again handles the triggering part of the <b>Workflow</b> and passes the form data to the workflow containers.And for approvals, you can use the <i><b>SWFVISU</b></i> to call a <b>ABAP WD</b> application from Workflow. And in turn the control again goes back to RFC and so...
2)I dont have much idea in ECC 60 if there is a similar ABAP WD application like Standard Java WD <b>IsrFormApprove</b>.
3)No idea.
Regards,
<i><b>Raja Sekhar</b></i> -
Workflow step approval by group
Hi Experts!
I have a SAP BI workflow. I have a step when I need approval from each member of a group. How can I achieve that the workflow doesn't step forward before the approval of each of the members.
Thanks in advance
Peteras
-
Workflow step approval via e-mail
Hi Experts,
I have a question related SAP BI workflow,
Is there any possibility to approve a workflow step via e-mail?
I mean I have a specific step what needs approval, can I prepare this approval step via e-mail? (not the built-in SAP mailbox)
Thank you in advance
PeterHi,
as far as I remember there was once a tool called MAPI or MAPI-Interface. The workflow guys used this to display workflow items in outlook. When you started the workitem in outlook the system did log you in and you could execute the workitem. Please consult the workflow guys for more details.
Regards Matthias -
Workflow step not executed...
Hi,
In my workflow requirement (for VA01), I want to record the status in a custom table as follows;
Approver id date time status
ABC Submitted for approval
ABC Approved (or) Rejected
So I have created a step called 'update custom status' after the step that sends email to the approver agent whose details stored in another custom table. Then I associated a task with this step which is bound to a custom class / method which has the logic to write the status to the custom table.
The issue is I do not see this step excuted. I checked in the log.
What can be wrong ?
Workflow steps are as follows;
1. Read the document's net value and store in a variable.
2. Read the custom table for agents list to whom the doc has to be sent for approval.
3. Send email for approval.
4. update custom status.
In the graphical view, I can see the update custom status step being called (Green link from previous step to this step) but after that no progress.
Am I missing passing some values ? Or is this step not giving any results ? Whats happening ?
Details on this update custom status step are as follows;
A custom task with terminating event set as _WORKITEM defined. (not synchronous)
A step of type activity defined and bound to the above task with binding done.. (what values should I pass to record the above needed details.)
In other words, how can I record the status in my custom table ?
thnksHi
I think its a background step. If yes, then make it foreground and debug and see what is the problem. Also check for short dumps and turn on the event trace and see the terminating event is getting triggered.
Vinoth -
Url link in User Decision workflow step
Hi Experts,
I had created a workflow for "Employee transfer" process using SWDD tcode.
I had a created a workflow step with type as "User Decision".I had included "Approve" & "Reject" decision options.
Now i want to include URL link along with "Approve" & "Reject" in the user decision workflow step (i.e) The manager needs to see the URL link along with "Approve" & "Reject" in his SAP workflow inbox.
Can anyone guide me...
Regards,
Krishna Balaji THi Krishna,
I understand your issue. I have faced a similar issue in my project.
Here is the solution!
To add link of a URL you need to have the binding with the BO of the transaction your are refering to. To do this, you need to bind your BO event (triggering event) to the workflow container and then the workflow container to task container. This BO value should flow from event-> workflow -> task container to get the link in the User Decision.
To do the binding you need to follow the following steps:
1. Go to t-code SWDD and open your workflow template.
2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8
3. Go to Start Events tab.
4. In the Object type enter your BO name (BO for the transaction you need to add as link), in Event of object enter the BO event. This would serve as the triggering event for your workflow.
5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement. This binding would ensure that the URL comes under 'objects and attachments' section.
6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Check the condition before saving (recommended).
6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.
7. Save the changes made and activate your workflow.
8. Do the binding between the workflow and the user decision step. Select automatic binding (recommended).
You can also refer to the similar thread that I had provided solution to. This would help you resolve the issue!
Re: URL of site has to be attached along with the mail
Hope this helps!
Regards,
Saumya -
Custom pages at each workflow step in UCM
How can I link custom pages (say JSP pages) with a workflow step in UCM? Suppose I've a workflow with a reviewer and approver and I want to get some field values at each step, how can I do so? Currently, the only option I get is Approve/Reject links at each step.
so suppose you create an HCST page (see Bex's book if any of you reading aren't sure what those are) and check it into the content server.
You will need to reference it from the workflow in queue page or the emails that get sent out to the step reviewers (or both).
I suspect that in addition to calling the page (via URL) you would also pass some information on the URL like the content ID of the item being reviewed in workflow, the workflow step, etc. That information will be available already on the page you are navigating from.
Then your hcst looks and functions like any other template page. It has the information from the URL params that it can use as inputs for additional queries or services that you're executing. There are some examples of basic HCSTs in the book and in the Dynamic Server Pages guide here:
http://download-west.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/developer/dynamic_server_pages_10en.pdf -
Workflow Configuration for 5-Level Approver
Dear Experts,
We are using and Extended Classic Scenario in which we have 5-Level approver of the Shopping cart. The below is the funcational logic which i need to configure.
Logic:
Find the Requestors manager by using the SLAPPROVER in the workflow container
Now run this logic for the SLAPPROVER such as.
Initially the SLAPPROVER = Requestors SLAPPROVER
IF the SLAPPROVER spending limit is greater or equal to the cart total
value THEN record SLAPPROVER as the final level approver and end approval chain (<b>How do i Record the SLAPPROVER as a final level</b>)
ELSE the SLAPPROVER spending limit is less then the cart total value
Then record SLAPPROVER as level N approver and set SLAPPROVER = to level N approvers SLAPPROVER
Now repeate the logic above until an approver is found with dollar limit greater or equal to cart total value.
The end result will be a chain of approvers with a max of 5 levels because the fifth level will contain a large dollar value such as 99999999 to be the last approver. This way if anything exceeds Jim Orrs level then it will be approved outside of the system and then documented and Jims level will approve it in the system.
Now the chain of approvers will exist. The first level will have to approve it before its goes to the next level. If a approver rejects the cart then no work items will be sent to the levels above. All levels must approve for the cart to be approved.
Eample:
User A orders a cart with value $1500
SLAPPROVER = Requestors SLAPPROVER = Manager A
Manager A spend limit (500) less than cart total (1500)
Record Manager A as level 1 approver
Find Manager As SLAPPROVER = Manager B
Set SLAPPROVER = Level 1 SLAPPROVER = Manager B
Manager B spend limit (1000) less than cart total (1500)
Record Manager B as level 2 approver
Find Manager Bs SLAPPROVER = Manager C
Set SLAPPROVER = Level 2 SLAPPROVER = Manager C
Manager C spend limit (9999) greater than cart total (1500)
Manager C is final approver in the approval chain is single level
The chain now exist:
Manager A -> Manager B -> Manager C
Can this be done through the configuration in the SWB_PROCURMENT transaction or i need to have any development.
If its the case of Development, Please advice me the flow in which i need to go about.
Thanks in Advance,
Mohit.Mohit
You could look to use the n-step dynamic spend limit approver workflow (WS14000109) to do this.
You could also implement badi BBP_WFL_APPROV_BADI for workflow WS14000133.
Have a look at the following link to see if this is what you are looking for.
http://help.sap.com/saphelp_srm50/helpdata/en/79/ca013a0c88bc7ce10000000a114084/frameset.htm
Regards
Keith -
User Decision step- Upon reject, auto-popup text for reason
In a user decision step, when the user clicks the reject button, open text for rejection reason within the workitem.
i have done the following
1) Create a new step
2) Create a task based on SOFM.CREATE
3) Binded WIOBJECT_ID => (append table) ADHOCOBJECTS
It works fine, when the user clicks the reject button a new work item with the reason for rejection lands in the user inbox, which when clicked brings up the doc.
I want to make it seamless for the user where as soon as the reject button is clicked, the document <b>should open right away</b> without a new work item in the inbox
Any help will be greatly appreciatedHi
If you are using the portal/UWL then search the blogs for a solution otherwise give this a try, in your step definition for the 2 steps, go to the Details tab and tick 'Advance with dialog', this will work if you execute from the business workplace.
Good Luck!
Ravi
Maybe you are looking for
-
Remove applemobiledevicehelper.exe and why apple doesn't play by the rules?
Hi all, I'm just wondering if somebody knows how to remove or rip out applemobiledevicehelper.exe. It's eating up resources and I don't need it since I don't have an Apple mobile device. On the point of playing by the rules, I'm wondering why Apple b
-
Why is panorama merged photo not saving correctly?
Why would my panorama merged photo show an exclamation point when saved? It showed the photo merged in the workspace but wouldn't save the picture.
-
I changed my email associated with my BB ID on my desktop, after upgrading to OS6 on my Curve 9930: NOW............ Playbook & Curve - "App World is having difficulty connecting to App World Server. Verify Network Connections." Deskptop (Blackberry I
-
Problem opening Tiger burnt DVD-R in Leopard
Dear Community, I have recently upgraded from Tiger to Leopard (10.5.6) on a white MacBook and I'm having trouble with the DVD-R's I've burnt in Tiger. When I insert the DVD-R, the SuperDrive spins round for a bit then stops. No DVD icon appears on t
-
Upload data problem with HUAWEI E173 t mobile broadband and Mountain Lion
I upgraded to Mountain Lion and updated my T Mobile Broadband software. It successfully connects to the internet. But within minutes I had exceeded my fair usage policy having browsed five websites! In T-mobile Internet Manager the Statistics shows h