Decision Step Outcome

Hi Folks,
We are using webdynpro application to approve the workitem in UWL. This is a standard decision step and we have made a custom screen in webdynpro with approve and reject buttons Once approver clicks on approve or reject button, we are populating container fields  _WI_Result  and _Result as '0001' for approved and '0002' for rejected.
The issue that  we are facing is , for some scenarions, even though the value in container is populated as '0002', but in workflow log it is showing decision step as approved. As a result of this, despite rejection , worklow is going to next step approval. Please provide your inputs how to tackle this.
Please note we are facing this issue for some scenarios only, for rest of instances, the decision is populated correctly for both approved and rejected workitems.
Regards,
Sangvir

We are using FM  'SWW_WI_CONTAINER_MODIFY' to update the container field for above mentioned values. Could that be issue that it is not updating values in database container correctlt.
Would using sap_wapi_write_container be a better approach here?

Similar Messages

  • Decision Step outcomes in English language only

    Hi,
    My issue is little bit different, In my workflow template (WF) i have one user Decision step and currently outcomes are coming in Logon language. but my requirement is to display in English language only. I am working on 4.6c version. When i try to maintain translation by SWDD->extras->translation->translation.this is in display mode and i am not able to change. is something with authorizations??.
    Please help me thanks a lot in advance,
    Mohan

    I think you can directly change the outcome from table SWD_TEXT.
    I think you just click in stead of double clicking which will open the particular step and follow the path Extras->Translation->translation.
    Thanks
    Arghadip

  • Set Decision Step outcomes Runtime .

    Hi Friends ,
    I have one decision Step in my Workflow,  i want to set the outcomes of the decision in runtime . it may be two or more than two outcomes , how to do it in runtime,  Is there any Function module available .
    Pls give suggestion .
    Thanks and Regards
    Gokula Krishnan R.

    Hi ,
    My problem is not executing the Decision Step in workflow . you mentioned
    0001 for Approve,
    0002 for Reject,
    0003 for Review,
    This is the outcomes, how to create this in runtime.
    I am Looking for function module or Logic to Create this outcomes through Progam..
    because i have number of outcomes in table , i have to get those outcomes and i want to set it in Existing Decision step in workflow .

  • Looping a single branch in User Decision Step

    Hi All,
    Can anyone tell me is looping possible for a single branch in user decision step in a workflow?
    If yes, How?
    I want like to loop the step cancel and keep workitem inbox.
    Whenever the user clicks cancel and keep workitem in inbox in a user decision and again executes the WI i would like the workflow to start execution from the step just above the user decision step, i.e; Display PR.
    This is my requirement. Tell me how can i implement it?
    Thanks,
    Raj

    Hi,
    instead of doing so, you could try to enter that method as "secondary method" or "before method" within the tab-strip "Methods".
    If you used your own coding for a decision, you could enable the exception 8015 of the method's result, which is the cancel-button. If you did so, you can enable that outcome in the workflow-activity's definition.
    Best wishes,
    Florin

  • Calling Transaction through User Decision step in workflow

    Hi all,
    Pls help me calling a transaction through User Decision step in workflow. I have attached two buttons to my User decision and the one of the outcomes to a task where I am calling the transaction through a method of BOR. But the problem is I am unable to see the transaction when I press the button on my User Decision at test run.
    Can you ppl let me know how can I achieve this?
    Pls reply ASAP...
    Thanks
    Sangharsh

    Hello Sangharsh ,
    Please Check the paramater of of the method which you define.
    e.g. I define CALL_TCODE_CJ03 method
          which have the parameters FLAG,ProjectDefinition,WBSElement2,User
          with export, import checkbox.            
    Pass the paratmeres in programs
    e.g.
    BEGIN_METHOD CALL_TCODE_CJ03 CHANGING CONTAINER.                      
    DATA:                                                          
          FLAG(1),                                                        
          PROJECTDEFINITION TYPE PROJ-PSPID,                              
          WBSELEMENT2 TYPE PRPS-POSID,                                    
          USER TYPE USR21-BNAME.                                                                               
    SWC_GET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_GET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_GET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.                
      SWC_GET_ELEMENT CONTAINER 'User' USER.                                                                               
    GET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      GET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                                                                               
    SET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      SET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                             
      CALL TRANSACTION 'CJ03' AND SKIP FIRST SCREEN.                                                                               
    SWC_SET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_SET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_SET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.    SWC_SET_ELEMENT CONTAINER 'User' USER. 
    END_METHOD.
    I hope it will help you.
    ***Assigning points is the way to say thanks in SDN.***
    Minaxi Shah

  • User Decision step in UWL

    Hi,
    I have a 3 user decision steps in my Customised workflow which uses the task TS00008267. Each task has different decison text and outcome. When this is executed through UWl the outcome does not appear as they are in SBWP.
    Does this need and Portal Configuration?
    Thanks & Regards

    Hi,
    There are two thing you need to do.
    First, you need to configure the SWFVISU.
    Run Tcode SWFVISU.
    here, select "Task Visualization' and maintain your standard task ( TS ) with ABAP web dynpro option.
    Now selct your entry and click on Visualization Parameters as mentopn below.
    APPLICATION ( WD application name )
    DYNPARAM
    NAMESPACE
    SYSTEM_ALIAS
    Second, ask Portal team to chagne the XML code for the above standard task and application ( i.e. WD appilcation which will be launced on clicking the task ).
    From the next run of the workflow, WD applcitoon will be lauched from the protal.
    for the old workitem this will not work.
    Note : If u do not configure SWFVISU then WD application will not lauch but user will get SAP gui screen for processing it.
    xlm code must be changed corresponding task for both case.
    Thanks and ragards,
    SNJY

  • Probelm with decision step type

    Hi,
    I am using the decision step type to display release and reject the options to the approver . i am using the latest end tab to escalate( forward) the workitem to next available approver .( deadline monitoring 30 min) .
    workitem is generating in the 2nd available approver inbox after 30 min  . but the same workitem is still available in the 1st approver  inbox ( of course it display the message the following deadline was missed and latest end reached) .
    But even after the 2nd approver gets the workitem in his inbox  ,the  1st approver is able to execute the same workitem by ignoring the message .
    Please can any one explain me what is reason behind this.
    Please can any one helping me how can i delete the workitem in the 1st approver  inbox once the workitem is created in the 2nd approver inbox  .

    Just follow the steps
    1)You can use Latest End Tab in a Step which is attached to a task. Use Modelled deadline. Using this another branch is created from the step.
    2)Activate the Outcome Processing obsolete for the Step that needs to be sent to the Manager.
    3) Now put a process control in the branch that has been created due to modelled deadline. Use "Set Workitem to Obsolete" in the Function and provide the Step number in which the deadline step is incorporated.
    4) Now create another step at the branch Processing obsolete of the step that has the deadline and copy the above step with deadline removing the deadline part. This step is only for 2nd approver.
    <b>Reward points if useful</b>
    Thanks
    Arghadip

  • Decision step to UWL

    Hi All,
    I have created a Z workflow in SRM and all the decision workitems for this workflow are going to SRM portal. I have kept only one outcome in that decision step called Approve.
    When I am opening this wi on Portal I can not see Approve button. There are few standard buttons are appearing.
    I suspect that there are some Portal config required to achieve this, If yes then please advise.
    Thanks
    Devraj

    Hi,
    You might want to ask this from SRM workflow forum.
    Regards,
    Karri

  • Can we display custom error message in user decision step screen.

    Hi,
    My requirement is to display error message when approver selects reject button in user decision step.
    based on some condition i need to display error message in user decision screen when approver tries to
    reject .
    Please help
    Thanks,
    Phani

    Hi ibrahim,
    Thanks for your Replay.
    steps
    1. cretae global class with interface  IF_SWF_IFS_WORKITEM_EXIT.
    2. cretae Event with importing parameter.
    where i need to call EVENT_RAISED method ,do inned to call that method in
    IF_SWF_IFS_WORKITEM_EXIT ?
    how  SWRCO_EVENT_AFTER_EXECUTION value is passed to method EVENT_RAISED ?
    Thanks,
    phani

  • Decision Step In Work flow

    Hi Workflower's
    Thanks a lot for all your reply!
    I'm having one problem in Decision step when work item is generated and placed under SAP inbox while user select particular work item then decision option "Choose one of the following alternatives" Approve / Reject / Cancel need to be displayed under the same screen in down side but it's going to next screen and showing the Approve / Reject / Cancel.
    I should display these decision in the SBWP screen at downside instead of going through double clik and showing that
    Whether it's possible if please provide me details how to solve.

    Hi,
    Do you mean you want to show in the Reading pane of SBWP rather than double clicking the workitem in SBWP.
    Its not a mail... it will be a work item so you have to execute the work item.. and its a must. thats a difference between work item and a text mail
    Hope this would help you.
    Good luck
    Narin

  • Container variables in User decision Step in BPM

    Hello,
    I am using User decision Step in BPM.
    When i use only text in "Title for Display" the BPM is activated successfully and Status in SXI_CACHE also shows 0.
    If I use container variables in "Title for Display" the BPM is activated successfully but status in SXI_CACHE shows 99.
    It shows the below error
    "Problem updating an integration process with object ID 073AF2C620F43E839B2903344DEE29BB. Symbol 'CE/KO' expected at position 1 in expression ''
    Please suggest.
    Thanks,
    Shabari

    Hi Shabari, did you follow the steps for declaration of variables as in [SAP help for user decisions|http://help.sap.com/saphelp_nwpi71/helpdata/en/42/c2a19fb4511d65e10000000a1553f6/content.htm]? How did you define your variable?
    Maybe discussion [in this thread|BPM activation Error in SXI_cache; can help, it is unanswered though.
    Regards, Martin

  • Decision step with method before workitem execution

    I have a decision step, which uses method before workitem execute uses BO Bus2094 - 'Display' method.
    When an agent receives a workitem, try to execute the workitem 'Getting an information message 'Error when starting submethod'.
    When i see the information of the error -
    "At least one submethod could not be processed.
    See the technical Workflow log to determine the error cause."
    When i check technical log of workitem, 2 steps are in error mode.
    1.  Dialog work item executed - Error when starting submethod
    2. EXECUTE_METHODS  - System error in asynchronous method start
    This is happening in Quality system, not in DEV system.
    Any inputs to resolve this.

    Hi,
    @Sivagami: I wonder, how a container element e.g. BUS2094 that was passed to a copy of the DECISION task is automatically executed just before the decision dialog? Good stuff, if it works like this, I'll try this at a later time.
    @Indira: Depending on the Release and such things I have expirienced several smaller bugs regarding the decision steps, especially when extending the data flow (from/to workitem), using the in-place-decision Workitem exit. So maybe you're already doing everything right, but just the inbox doesn't works as designed.
    To work around this problem, you could enter the object methods as a secondary method, which then will display the Sales document in a separate window,
    or you follow the proposal of Sivagami. If the Sales document doesn't seem to appear, you could enforce the display, by globally substitute the business object DECISION to one of your own, re-define the object's method Process that read the business object fromt the work item container and executes it's display method, which is basically the same result you'd like to have.
    Best wishes,
       Florin

  • Terminating Event with Decision Step

    Hi,
    In our purchase requisition approval workflow, I need to have a decision step in which to prompt approver to either approve the req. or reject the requisition.  In this decision step, I need for it to have terminating events for "SIGNIFICANTLYCHANGED", "RELEASE", "REJECT" and "RESET".
    First, I copy the generic decision task 8267 to my my own custom decision task.  Then I added a BUS2009 in the container, releasecode and other needed elements.  In this custom decision task, I was able to add these terminating events that has been defined in the BUS2009.  I was able to setup binding, except the one binding
    Terminating Event  ->   Task
    &_EVT_OBJECT&      ->   &_WI_OBJECT_ID&
    Since the &_EVT_OBJECT& for the terminating event is BUS2009.  And the custom decision task &_WI_OBJECT_ID& is DECISION business object. They're incompatable business object.  So I replaced that binding with
    Terminating Event     ->  Task
    &_EVT_OBJECT&    ->   &PURCHASE_REQ&
    After all the configuration has been setup.  I created a new purchase requisition.  Upon the RELEASESTEPCREATED event, it create a custom decision workitem in my agent's inbox.  When I triggered the "RELEASE" event, it is however not terminating my custom decision workitem.  The workitem still sits in the agent's inbox waiting to be execute.
    Is it possible to setup terminating events for decision step?  Any kind of suggestions or inputs would be greatly appreciated.
    Thank you.
    Jennifer Tran
    System Analyst

    I will suggest you to create a fork with 2 parallel branch and 1 necessary branch. Put the approval step in 1 branch and the wait for Release step event in another branch in this way you can suffice your requirment.
    Thanks
    Arghadip

  • How can i include  'Objects and Attachments' in the Decision Step ?

    i found some relevant threads for this particular topic but not able to solve my problem , so i thought of openeing new thread.
    My requirement is to fill the 'Objects and Attachments ' in Decision step with a  display method of purchase order number.
    From SAP Inbox , when i click on Objects and Attachments , it should navigate to Display method of my BOR object with the Purchase order number.

    Hi Sanju , i did exact the same way  ,
    &_EVT_OBJECT& --> &BUS2012&  ( This is done at the start of workflow )
    Now go to you task of the user decesion and make the following binding....
    &BUS2012& --->&_ATTACH_OBJECTS&  in the biding step between decession task and workflow container.
    I am getting this error message paul,
    The Object Types '[BO.ZIPARI]'  (source) and  '[BO.SOFM]' (target) are not compatible.
    i am trying to create a method in BOR and passing back the attachment back to task container but not succeeded yet .
    My requirement is , from SAP inbox before taking decision , approver wants to review for that i need to link the PO number clickble at 'Objects and Attachments'.

  • Display descirption in BO link in Decision step instead of keyfields

    Hi All,
    I have created a workflow in Records management which is integrated with SRM for the approval of documents. I have a user decision step in my workflow which has many documents displayed as links during approval. For this i copied the std decision task and created my own task and added the business object 'DOCUMENT' ( multi line element). Now it is displaying the documents correctly. but it shows the link as 'BO: key fields' . In this case the key fields are combination of document class and document guid.
    Now the requirement is to display the description of the document instead of keyfields. The description will be available as one of the attribute for the document BO.
    Can anyone help on this requirement?
    Thanks,
    Sivagami R

    Hi,
    Assign "Description as your default attribute in your BO basic data...
    this will work...
    Regards
    Gautam

Maybe you are looking for

  • Javascript with window.location.href no longer working in Content Editor in Sharepoint 2010 where users have IE8

    I have recently found that when using a Sharepoint 2010 Content Editor web part to house some Javascript that the window.location.href (or window.location) is not working when the end users have IE8 installed on their PC's.  We have confirmed that th

  • EBRS Upload

    Hi I have configured MT940 format for EBRS (Electronic Bank Reconciliation Statement),  when i upload text file, it is not creating a batch input session,   Can a text file be uploaed?. Or should it be only in MSG format for the batch input to be cre

  • RTF output on web

    Hello, I am using report10g and my AS is windows 2003. I need to display my report from form button as RTF format on web. I used web.show_document('http://report_server?userid=user/pwd@db&report=myreport.rdf&destype=cache&desformat=rtf&mimetype=appli

  • No authorization to add transaction to role menu

    MODS: IF YOU ARE GOING TO DELETE MY POSTS..AT LEAST EMAIL ME TO LET ME KNOW WHY YOU ARE DELETING THEM SO I CAN RE-WORD IT TO ACCOMMODATE YOUR ISSUE. THIS IS THE THIRD TIME YOU HAVE DELETED ONE OF MY POSTS WITH NO EXPLANATION AND IF THIS FORUM ISNT FO

  • Error in context binding for text property

    Hello experts, I receive this error in my WD4A application: The following error text was processed in the system XXX : Context binding for property TEXT of "T_MONTHTO" cannot be resolved: Node MAINVIEW.1.TEMPVAL2 does not contain any elements The err