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 useful

Make 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>

Similar Messages

  • 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

  • SC  STATUS DISPLAYED  WRONGLY  AFTER  REJECTION

    Hi All,
       I have implemented the BADI BBP_WFL_APPROV_BADI for n-level SC approval WF ws14000133.Now my problem is when the approver rejects the Witem,the witem doesnt go back to the requestor for accepting the changes for the rejected Witem.
      Also the Witem (after rejecting teh complete SC)does *** back to the requestor..but with the status "Awaiting appproval" instead of "In your Inbox".
    Also when I see the Approval Preview for that SC,it shows that the SC is approved instead of rejected.
      With the note 790027 the status is getting updated but not the apporval preview.
    Has anybody across such problem?
    Regards,
    Disha.

    Hi,
    Refer to the OSS note 962488 and implement and refer to
    FM    :  SWD_WFD_REPLICATE_FROM_9999 
    which may help to solve your problem.
    Reg.,
    Sridhar.

  • 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 ?
    thnks

    Hi
    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

  • WS20000075 BUS2012 purchase order workflow doesnt handle rejection ??

    Hi,
    I need to understand how the std workflow template WS20000075 works for rejections and subsequent cancellations of rejections ?
    I have seen that there is nothing in there .......it just completes the workflow, thats it
    So if I have to arrange for any activities after rejection like notification to PO creator etc, I have to do it on my own - either change the present template or create new one for rejection ..... is it correct ?
    Rejection is important event and its hard to belive theres nothing in the std PO release workflow given by SAP for it........so  wanted to share experience......
    its very urgent for me so any kind of inputs are appreciated, thank you very much in advance.
    -Rita

    Hi   IA,
    I have the WS65400030 but there is undefined step in there. It has to be TS65400035. So I cant use this.
    Also when I traced back to check how I missed on this workflow template for BUS2012 I found that it doesnt show up in where used list done for BUS2012 in SWO1. coz thats how I had started with for the workflows of purchase order.
    So this is a problem in the system right ? my version is ECC 6.0
    thanks
    -r

  • How to suppress email notifications from auto-contribute workflow step

    Hi all,
    does anybody know how to suppress the notification email that is sent from the contribution step (auto-contribute) of a criteria workflow. Now the user doing the checkin gets an email about the start of a workflow.
    regards,
    Harold

    Harold,
    few comments:
    - what is the step type of your 3rd step? Is it Review or Review/Edit-New Revision?
    If just Review, what happens if you change it to Review/Edit Revision or Review/New Revision?
    - calling just the UPDATE_DOCINFO service does not explain neither sending the email, nor changing the current step. What might be an explanation is calling a CHECKIN service in a Review step (the engine might be confused and 'restart' the workflow as it would not know whether a new, or current revision should be updated)
    Well, actually there could be one reason: updating the security group
    From whatever reason, criteria workflows are designed in such a way that security group is the mandatory parameter. This means that changing the security group might actually mean that the content item is in a wrong workflow (I was just about to ask "why on earth do you call UPDATE_DOCINFO in a Java?' and this came to my mind - custom metadata might be updated directly in iDocScript via wfUpdateMetaData http://docs.oracle.com/cd/E23943_01/doc.1111/e10726/c06_core_ref.htm#i1067045 ). If that's the case, you might have to re-design the whole stuff.
    Can you share details what is updated?

  • ERM Role con't be deleted Automatically after rejecting the request in CUP

    Hi Experts,
    I am involving the GRC implimentation project and ERM component is succefully configured with post-installation activites and also configure the workflow(1-stage) in CUP for role approval.
    After initiating request, the request was sent to appropriate approver for approval process and approved/ Rejected by the approver.For first case(Request approved) everything is looks fine.
    but whenever the request is rejected (second case) by the approver, the role is still present in ERM and ABAP backend as well as.
    please suggest me, if the role is deleted in ABAP/ERM system after rejecting the request by Role Approver in CUP. or still present the role in systems.
    Regards,
    Arjuna.

    Hi Jes,
    We so have a feature called Password Self Service which is used by users to reset their password using CUP. Also if the password is locked by multiple failed attempt, CUP even activate this user.
    However in your case administrator will be locking the user or deactivating the password, so CUP will not allow users to unlock their users as it has been locked by administrator.
    So CUP can only unlock those users which were locked due to failed attempts etc.
    Regards,
    Shweta

  • 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 T

    Hi 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

  • Workflow step is not getting executed

    Hi all,
         I have designed a workflow in which I have a Decision step. after taking the a decision then it is taking so much time to execute the next step which is a background step.
    The waiting time is varying from time to time some times it is getting executed in 20 min, some time it is taking 1 hr no fixed time.
    I have used SAP_WAPI_DECISION_COMPLETE function module and I am passing space to the DO_COMMIT  becuse of this the workitem is getting completed but it  is not going to the next step. This fm is called under a button Approve of a WD application. after completeing the entire cycle of the WD application we are using the statement COMMIT WORK but still the execution is not going to the next step.
    In this regard , please, can any body share their views and ideas.
    And it is mandatory that only after the webdynpro application execution finishes they want to COMMIT the work.
    One more thing while searching forums I found like there are terms like DB COMMIT and simple COMMIT WORK what is the difference between them .
    Thanks&Regards
    Pavan

    Hello,
    I wasn't asking about the commit.
    In the first post you said:
    "The waiting time is varying from time to time some times it is getting executed in 20 min, some time it is taking 1 hr no fixed time."
    And in the latest post you said:
    "but no matter it is not moving to the next step"
    Which one is true?
    And anyway, commiting the result of a decision step is not, I think, something that can be delayed.
    regards
    Rick Bakker
    Hanabi Technology

  • Error in Workflow-step

    hi,
    i have mad a modification in my workflow, now it is stopped with the following error:
    Source (expression '&_WORKITEM.WORKITEMFATHER.WORKITEMID&') of binding assignment is not availabl
    Message no. SWF_BND_001101
    i have tried to put the workitem-id of the workitem-father to my step in the bindings. i don't understand
    why this error occurs.
    when i look to the container in workflow log  in my step the workitem-id mentioned above is filled with a value.
    any ideas ?
    best regards, Martin

    Hi,
    Ok, You said that you had to modify an existing workflow  and after modification it started giving the errors. So you said you have done the respective binding.
    So just try to refresh the buffer by executing the transaction SWU_OBUF and click SHIFT + F1.
    And try to re start the workflow.
    Regards
    Pavan
    Edited by: Pavan Bhamidipati on May 17, 2011 3:40 PM

  • Checking Payload of WorkFlow Step in BPM

    Hello All,
                    I was trying the scenario MessageSplit Using BPM
    I am stuck at send Step after receiver determination ,I want to know what is the payload (input output)
    after each workflow step in the BPM ,but i am unable to check .
    Is there any way to check this. Basically i want to know how to check the i/o and o/p of the each workflow step.
    Thanks in Advance
    Rajesh

    Hello Experts,
                            Could somebody guide me in this scenario as i am not able to carry on
    I want to see the payload for BPM workFlow steps ,first of all is this possible ,if yes i am at step
    container (list technical details) where the option payload is display but no data is found .
    If no how can we check or monitor the BPM workflow step by step. I hope some body might have faced this problem ,could some BPM experts throw light on this.
    Thanks in Advance
    Rajesh

  • Contract after rejection is not routed to contract owner

    Hi,
    I am facing a very strange issue in PCW for contract . After rejection the contract is not appearing in the UWL of the contract owner and when i go  and see in the worklfow log i see that its lying with WF-BATCH.
    I am usng the task 40008003 for accept/adjust task for rejection in the acceptance by the contact person section in /sapsrm/wf_process for my custom schema .
    It works for PO but surprisingly its not working for contract . I am not able to figure out anything from SLG1 either. I tried debugging with WF-BATCH but could not come to a conclusion. Please any suggestion.
    regards
    Anand
    Edited by: Santosh Chitturu on Sep 22, 2011 8:02 PM
    Edited by: Santosh Chitturu on Sep 22, 2011 8:03 PM

    Hi Santosh,
    I am facing the same issue in my contract workflow. Kindly help me with your resolution. Tried searching SAP notes but nothing is there.
    Thanks
    Shankar

  • Post installation steps after SAP BW system copy

    Hi!
    I am about to do post processsing steps after system copy of SAP BW system.
    1) One of the steps is to delete all entries from tables DBSTATHORA, DBSTAIHORA, DBSTATIORA,
    DBSTATTORA.
    Question: what is the way to do this?
    2) During the installation I received the error within import ABAP step.
    (IMP) INFO: import of D010TAB completed (4477754 rows) #20090505133631
    DbSl Trace: Error 12801 in exec_immediate() from oci_execute_stmt(), orpc=0
    DbSl Trace: ORA-12801 occurred when executing SQL stmt (parse error offset=0)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "D010TAB~0" ON "D010TAB" ( "MASTER", "TABNAME" ) TABLESPACE PSAPSR3700 STORAGE (INITIAL 423090176 NEXT 0000000640K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) NOLOGGING COMPUTE STATISTICS PARALLEL )
    DbSlExecute: rc = 99
    (SQL error 12801)
    error message returned by DbSl:
    ORA-12801: error signaled in parallel query server P000
    ORA-01659: unable to allocate MINEXTENTS beyond 34 in tablespace PSAPSR3700
    (DB) INFO: disconnected from DB
    As solution I changed the the following lines within D010TAB.TSK:
    from D010TAB~ 0 C err to D010TAB~0 C ign and
    from D010TAB1  C err to D010TAB1 C ign
    Question:
    how to create index manually after system copy?
    Thnak you very much!

    Jgen Pfeiffer wrote:>
    > Hi!
    >
    > I am about to do post processsing steps after system copy of SAP BW system.
    >
    > 1) One of the steps is to delete all entries from tables DBSTATHORA, DBSTAIHORA, DBSTATIORA,
    > DBSTATTORA.
    > Question: what is the way to do this?
    Simply run
    TRUNCATE TABLE <table_name>;
    for each of those tables.
    Make sure to either logon as SAP<SID> or provide the owner of the tables with the statement.
    > 2) During the installation I received the error within import ABAP step.
    > (IMP) INFO: import of D010TAB completed (4477754 rows) #20090505133631
    > DbSl Trace: Error 12801 in exec_immediate() from oci_execute_stmt(), orpc=0
    > DbSl Trace: ORA-12801 occurred when executing SQL stmt (parse error offset=0)
    > (DB) ERROR: DDL statement failed
    >  (CREATE UNIQUE INDEX "D010TAB~0" ON "D010TAB" ( "MASTER", "TABNAME" ) TABLESPACE PSAPSR3700 STORAGE (INITIAL 423090176 NEXT 0000000640K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) NOLOGGING COMPUTE STATISTICS PARALLEL )
    >  DbSlExecute: rc = 99
    >  (SQL error 12801)
    >  error message returned by DbSl:
    > ORA-12801: error signaled in parallel query server P000
    > ORA-01659: unable to allocate MINEXTENTS beyond 34 in tablespace PSAPSR3700
    > (DB) INFO: disconnected from DB
    >
    > As solution I changed the the following lines within D010TAB.TSK:
    > from D010TAB~ 0 C err to D010TAB~0 C ign and
    > from D010TAB1  C err to D010TAB1 C ign
    >
    > Question:
    > how to create index manually after system copy?
    The problem here was the large INITIAL size clause.
    If there is enough freespace at all in the tablespace this should work:
    CREATE UNIQUE INDEX "D010TAB~0" ON "D010TAB" ( "MASTER", "TABNAME" ) TABLESPACE PSAPSR3700 NOLOGGING COMPUTE STATISTICS PARALLEL;
    If I'm not wrong, the second index is just vice versa:
    CREATE UNIQUE INDEX "D010TAB~1" ON "D010TAB" (  "TABNAME", "MASTER" ) TABLESPACE PSAPSR3700 NOLOGGING COMPUTE STATISTICS PARALLEL;
    In general it is really not a good idea to skip the creation of unique indexes...
    regards,
    Lars

  • SRM 7.0 'Add Approver' button disabled after rejection

    Hi Experts,
    I'm working on SRM 7.0(BRF) RFx workflow. I have configured the process level schema and the acceptance by contact person in customizing. When any of the approver rejects the document, it comes back to the creator which is right. But i see the 'Add Approver' button as disabled. But while creating a new document it is showing the 'Add Approver' button, only after rejection, the creator is seeing the button as disabled. Is it the standard behaviour in SRM7.0 ?
    Can you guys share your thoughts on this..
    Thanks
    Ram

    Hi,
    Please check the note 1378094.
    https://service.sap.com/sap/support/notes/1378094
    Regards,
    Masa

  • 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

Maybe you are looking for

  • WDRuntimeException : Failed to create delegate for component

    Hi Friends, I encountered the following error while deploying the application to local DC. Actually, i'm trying to create a new view 'HCFileUploadView' in the existing application. An error has occurred: "Failed to process the request." Please contac

  • Have to use ctrl click to open pdf's

    I want to open pdf documents without having to use ctrl click. What is the fix to use just a mouse click? Thanks...

  • Regarding Auditing

    Hi All, As per the Manual check list for database upgrade it is saying that AUD$ tables should have SYSTEM as their default Tablespace Ensure that the aud$ is in the system tablespace when auditing is enabled. SQL> select tablespace_name from dba_tab

  • I forgot to create folders in my external HD before relocating my masters.

    I forgot to create folders in my external HD before relocating my masters. I think I made a stupid mistake : I just clicked on aperture library and relocated the masters . Now my thousands of images are located on my external HD but they are not orga

  • TS4204 merge yahoo calendar with iphone calendar

    How do I merge my yahoo account calendar with the calendar on my iphone?