User Decision Note:  Questions

Hello,
I have a couple questions regarding the user decision note:  I've configured our XML code for the use of a user decision note, and made it mandatory for the return and reject actions, However my User Decision Title for the comment box does not show in the UWL.. Iu2019ve included my code below.. Any suggestions as to what Iu2019ve done wrong.. Iu2019ve cleared the cache after uploadu2026
Also, is there a way to configure the Message, that appears if you attempt to click the actions buttons that have the user decision note as mandatoryu2026the message appears at the top of the screen is very small font.. Iu2019d like to change the wording, and make it show up in a more noticeable location for the user.. 
Thank you for your comments
Don
<Properties>
<Property name="UserDecisionNote" value="true"/>
<Property name="decisionKey" value="0001"/>
<Property name="UserDecisionTitle" value="Enter a Return/Rejection Reason"/>
</Properties>

The syntax seems to be correct. I suspect the "/" character is causing the problem.
Try using:
<Properties>
<Property name="UserDecisionNote" value="true"/>
<Property name="decisionKey" value="0001"/>
<Property name="UserDecisionTitle" value="Enter a Return or Rejection Reason"/>
</Properties>

Similar Messages

  • Mass Approval + User Decision Notes

    Hello
    We are configuring UWL in a SAP Nw 7.01 SP10 Portal.
    We have created a custom XML file where we define a decision task with approve and reject actions; user decision notes are enabled in both actions:
    <ItemTypes>
         <ItemType name="uwl.task.webflow.decision.TS90100261.SAP_ECC_Financials" connector="WebFlowConnector" defaultView="POCAllView" defaultAction="viewDetail" executionMode="default">
              <ItemTypeCriteria systemId="SAP_ECC_Financials" externalType="TS90100261" connector="WebFlowConnector"/>          
              <Actions>
                   <Action name="ApproveRequest" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="no" launchInNewWindow="no">
                     <Properties>
                        <Property name="decisionKey" value="0001"/>
                        <Property name="UserDecisionNote" value="true"/>
                        <Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>
                        <Property name="UserDecisionTitle" value="Approve the request"/>
                     </Properties>
                     <Descriptions default="Approve"/>
                   </Action>
                   <Action name="RejectRequest" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="no" launchInNewWindow="no">
                     <Properties>
                        <Property name="decisionKey" value="0002"/>
                        <Property name="UserDecisionNote" value="mandatory"/>
                        <Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>
                     </Properties>
                     <Descriptions default="Reject"/>
                   </Action>
              </Actions>
         </ItemType>
    </ItemTypes>
    Then we define a view that allows mass approval/rejection using checkboxes and a submit decisions button:
    <View name="POCAllView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS90100261.SAP_ECC_Financials" columnOrder="APPROVE, REJECT, subject, creatorId, createdDate, priority, attachmentCount, dueDate, status, MYATTRIBUTE01, MYATTRIBUTE02, MYATTRIBUTE03" sortby="priority:descend, dueDate:ascend, createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="300" dueDateSevere="0" dueDateWarning="0" emphasizedItems="none" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="bottom" referenceBundle="pocall_tasks">
          <DisplayAttributes>
            <DisplayAttribute name="APPROVE" type="checkbox" width="" actionRef="ApproveRequest" referenceBundle="PoC.Approve" hAlign="CENTER" vAlign="MIDDLE"/>
            <DisplayAttribute name="REJECT" type="checkbox" width="" actionRef="RejectRequest" referenceBundle="PoC.Reject" hAlign="CENTER" vAlign="MIDDLE"/>
           </DisplayAttributes>
          <Actions>
         <Action reference="submitUserDecisions"/>
            <Action reference="refresh"/>
            <Action reference="defaultGlobalWizard"/>
            <Action reference="addToNavigation"/>
            <Action reference="removeFromNavigation"/>
          </Actions>
        </View>
    However, we don't know how to include the decision note if the checkboxes + submit decision button are used.
    Does anyone have experience with this configuration and knows the solution? Points will be rewarded.
    Thanks,
    Jon

    Hi,
    create a custom view/subview for the UWL item and configure it according to your needs.
    Have a look at this blog:
    Mass/Batch Processing of Work items in UWL
    and also check the documentation:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/4e/72112bc9ea484196f2a5fdc68f5f5f/frameset.htm
    Regards,
    Kiruthika

  • Popup notification in user decision not showing

    Hello,
    I'm facing a problem with my workflows, I have two workflows in my system, bot are sending user decision to the users, the problem is my requirement is to raise a popup notification once the decision is sent. I have configured the activity to send the decision as priority 1(express-urgent), the weird part is that it's working perfectly fine in 1 workflow, but it's not working in the other one, I have checked and double check the activities are exactly equal, and UI am even sharing the same task, when I check the user decision in the inbox I can see that the priority is 1(urgent) but I am not getting the notification inmediately like the other workflow does.
    I'd appreciate your help on this, system configuration is ok, as I mentioned it's working fine in one WF I have tested with different users, and I have also send normal messages as express and I got the popup, so it seems like the problem is linked to the workflow itself.
    Thanks

    Hi Gang LI,
    Using 'SO_NEW_DOCUMENT_ATT_SEND_API1' you can send notification amisl to a user. But user decisions are used to send workitems to user to take action on. These have deadline monitoring activated to take care of missed deadlines for the task.
    Please explain if you need to send workitems to the users.
    Regards,
    Saumya

  • SAP Portal UWL - User decision note not showing up...

    I have configured the UWL to force a rejection note. However, this is not working. i.e. Rejecting works successfully (without the note).
    UWL configuration is as below.
      <ItemType executionMode="default" defaultAction="viewDetail" defaultView="PurchaseOrdersView" connector="WebFlowConnector" name="uwl.task.webflow.decision.TS99900008">
          <ItemTypeCriteria connector="WebFlowConnector" externalType="TS99900008" />
          <Actions>
            <Action name="approved" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="true" />
                <Property name="decisionKey" value="0001" />
                <Property name="UserDecisionTitle" value="Enter a Rejection Reason" />
              </Properties>
              <Descriptions default="Approved" />
            </Action>
            <Action name="rejected" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="mandatory" />
                <Property name="decisionKey" value="0002" />
              </Properties>
              <Descriptions default="Rejected" />
            </Action>
          </Actions>
        </ItemType>
    The UWL support information indicates that the correct view and itemtype (and configuration) is being used. However, one concern is that the "Supported actions for this item" does not show the - approved, rejected - actions from the above custom UWL XML.
    Any pointers would be greatly appreciated. We are on version 7.0.
    The complete UWL XML custom configuration file is as below.
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
      >
    <UWLConfiguration version="1.0">
      <ItemTypes>
        <ItemType executionMode="default" defaultAction="viewDetail" defaultView="PurchaseOrdersView" connector="WebFlowConnector" name="uwl.task.webflow.decision.TS99900008">
          <ItemTypeCriteria connector="WebFlowConnector" externalType="TS99900008" />
          <Actions>
            <Action name="approved" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="true" />
                <Property name="decisionKey" value="0001" />
                <Property name="UserDecisionTitle" value="Enter a Rejection Reason" />
              </Properties>
              <Descriptions default="Approved" />
            </Action>
            <Action name="rejected" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="mandatory" />
                <Property name="decisionKey" value="0002" />
              </Properties>
              <Descriptions default="Rejected" />
            </Action>
          </Actions>
        </ItemType>
        <ItemType executionMode="default" defaultAction="viewDetail" defaultView="PurchaseOrdersView" connector="WebFlowConnector" name="uwl.task.webflow.decision.TS99900011">
          <ItemTypeCriteria connector="WebFlowConnector" externalType="TS99900011" />
        </ItemType>
        <ItemType executionMode="default" defaultAction="viewDetail" defaultView="PurchaseOrdersView" connector="WebFlowConnector" name="uwl.task.webflow.decision.TS99900013">
          <ItemTypeCriteria connector="WebFlowConnector" externalType="TS99900013" />
        </ItemType>
      </ItemTypes>
      <Views>
        <View name="PurchaseOrdersView" referenceBundle="tasks" actionRef="" actionPosition="bottom" dynamicCreationAllowed="yes" displayOnlyDefinedAttributes="yes" emphasizedItems="new" dueDateWarning="259200000" dueDateSevere="86400000" refresh="300" tableNavigationType="CUSTOMNAV" tableNavigationFooterVisible="yes" queryRange="undefined" headerVisible="no" visibleRowCount="10" tableDesign="STANDARD" sortby="priority:descend, dueDate:ascend, createdDate:descend" columnOrder="subject, isEscalated, creatorId, createdDate, priority, attachmentCount, dueDate, status" supportedItemTypes="uwl.task.webflow.decision.TS99900008,uwl.task.webflow.decision.TS99900011,uwl.task.webflow.decision.TS99900013" width="98%" selectionMode="SINGLESELECT">
          <DisplayAttributes>
            <DisplayAttribute name="priority" referenceBundle="priority" headerVisible="yes" width="10" maxTextWidth="0" vAlign="BASELINE" hAlign="LEFT" format="default" sortable="yes" type="string">
              <Menu>
                <MenuItem name="Low" referenceBundle="menu_priority_low" actionRef="priorityLow" />
                <MenuItem name="Normal" referenceBundle="menu_priority_normal" actionRef="priorityNormal" />
                <MenuItem name="High" referenceBundle="menu_priority_high" actionRef="priorityHigh" />
                <MenuItem name="VeryHigh" referenceBundle="menu_priority_v_high" actionRef="priorityVeryHigh" />
              </Menu>
            </DisplayAttribute>
          </DisplayAttributes>
        </View>
      </Views>
      <NavigationNode name="root" view="" referenceGroup="" visible="yes" keepItemCountUpdated="no">
        <NavigationNode name="Main" view="" referenceGroup="" visible="yes" keepItemCountUpdated="no">
          <NavigationNode name="PurchaseOrder" view="PurchaseOrdersView" referenceGroup="" visible="yes" keepItemCountUpdated="no" referenceBundle="tasks">
            <Descriptions default="PurchaseOrder">
              <ShortDescriptions>
                <Description Language="en" Description="Purchase Order" />
              </ShortDescriptions>
            </Descriptions>
          </NavigationNode>
        </NavigationNode>
      </NavigationNode>
    </UWLConfiguration>

    Attaching the UWL XML file
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
      >
    <UWLConfiguration version="1.0">
      <ItemTypes>
        <ItemType executionMode="default" defaultAction="viewDetail" defaultView="PurchaseOrdersView" connector="WebFlowConnector" name="uwl.task.webflow.decision.TS99900008">
          <ItemTypeCriteria connector="WebFlowConnector" externalType="TS99900008" />
          <Actions>
            <Action name="approved" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="true" />
                <Property name="decisionKey" value="0001" />
                <Property name="UserDecisionTitle" value="Enter a Rejection Reason" />
              </Properties>
              <Descriptions default="Approved" />
            </Action>
            <Action name="rejected" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
              <Properties>
                <Property name="UserDecisionNote" value="mandatory" />
                <Property name="decisionKey" value="0002" />
              </Properties>
              <Descriptions default="Rejected" />
            </Action>
          </Actions>
        </ItemType>
        <ItemType executionMode="default" defaultAction="viewDetail" defaultView="PurchaseOrdersView" connector="WebFlowConnector" name="uwl.task.webflow.decision.TS99900011">
          <ItemTypeCriteria connector="WebFlowConnector" externalType="TS99900011" />
        </ItemType>
        <ItemType executionMode="default" defaultAction="viewDetail" defaultView="PurchaseOrdersView" connector="WebFlowConnector" name="uwl.task.webflow.decision.TS99900013">
          <ItemTypeCriteria connector="WebFlowConnector" externalType="TS99900013" />
        </ItemType>
      </ItemTypes>
      <Views>
        <View name="PurchaseOrdersView" referenceBundle="tasks" actionRef="" actionPosition="bottom" dynamicCreationAllowed="yes" displayOnlyDefinedAttributes="yes" emphasizedItems="new" dueDateWarning="259200000" dueDateSevere="86400000" refresh="300" tableNavigationType="CUSTOMNAV" tableNavigationFooterVisible="yes" queryRange="undefined" headerVisible="no" visibleRowCount="10" tableDesign="STANDARD" sortby="priority:descend, dueDate:ascend, createdDate:descend" columnOrder="subject, isEscalated, creatorId, createdDate, priority, attachmentCount, dueDate, status" supportedItemTypes="uwl.task.webflow.decision.TS99900008,uwl.task.webflow.decision.TS99900011,uwl.task.webflow.decision.TS99900013" width="98%" selectionMode="SINGLESELECT">
          <DisplayAttributes>
            <DisplayAttribute name="priority" referenceBundle="priority" headerVisible="yes" width="10" maxTextWidth="0" vAlign="BASELINE" hAlign="LEFT" format="default" sortable="yes" type="string">
              <Menu>
                <MenuItem name="Low" referenceBundle="menu_priority_low" actionRef="priorityLow" />
                <MenuItem name="Normal" referenceBundle="menu_priority_normal" actionRef="priorityNormal" />
                <MenuItem name="High" referenceBundle="menu_priority_high" actionRef="priorityHigh" />
                <MenuItem name="VeryHigh" referenceBundle="menu_priority_v_high" actionRef="priorityVeryHigh" />
              </Menu>
            </DisplayAttribute>
          </DisplayAttributes>
        </View>
      </Views>
      <NavigationNode name="root" view="" referenceGroup="" visible="yes" keepItemCountUpdated="no">
        <NavigationNode name="Main" view="" referenceGroup="" visible="yes" keepItemCountUpdated="no">
          <NavigationNode name="PurchaseOrder" view="PurchaseOrdersView" referenceGroup="" visible="yes" keepItemCountUpdated="no" referenceBundle="tasks">
            <Descriptions default="PurchaseOrder">
              <ShortDescriptions>
                <Description Language="en" Description="Purchase Order" />
              </ShortDescriptions>
            </Descriptions>
          </NavigationNode>
        </NavigationNode>
      </NavigationNode>
    </UWLConfiguration>

  • Link in User Decision step not showing correctly in UWL

    Hi SAP Experts,
    I have a requirement to add a link in a user decision step, this link triggers a custom webdynpro for additional input. When I access the workitem from Business Workplace, the link is showing fine. But when I execute the workitem in UWL, the link is not displayed, instead the code is shown (<a>...</a>). Please advise on what I should do to have the link working. Thanks in advance.

    Hi,
    This same thing was just recently discussed. I just cannot find the thread anymore (well, in that thread there was not really any solution). Basically the hyperlinks in work item do not seem to work in UWL as they should. I don't know if there are any way to make them work. My suggestion is to not use the hyperlink at all and replace that with an action (=button) to the task in the UWL. This can be achieve quite easily by simple XML configuration in portal. If you have worked with UWL this should be quite straightforward for you, or if there is a consultant at the site, who is familiar with UWL, this should be simple for him/her.
    Regards,
    Karri

  • HREF in user decision task not working in UWL?

    Hi All,
    We're on ECC6 and portal version 7.01 SP4.
    My problem is that I have defined a link in the body of a user decision task like so..
    <A HREF="http://www.google.ie/" target=_blank> GOOGLE </A>
    and while in appears as a link in the task in the UWL, clicking it does nothing. When I check the properties of the link, I see that it's actually javascript:void(0);, so hence it doing nothing.
    Can anyone give me any guidance on how to get a link working in a user decision task in the UWL?
    Thanks in advance,
    Liz.

    Hi Patrick,
    Thanks for the respnse, I've since figured out that what I was trying to do was not possible.  I have impleneted a workaround myself, where I just added an extra button action in the UWL.
    Many thanks,
    Liz.

  • Description changes not reflecting in User Decision step

    Hi,
    I am displaying the ECM (cc01) description in the workflow user decision step. In this user decision step I do have three options
        1. Changes completed (to move the ECM to next level)
        2. Edit ECM (Calls ECM n change mode CC02)
        3. Cance (standard)
    If I choose Edit ECM, and change the description in the ECM and come back to the user decision step, it still shows the older description some cases. In some cases I am getting the updated description in user decision step. In Edit ECM step I am using Z method which is the copy the standard BO method Edit_synchron of ECM to call the transaction CC02.
    Z method does not contain any importing or exporting parameters. Also in the workflow<->Task binding I bound ECM <-> _WF_Object_ID.
    Thanks,
    Muruganantham

    2 case:
    1.) Description not changing: How the description get populated in user decision step ? Is it some varibale get populated based on select query ?
    2.) Description get changed: Please check the new workflow instance get created and you can only see changed text in new instance. Already triggered workflow will not show the changed value.
    Please check the worklow design, whether its creating new workflow instance on every change in ECM ?
    BR,
    Prakash

  • Note in user decision step

    Dear Experts,
    I have requirement to add a note in user decision step to allow the user to enter comments while approving or rejecting workitem in UWL. I have enabled the note using XML file. I read that this comments will be captured in workflow container element attachobjects. My requirement is to send the comments entered by approver to initiator via mail. Please let me know how to capture the comments from UWL note to send mail step.
    Br,
    Bharath

    Hi Rick,
    Thanks for your reply.
    I have got the attachments in container element attachobjects. Can you please tell me how to get the text entered by the user from this step because currently I have SOFM instance in hand. I am not sure how to convert this to some form and extract the user comments alone. Are there any FM that can help to do this.
    Br,
    Bharath

  • User-Decision COMPLETED buti next step not executed

    Hi Gurus,
    I have a very strange problem when approving user-decision tasks in my workflow using FM SAP_WAPI_DECISION_COMPLETE.
    SOMETIMES, the user-decision step becomes COMPLETED but the result in the workflow logs (SWI1) is blank and does not continue to the next steps of my workflow. I've done my research and checked everything (commit = X, SWU3, Task is General, etc..) but i still have not found any solution yet.
    FYI: this does not happen all the time, most of the time the workflow works fine.
    Based on SWWWIHEAD, the user ADSUSER(from WebDynpro)  is the creator and the last one who updated the workflow instance.
    Here's part of my code for your reference: (RFC - called by WebDynpro)
      CALL FUNCTION 'SWL_GET_PROCESS_STEPLIST'
        EXPORTING
          wf_id                       = wi_id
          with_techdetails            = space
          with_expansion              = space
          with_errors                 = space
        TABLES
          wfm_steplog                 = lt_wfm_steplog
        EXCEPTIONS
          workflow_does_not_exist     = 1
          error_while_reading_wfm_log = 2
          OTHERS                      = 3.
      DELETE lt_wfm_steplog WHERE wi_type NE 'W'.
      CLEAR: wa_wfm_steplog, li_lines.
      DESCRIBE TABLE lt_wfm_steplog LINES li_lines.
      READ TABLE lt_wfm_steplog INTO wa_wfm_steplog INDEX li_lines.
        IF in_pdf_flag = 'Y'.      "Continue
          ly_decision_key = '0001'.
        ELSE. "Cancel
          ly_decision_key = '0002'.
        ENDIF.
        IF NOT ly_decision_key IS INITIAL .
          CALL FUNCTION 'SAP_WAPI_DECISION_COMPLETE'
            EXPORTING
              WORKITEM_ID          = wa_wfm_steplog-wi_id
              LANGUAGE             = SY-LANGU
              USER                 = SY-UNAME
              DECISION_KEY         = ly_decision_key
              DO_COMMIT            = 'X'
            IMPORTING
              RETURN_CODE          = l_subrc.
    Thanks in advance.
    Regards,
    Dexter

    Hello Dexter,
    Thanks for the reply.
    I have tried running the BAPI through Automation Tools which we have. That is Process Runner.
    With the help of this I was Approving the WorkFlow. But as i found the issue, so for trouble schooting this i had manually checked in SAP though SE37 t-code.
    Below is the code of BAPI 'sap_wapi_decision_complete'
    =====================================================================
    FUNCTION sap_wapi_decision_complete.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(WORKITEM_ID) TYPE  SWR_STRUCT-WORKITEMID
    *"     VALUE(LANGUAGE) LIKE  SWR_STRUCT-WILANGUAGE DEFAULT SY-LANGU
    *"     VALUE(USER) TYPE  SYUNAME DEFAULT SY-UNAME
    *"     VALUE(DECISION_KEY) TYPE  SWR_DECIKEY
    *"     VALUE(DO_COMMIT) TYPE  XFELD DEFAULT 'X'
    *"  EXPORTING
    *"     VALUE(RETURN_CODE) LIKE  SY-SUBRC
    *"     VALUE(NEW_STATUS) TYPE  SWW_WISTAT
    *"  TABLES
    *"      MESSAGE_LINES STRUCTURE  SWR_MESSAG OPTIONAL
    *"      MESSAGE_STRUCT STRUCTURE  SWR_MSTRUC OPTIONAL
      DATA: lh_msg TYPE REF TO cl_swf_utl_wapi_message,
            lv_excp TYPE REF TO cx_swf_ifs_exception,
            funcname TYPE funcname VALUE 'SAP_WAPI_DECISION_COMPLETE',
            lv_wi_handle TYPE REF TO if_swf_run_wim_internal,
            ls_t100msg TYPE swf_t100ms,
            lv_handle TYPE sytabix,
            lh_wapi TYPE REF TO if_swf_utl_wapi_framework,
            ls_swwwihead TYPE swwwihead,
            l_nodetype TYPE swd_nodetp,
            lt_alternatives TYPE swr_decialts OCCURS 0 WITH HEADER LINE.
      DATA: lt_cont TYPE swr_cont OCCURS 0 WITH HEADER LINE.
      DATA: lh_params TYPE REF TO if_swf_ifs_parameter_container.
      DATA: lh_trc_data TYPE REF TO if_swf_cnt_container.
      DATA: lt_message_lines TYPE sapi_msg_lines.
      DATA: lt_message_struct TYPE sapi_msg_struc.
    *- startup framework
      lh_wapi = cl_swf_utl_wapi_framework=>create( im_language = language ).
      lh_msg = lh_wapi->get_message_object( ).
      lh_params = lh_wapi->get_parameter_container( ).
      CALL METHOD lh_wapi->set_commit_control( im_commit = do_commit ).
      TRY.
          CALL METHOD lh_params->set
            EXPORTING
              name  = lh_wapi->c_workitem_id
              value = workitem_id.
        CATCH cx_swf_cnt_container .
      ENDTRY.
      lv_handle = lh_wapi->register_function( im_function = funcname
                                              im_parameters = lh_params ).
    *~~ begin of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
      IF lh_wapi->m_trace_handle IS BOUND.
        TRY.
            lh_trc_data = lh_wapi->get_initial_trace_data( ).
            CALL METHOD lh_trc_data->element_set
              EXPORTING
                name  = 'WORKITEM_ID'
                value = workitem_id.
            CALL METHOD lh_trc_data->element_set
              EXPORTING
                name  = 'LANGUAGE'
                value = language.
            CALL METHOD lh_trc_data->element_set
              EXPORTING
                name  = 'USER'
                value = user.
            CALL METHOD lh_trc_data->element_set
              EXPORTING
                name  = 'DECISION_KEY'
                value = decision_key.
            CALL METHOD lh_trc_data->element_set
              EXPORTING
                name  = 'DO_COMMIT'
                value = do_commit.
            CALL METHOD lh_wapi->write_trace
              EXPORTING
                im_evt  = swwtr_api_init
                im_data = lh_trc_data.
          CATCH cx_swf_ifs_exception.                       "#EC NO_HANDLER
        ENDTRY.
      ENDIF.
    *~~ end of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
      TRY.
    *- function valid (allowed)
          IF lv_handle LE 0.
            lv_excp = lh_wapi->get_last_exception( ).
            return_code = 900.
            RAISE EXCEPTION lv_excp.
          ENDIF.
    *- get properties
          CALL METHOD cl_swf_run_wim_factory=>find_by_wiid
            EXPORTING
              im_wiid     = workitem_id
            RECEIVING
              re_instance = lv_wi_handle.
    * is it a decision at all?
          MOVE-CORRESPONDING lv_wi_handle->m_sww_wihead TO ls_swwwihead.
          CALL METHOD cl_swf_run_workitem_compatible=>get_def_guid_structure
            EXPORTING
              im_header   = ls_swwwihead
            IMPORTING
              ex_nodetype = l_nodetype.
          IF l_nodetype <> swfco_wd_decision.
            return_code = 2.
            ls_t100msg-msgid = 'SWR'.
            ls_t100msg-msgty = 'E'.
            ls_t100msg-msgno = 205.
            ls_t100msg-msgv1 = workitem_id.
            RAISE EXCEPTION TYPE cx_swf_run_wim
              EXPORTING t100_msg = ls_t100msg
                        wi_id    = workitem_id.
          ENDIF.
    *- get texts
          CALL FUNCTION 'SWU_GET_DECISION_TEXT_TITLE'
            EXPORTING
              language           = language
              wiid               = workitem_id
            TABLES
              decision_text      = lt_alternatives[]
            EXCEPTIONS
              node_not_found     = 1
              text_not_found     = 2
              workflow_not_found = 3
              OTHERS             = 4.
          IF sy-subrc <> 0.
            return_code = 2.
            ls_t100msg-msgid = 'SWR'.
            ls_t100msg-msgty = 'E'.
            ls_t100msg-msgno = 206.
            ls_t100msg-msgv1 = workitem_id.
            RAISE EXCEPTION TYPE cx_swf_run_wim
              EXPORTING t100_msg = ls_t100msg
                        wi_id    = workitem_id.
          ENDIF.
    *- check alternative id
          READ TABLE lt_alternatives WITH KEY altkey = decision_key.
          IF sy-subrc <> 0.
            return_code = 3.
            ls_t100msg-msgid = 'SWR'.
            ls_t100msg-msgty = 'E'.
            ls_t100msg-msgno = 207.
            ls_t100msg-msgv1 = workitem_id.
            ls_t100msg-msgv2 = decision_key.
            RAISE EXCEPTION TYPE cx_swf_run_wim
              EXPORTING t100_msg = ls_t100msg
                        wi_id    = workitem_id.
          ENDIF.
        CATCH cx_swf_ifs_exception INTO lv_excp.
          IF return_code IS INITIAL.
            return_code = 1.
          ENDIF.
          CALL METHOD lh_msg->set_exception_object( im_excp = lv_excp ).
    *- set export
          message_lines[] = lh_msg->get_message_lines( ).
          message_struct[] = lh_msg->get_message_struct( ).
          EXIT.
      ENDTRY.
    *- unregister to framework
      CALL METHOD lh_wapi->unregister( lv_handle ).
    *- complete decision item
      lt_cont-element = swfco_wi_result_const.
      lt_cont-value   = decision_key.
      APPEND lt_cont.
      lt_cont-element = swfco_om_result_const.
      lt_cont-value   = decision_key.
      APPEND lt_cont.
      CALL FUNCTION 'SAP_WAPI_WORKITEM_COMPLETE'
        EXPORTING
          workitem_id      = workitem_id
          actual_agent     = user
          language         = language
          do_commit        = do_commit
        IMPORTING
          return_code      = return_code
          new_status       = new_status
        TABLES
          simple_container = lt_cont[]
          message_lines    = message_lines
          message_struct   = message_struct.
    *~~ begin of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
      IF lh_wapi->m_trace_handle IS BOUND.
        TRY.
            lh_trc_data = lh_wapi->get_initial_trace_data( ).
            CALL METHOD lh_trc_data->element_set
              EXPORTING
                name  = 'RETURN_CODE'
                value = return_code.
            CALL METHOD lh_trc_data->element_set
              EXPORTING
                name  = 'NEW_STATUS'
                value = new_status.
            lt_message_lines = message_lines[].
            CALL METHOD lh_trc_data->element_set
              EXPORTING
                name  = 'MESSAGE_LINES'
                value = lt_message_lines.
            lt_message_struct = message_struct[].
            CALL METHOD lh_trc_data->element_set
              EXPORTING
                name  = 'MESSAGE_STRUCT'
                value = lt_message_struct.
            CALL METHOD lh_wapi->write_trace
              EXPORTING
                im_evt  = swwtr_api_result
                im_data = lh_trc_data.
          CATCH cx_swf_ifs_exception.                       "#EC NO_HANDLER
        ENDTRY.
      ENDIF.
    *~~ end of trace specific coding ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
    ENDFUNCTION.
    ========================================================================
    When I pass all the data through Process Runner Program and check in SAP manually it look like below in SAP
    Kindly check the above screen shot and Help me in this regard.
    Thanks,
    Srikanth

  • 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

  • User Decision with Note - Where are comments stored?

    We are interested in using the "UserDecisionNote" property in our XML file for a User Decision workitem.  (This allows a comments text box when a user clicks accept/reject for example)
    How and where are these commens stored?  As an attachment?
    Thanks,
    Matt

    Sorry, I should have stated what our goals were.  We currently capture comments with an activity step right after a user decision step.  This happens as an immediate popup/dialog because of synchronous dialog chains in SBWP.  We may then put the comments in a subsequent email step, subsequent workitem text, or custom table. 
    You cannot do synchronous dialog in Universal Worklist.  So, we were investigating UserDecisionWithNote property of XML file for task.  However, it appears the comments are stored as an attachment and not passed as text back to Task/WF (which I'm hoping someone on this forum can confirm).  If they cannot be passed back as text and are indeed stored as an attachment, then in theory we need a way to get the comments out of the attachment.   I'm not aware if anything allows us to parse attachments, etc.
    Matt

  • User decision option not seen to approver

    We have a user decision in our workflow template. We have decision option Select approver ,Sent back to AP ,Cancel . When some users execute the this task they were shown as decision decision and cancel. decision option text is not shown to them. This is happenng for few users only. not for all users. Please suggest what can be done to solve this issue

    Yaa Martin is right please check the Translations has been maintained for the Logon language in which the user is logging in. You can check the table entries of SWDSTEXT.
    Thanks
    Arghadip

  • Not able to view the User Decisions Buttons in UWL

    Hi Experts,
    We have configured the UWL for the WI execution. Now the Problem is I am not able to view the User Decisions Step buttons in UWL instead when I select the User Decision Step it is opening in SAP GUI there I am able to view the SBWP WI decisions screen.
    But I need those buttons in UWL instead logging in SAP. CurrentlyI am able to see "Open Task", "Resubmit", "Forward" & "Assign to Me" buttons but similarly I want to display the User Decisions Buttons as well. Please let me know o how to achieve this requirement.
    Thanks in advance.
    Regards,
    Srinivas

    Hi Viji,
    I am sorry if it got confused I have copied the standard BO and done the enhancement to the DECISION method as per my requirement and now when I give this task in UWL it does not show up the buttons in Portal instead upon opening the work item it will open a SAP GUI and there it will show up the USER decision details similar to the things in the SBWP transaction. Instead I have seen some cases where it had shown the User Decision buttons in the Portal itself.
    Let me know if you have any idea on this.
    Regards,
    SRinivas

  • UWL - Default buttons on User decision with note

    Hello!!
    I have configured a decision item from a decision task to set the user decision with note.
    My decision task has 2 decision options (accept is"Validar gasto" and reject is "Devolver gasto para correccion"), but when an item for this task comes, only is displayed two buttons with the text "Decision".
    This is the configuration file:
    <?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.TS99701053.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="viewDetail" executionMode="default">
          <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType="TS99701053" connector="WebFlowConnector"/>
           <Actions>
            <Action name="accept" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no" referenceBundle="Validar_gasto">
              <Properties>
                <Property name="decisionKey" value="1"/>
                <Property name="UserDecisionNote" value="true"/>
              </Properties>
              <Descriptions default="Aceptar"/>     
             </Action>
            <Action name="reject" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no" referenceBundle="Devolver_gasto_para_correccion">
              <Properties>     
                <Property name="decisionKey" value="2"/>
                <Property name="UserDecisionNote" value="mandatory"/>
              </Properties>
              <Descriptions default="Rechazar"/>
             </Action>
           </Actions>
        </ItemType>
      </ItemTypes>
    </UWLConfiguration>
    Somebody knows how can I change the text of the buttons?
    Is very urgent, please.
    Helpful answers will be rewarded.
    Thanks and regards,
    Manuel.

    I think what Karri means (or should mean ,-) is that there could be a translation issue here - and I agree with that. The texts are most likely generated in the language of the user who creates the work item. If this is not Spanish (I assume that's your logon and development language) you will not get the correct texts. So you will either need to change the logon language of the user, or translate the workflow's texts. I would recommend translation, because you never know when someone might log on in a different language than the system default. It has been known to happen.

  • User Decision Node PI7.1 is WSBPEL or not?

    Hi All,
      User Decision Node in PI7.1 is WSBPEL Compliant or not? Please suggest me on this.
    Thanks & Regards,
    Venkat K

    Hi,
    Here check the payload that will be coming to XI i.e. before the decision step.
    Refer below link to get more details on error
    https://www.sdn.sap.com/irj/sdn/nw-processmonitoring
    Business Process Monitoring - Error on Monitoring type
    Thanks
    Swarup

Maybe you are looking for