Decision Task in Workflow

I have copied the generic Decision task TS00008267 and used it in my workflow .
In my workflow i need only two buttons " accept " and reject" ...I defined these two . when the work item appears in the Inbox it has one more button " cancel and keep in inbox" which i never defined and i want to remove it ...
Is there any way to achive this .
Thanks

Hi,
you can use a custom program for the user decision, this will solve your problem.
However, the cancel workitem and keep in inbox is a sap standard workflow behaviour.
What is the worst thing that can happen if you let this be?
It's far better and easier in the future to maintain the flow if you stick as much to the standard as is possible.
Kind regards, Rob Dielemans

Similar Messages

  • Remove optinos in user decision task dinamically

    Hi all,
    I have an user decision task wich have several options. I want to remove (or deactivate) some of these options dinamically or under some conditions...
    Do you know how can i do it?
    May be it's possible to do with a program exit but i don't find any method in the class for do that.
    Thanks in advance.

    Hi,
    Finally, I had to do it. I put the steps in case anyone is interested:
    - Create a Decision Task in workflow builder. Replace the Task used in Control tab by a custom one. You need to create a copy of the standard task 00008267. In my case I've created the task 99000001.
    - The FM to get the options and texts is SWU_GET_DECISION_TEXT_TITLE. We need to create an enhancement point at the end of this FM. I've created a method in a custom class to embed all my code:
    TRY.
      CALL METHOD zcl_im_wf_dec_task=>zz_mod_decision_task
        EXPORTING
          wiid             = wiid
        changing
          ct_decision_text = decision_text[].
    CATCH cx_root.
    ENDTRY.
    - This method has the following parameters:
    WIID                     TYPE SWW_WIID
    CT_DECISION_TEXT     TYPE ANY TABLE
    With the following code you can change the description of the options you want or delete some options dinamically:
    DATA: l_wi_handle  TYPE REF TO if_swf_run_wim_internal,
          lo_wi_dialog TYPE REF TO cl_swf_run_wim_dialog,
          lo_container TYPE REF TO if_swf_cnt_container,
          ls_wi_head   TYPE sww_wihead,
          lv_key       TYPE sww_wi2obj-instid,
          lv_bstyp     TYPE ebstyp.
    FIELD-SYMBOLS: <ls> TYPE ANY.
    * Obtain the header:
    TRY.
        CALL METHOD cl_swf_run_wim_factory=>find_by_wiid
          EXPORTING
            im_wiid     = wiid
          RECEIVING
            re_instance = l_wi_handle.
        lo_wi_dialog ?= l_wi_handle.
        ls_wi_head = lo_wi_dialog->if_swf_run_wim_internal~m_sww_wihead.
      CATCH cx_swf_run_wim .
      CATCH cx_root.
    ENDTRY.
    * Read the container (if you want...):
    TRY.
        CALL METHOD lo_wi_dialog->if_swf_run_wim_wfm~get_wi_container
          RECEIVING
            re_container = lo_container.
      CATCH cx_swf_run_wim .
    ENDTRY.
    * Read the Key:
    SELECT SINGLE instid INTO lv_key
    FROM sww_wi2obj
    WHERE top_wi_id EQ ls_wi_head-top_wi_id.
    * In this example is a workflow for PO;
    SELECT SINGLE bstyp INTO lv_bstyp
    FROM ekko WHERE ebeln EQ lv_key.
    * Depending on the Task;
    CASE ls_wi_head-wi_rh_task.
    *  Authorize  
      WHEN 'TS99000001'.
        LOOP AT ct_decision_text ASSIGNING <ls>.
    *       The first 4 characters are the number of the option.
    *       The following characters are the description.
    *       Delete an option;
          IF <ls>(4) EQ '0001' AND lv_bstyp EQ 'F'.
            DELETE ct_decision_text INDEX sy-tabix.
            CONTINUE.
          ENDIF.
    *       Change the description:
          IF <ls>(4) EQ '0002'.
            IF lv_bstyp EQ 'K'.
              <ls>+4 = 'Authorize'.
            ELSE.
              <ls>+4 = 'Continue with the process'.
            ENDIF.
          ENDIF.
        ENDLOOP.
    ENDCASE.

  • Need Help: Workflow Decision Task not visible in NWBC for customer Task

    Hello All,
    I am  new to NWBC configuration , need ur expert knowledge  for the below issue. I have checked the treat . Approve/Reject button for SRM Approval for RFx response ,but not able to get the exact steps for the configurations in NWBC.
    Requirement.
         We are working on SLM/SRM module, where we have requirement to create a custom workflow with custom Task for which we have executed below actions.
    Created the Custom Workflow.
    Created the custom Task with custom  ZCLASS and ZEVET.
    Created   Event linkages in SWE2.
    After doing this we are getting the workitem in the NWBC, currently we don’t have the Portal system in place, so we are using the NWBC for all our testing.
    What is the issue?
         When we select the workitem in the NWBC (UML) inbox  , the Decision Task ie “Approve” or “Reject” button are not visible , where as for SAP standard  Task  buttons are visible.
    What help we need?
      When we cross check the SCN/IBM portal, found that we need to do the XML file configurations. Can you any one kindly let us know the steps we need to follow to achieve our functionality.
    Thanks a lot in advance.
    Thanks and Regards
    Channa

    You need to share the details of what Inbox you are using, configuration steps depend on it. If you aren't using portal, you aren't using UWL and there is no UML inbox. You need to get your facts straight. Most likely you are using the Business Workflow Inbox (SWF_WORKPLACE) or the Lean Inbox (IBO_WDA_INBOX). Both are based on Web Dynpro ABAP and POWL but the configuration is different. Regardless, you posted this in the wrong space. Correct space is either SAP NetWeaver Business Client or Web Dynpro ABAP.

  • Workflow task  TS00008267 ("generic decision task") not exist

    Dears,
        i could not find the task TS00008267 ("generic decision task") and then i can not activate the 'Classify Decision Task as General ' in SWU3.
       any method to restore the task 'TS00008267' in my client?
    BR.

    Hello,
    As Ketjil and Mikko have suggested if yuo cannot see the task then it is an authorization issue ot the task has been deleted or never delivered.
    If you find that all tasks are missing and not just TS00008267 then it is most likely an authorisation issue. Run transaction
    SU53 to see what authorisation objects your user is missing. It is related to Org Management authorisations.
    If you have to transport it try transaction SE01 (Transport Organiser) it is possible to transport from system to system. Just click on Create button and then select 'Transport of copies'. Then just enter you target system and save. You can then add the
    objects you wish to transport to your Target system.
    Example:=============================
    R3TR PDTS 00008267
    In SE01, click Create => Transport of copies
      => Name the request and save
           => Click 'Include Objects' button and choose 'Freely selected
              objects'.
                =>Enter the Development class SWD and click 'Selected
                  Objects'. F4 at the bottom of the list (Under the DTEL
                  entry) and select the entry "R3TR PDTS" and click OK.
                  Now enter the task ID 00008267 in the dialog box
                  opposite it and click the checkbox (See attached screen
                  shot) and then click the Execute button.
                    => Expland the list and goto the task
                         => Select 00008267 and click the "Save In Request"
                            button.
    You can do this with any standard tasks you want to transport to your system.
    Hope this helps.
    Regards,
    Eddie

  • 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

  • Not able to open "requested end" in user decision task.

    Hi All,
    In the user decision task, i have specified the value as +5 day in the "requested end" tab. When i executes the WF, and checks in the workflow log of work item, it shows that user decision step as logical deleted. I open that step on developement server, there value is fine as +5 day, then i tried to open that step on quality server where i am testing, when i clicks on that tab button it displays an error message at bottom of the screen "No Unit with the desired conversion factor is maintained", and with in 1 seconds it came out to initial screen of SAP.
    I checked the TR, it is imported correctly.
    where can be the issue then ? why i am not able to click on that tab in that user decision task, its very strange, i faced this kind of issue first time.
    if you have any idea about that why it is happening then please reply.
    Regards,
    Raman.

    Check SWU3 is properly maintained in your quality server.
    Thanks
    Arghadip

  • How to display Material in decision task?

    Hi Experts,
    I want to display a material data in a WF decision task. In the spec they ask a "link".
    I think the only way to do this - without process the workflow - is to create an attachment, with the Business Object: BUS1001, and with the material number as key. (Of course if you know something better, than it is also good for me)
    I have a program which starts the WF, and I want to fill up the WF container from this program.
    Please help me in, how should I write the code, if I know just the material number?
    Please give me code sample if it is possible.
    Thanks in advanced, Csaba.

    Hi,
    I am not sure how to the display method behaves in the BO BUS1001. You can try using that.
    Or a work around solution would be create a custom method. In that
    you set the material number field in the MM03 screen with the object-key.
    Then use call transaction 'MM03' and skip first screen.
    Hope it helps.
    Regards,
    Raj

  • Decision Step in Workflow inbox in NWBC

    Hi All,
    As of now when I click on any task in my Business workflow inbox then it takes me to a Decision Step in workflow but this screen is displayed as GUI , but need to find a Webdynpro replacement for this Decison Step.
    This is a standard Decision task step with minimal configuration, so want to know if there is any standard SAP provided Web dynpro to replace this.
    Thanks
    Kumar

    Hi,
    It would be better to use the custom webdynpro application.
    Please follow the below steps...
    Create a Separate Webdynpo Application ( WDA ) where you need to put all the option as SBWP by coding.
    After that 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.
    Thanks and regards,
    Sanjay

  • Object visualization to open attachment link in UWL decision task workitems

    We are using Object Visualization (in t-code SWFVISU) to open an I-view when you click the attachment link in decision task workitems.  I sort of have this working.  My issue is that I need to pass parameters to the I-view.  I'm not sure how to do that.  I've seen some documentation on dynamic parms in SWFVISU (DYNPARM) but I don't see that option (maybe we are on an older version).  Maybe we can via XML files?  I've done Task visualization and edited xml files but I'm not sure if we can do similar code for object visualization.  Does anyone know how to do this?   Have any samples/documentation?
    Thanks,
    Matt

    Hi Matthew,
    Check if the following links help you:
    /people/raja.thangamani/blog/2007/03/27/bsp-with-workflow-part-i
    /people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist
    Problems with bitmaps and tables on the visualization
    /message/6725781#6725781 [original link is broken]
    Re: WD java application in UWL link has authentication problems !
    Regards,
    Saumya

  • Generic decision Task and ABAP OO

    I have implemented a workflow using ABAP OO, which has a couple of user decision steps.
    Now I have made a copy of the generic decision task (8247) into my own custom task. I then copied over the code from the process method of the DECISION BO into my own custom BO. I then referenced the custom BO in my custom task. I tied this custom task to a user decision step in my workflow.
    code
    I had to this so that I could extend the functionality of the code to do something specific to my logic. This works fine.
    However when I write the same code in a method of my ABAP class and tie it to the same custom task instead of the BO, the workflow complains while activating "TASK XXXXX cannot be used as a decision task".
    Any advice would be greatly appreciated. Thanks a lot in advance.

    Hi Amlan,
    What I could figure out from your query is that, you want to use ABAP OO, functionality of classes in implementing a task. Please correct me if I am wrong.
    I would suggest you that Let your Workflow work with the BO, because there are certain tasks for which only BO works, implementation of classes might give some problem.
    check **************** - business workflows for further correspondence
    Best Regards,
    Kanika
    Edited by: kanika chopra on Dec 9, 2008 5:12 AM

  • Regarding creation of generic user decision task in workfow

    Hi,
    Can any one please guide me how to create generic user decision task in workfow?

    Hello,
    Just go into the workflow builder and create a new step. Choose a Decision Step and it will make one with the generic decision task, TS00008267. Just fill in what the options are and who it should go to. The task text  starts with the very generic:
    Choose one of the decision options given. This completes the
    processing of this step.
    regards
    Rick Bakker
    Hanabi Technology

  • In Decision task, Method defined after execution is not called from Portal

    Dear All,
    In one of my scenarios, I am using a decision task for approval.
    In that after the approval action is taken i am calling a BAPI to update business function.
    I have called this BAPI in the Methods ( After Workitem Execution ) .
    When I execute this task from the SAP Inbox ,  the method is getting called successfully and the BAPI is also executed successfully. But when I approve the task from portal this method is not getting called at all, and BAPI also fails.
    Actually in the workitem display , I am using the standard FM SWU2_INPLACE_DECISION_PROCESS, will it have any impact when its used from Portal ?
    Is there any common place that will be called from both SAP Inbox and Portal after the task execution , so that based on the decision taken , I can process the action at the same place.
    Advance thanks for your response.
    regards,
    Sabari Prabhu.

    Hello,
    Unfortunately, that I know, there is no way to call your BAPI if you're using the standard decision JavaWD. In fact all that WD does is calling a WAPI to read the decision alternatives and then once the user has taken his decision it calls another WAPI to feedback the decision into the backend.
    The blog mentionned by Pavan concerns only the secondary methods with amodal call, this is different from the before and after methods which are not supported and cannot help you for calling your BAPI. The so-called "Program exits" are not supported either.
    The only alternatives I can see for you are:
    - Develop your own decision screen specific for your workflow and integrate there your BAPI call. This would also give you more flexibility to show your agents the information they need to take their decision. This is the way I usually go for now.
    - Change your UWL settings so that decisions are processed in a GUI screen instead of the JAVA WD screen. The main disadvantage is that you can do this either for all decision or for none of them. You can't just set that up for the decision in your specific workflow (or at least I haven't found how to do it).
    To change the way decisons are processed in UWL you must first change the parameter "List of preview sections to hide" in your UWL iView to add value USERDECISION.
    Then you must create a custom XML config file (or modify an existing one) in which you must customize each decision task used in your company individualy. To do that just take a standard config file and find the Item type entry for a standard decision task as an example. All you have to do is to recreate the same entry for each of the decision tasks you actually use and replace the defaultAction="viewDetail" parameter by defaultAction="launchSAPAction".
    Cheers,
    Patrick

  • Can't configure SWU3 Classify Decision Task as General in Quality

    Hello Workflow Gurus,
    I have successfully completed SWU3 configuration in development, however, in quality I am not able to. I have not been able to complete two tasks:
    Classify Decision Task as General
    Document Generation/Form Integration
    I can not configure these two manually or automatically, I get the following message:
    Client 700 has status 'not modifiable'. Choose 'Display object' or 'Cancel'.
    How can I configure these two tasks in quality?
    Me, as workflow and ABAP consultant and a BASIS contact have tried to configure this. Thanks for any help in advance, points will be awarded.
    Best Regards,
    Gustavo Yong

    Hi Gustavo
    Please check with basis if its okay to transport a TR just from Q to P.
    Normally, SWU3 config asking for transport happens based on the settings you chose in SCC4. Now for your case, there was no TR from Dev, but one from Q -> check with basis if it will not cause any conflicts.
    Else you have this solution available when production is setup first.
    Regards,
    Modak

  • _wi_actual_agent and User Decision task

    Hi,
    I have a workflow which uses a User Decision task [ BO Process, Method Decision ] and thought I'd store the actual approver by mapping WIACTUAL_AGENT to a suitable workflow container variable.
    Problem is, when the workflow runs I can see that
    WIACTUAL_AGENT is set, but the workflow container variable remains empty.....    any ideas  ?

    Did you bind the standard container element WIACTUAL_AGENT to workflow container element?
    Do the following binding
    WORKFLOW CONTAINER <----- TASK CONTAINER
    Workflow container element <---- WIACTUAL_AGENT
    Regards
    Aman

  • Adding notes to decision task in UWL

    Hi there WUGers,
    We're looking into deploying UWL and I'm running into some "challenges."
    First, we're on  Portal release: SAP NetWeaver 7.0 (2004s) SPS 15, the backend is ECC 6.0 (Release: 700     0015     SAPKB70015)
    What I want to do is to have the "generic decision step" allow me to enter a comment/notes when I select the "reject" option on a given work item, as I've read in numerous forums, WUG emails, etc...
    The "standard" config in UWL for this task is:
        <ItemType name="uwl.task.webflow.TS00008267.EX3" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchSAPAction" executionMode="default">
          <ItemTypeCriteria systemId="EX3" externalType="TS00008267" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchSAPAction" groupAction="" handler="SAPIACLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="display_order_priority" value="5"/>
                <Property name="IAC" value="BWWF_WI_DECI"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    When I created a custom XML for it  (I did it verbatim according to the sample in Darren Hague's book and/or as shown in SAPHelp), and when doing so, I don't event get the decision task options to appear.  All I get is "Forward" and "Cancel Assignment" buttons.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
      >
    <UWLConfiguration version="1.0">
    <ItemTypes>
    <ItemType name="uwl.task.webflow.decision.TS00008267" connector="WebFlowConnector" defaultView="DefaultView">
    <ItemTypeCriteria connector="WebFlowConnector" externalType="TS00008267"/>
    <Actions>
      <Action name="Approve" groupAction="yes" handler="UserDecisionHandler">
       <Properties>
        <Property name="decisionKey" value="1"/>
       </Properties>
      </Action>
      <Action name="Reject" groupAction="yes" handler="UserDecisionHandler">
       <Properties>
        <Property name="decisionKey" value="2"/>
        <Property name="UserDecisionNote" value="mandatory"/>
       </Properties>
      </Action>
    </Actions>
    </ItemType>
    </ItemTypes>
    </UWLConfiguration>
    Any help would be greatly appreciated.
    Yours truly,
    Joe Toledo

    I had the same problem and it was all the XML.  You need to make sure you register after you create your workflow and custom tasks.  I then copied the generated XML ( uwl.webflow.clientname.xml ) to another file and deleted everything but my custom tasks.  You have to do some modifications to show the decision buttons and have the note be mandatory for rejection or whatever your requirement is.
    I posted this earlier at Re: Dobuts in modifying an UWL XML file.  The XML doesn't show for some reason but if you hit reply on my message at the bottom and quote it, you will see it.  This was a simple version with just one task.
    [You can also download the full version with all tasks here|http://www.2shared.com/file/5688314/467ddbb2/final.html]
    Make sure and set the priority to High after uploading.

Maybe you are looking for