cancel
Showing results for 
Search instead for 
Did you mean: 

Leave Request Approval Task Not Appearing in Portal UWL

Former Member
0 Kudos

Hi All,

We are facing issues with the leave request approval tasks as those are not appearing in the Portal UWL.

We've NW Portal 7.4 with ECC 6 EHP 7 as backend.

We've installed MSS ADD On 1.0 and have assigned the relevant MSS role to the user.

We've maintained the task IDs TS21500003 and TS90000043 in SWFVISU.

Please note that the task: TS21500043 is custom one and is compatible with TS21500003 (standard).

We've also created a custom xml (com.xxxx.pct.erp.mss.addon) with the following code:

<!-- OBN Navigation -->

     <ItemType name="uwl.task.webflow.TS21500003.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default">

      <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS21500003" connector="WebFlowConnector"/>

<CustomAttributes>

  <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer">

<Attribute name="REQUESTID" type="string" displayName="Request ID"/>

  </CustomAttributeSource>

</CustomAttributes>

      <Actions>

        <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">

          <Properties>

  <Property name="WebDynproConfiguration" value="HRESS_AC_PTARQ_LEAVREQ"/>

            <Property name="Operation" value="approveleaverequest"/>

            <Property name="ObjectValue" value="LRF_REQUEST_ID=${item.REQUESTID}" />

            <!-- Parameter associated with OBN being passed -->

     <Property name="DynamicParameter" value="LRF_REQUEST_ID=${item.REQUESTID}"/>

            <Property name="ObjectName" value="employee"/>

         <Property name="System" value="SAP_ERP_HumanResources"/>

     <Property name="openInNewWindow" value="true"/>

          </Properties>

          <Descriptions default="defaultAction"/>

        </Action>

      </Actions>

    </ItemType>

    <ItemType name="uwl.forwardedtask.webflow.TS21500003" connector="WebFlowConnector" defaultView="com.sap.pct.erp.mss.ForwardedTimeApp" defaultAction="viewDetail"/>

    <ItemType name="uwl.futuretask.webflow.TS21500003" connector="WebFlowConnector" defaultView="com.sap.pct.erp.mss.FutureTaskTimeApp" defaultAction="viewDetail"/>

    <ItemType name="uwl.completedtask.webflow.TS21500003" connector="WebFlowConnector" defaultView="com.sap.pct.erp.mss.CompletedTimeApp" defaultAction="viewDetail"/>

<!-- OBN Navigation -->

     <ItemType name="uwl.task.webflow.TS90000043.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default">

      <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS90000043" connector="WebFlowConnector"/>

<CustomAttributes>

  <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer">

<Attribute name="REQUESTID" type="string" displayName="Request ID"/>

  </CustomAttributeSource>

</CustomAttributes>

      <Actions>

        <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">

          <Properties>

  <Property name="WebDynproConfiguration" value="HRESS_AC_PTARQ_LEAVREQ"/>

            <Property name="Operation" value="approveleaverequest"/>

            <Property name="ObjectValue" value="LRF_REQUEST_ID=${item.REQUESTID}" />

  <Property name="DynamicParameter" value="LRF_REQUEST_ID=${item.REQUESTID}"/>

            <!-- Parameter associated with OBN being passed -->

                 <Property name="ObjectName" value="employee"/>

      <Property name="System" value="SAP_ ERP_HumanResources"/>

     <Property name="openInNewWindow" value="true"/>

          </Properties>

          <Descriptions default="defaultAction"/>

        </Action>

      </Actions>

    </ItemType>

    <ItemType name="uwl.forwardedtask.webflow.TS90000043" connector="WebFlowConnector" defaultView="com.sap.pct.erp.mss.ForwardedTimeApp" defaultAction="viewDetail"/>

    <ItemType name="uwl.futuretask.webflow.TS90000043" connector="WebFlowConnector" defaultView="com.sap.pct.erp.mss.FutureTaskTimeApp" defaultAction="viewDetail"/>

    <ItemType name="uwl.completedtask.webflow.TS90000043" connector="WebFlowConnector" defaultView="com.sap.pct.erp.mss.CompletedTimeApp" defaultAction="viewDetail"/>

We've also followed SAP Note : 1600953 - Modifications to UWL configuration file in BP MSS Add-On 1.0

But still, it is not working out for us. We are not sure on what are we missing here.

Attaching the screenshots for SWFVISU for the above mentioned Task IDs.

Please note that we've already re-registered the connectors several times and have checked the SSO connections.

Any pointers will be highly apprecaited.

Regards,

Anurag

Accepted Solutions (1)

Accepted Solutions (1)

anil_kumar259
Active Contributor
0 Kudos

Hi Anurag,

Please change the DYNPARAM =sap-wd-configId=HRESS_AC_PTARQ_LEAVREQ&LRF_WITEM_ID=${item.externalId}&LRF_REQUEST_ID=${item.REQUESTID}&LRF_ARQ_MODE=A

 

After doing the changes Re-register the UWL connector. Hope it helps i am maitaining the same parameters and its working fine and also check the RFC destination in the NWA.

Former Member
0 Kudos

Hi Anil,

We tried with your configuration but still the work item does not appear in the UWL.

PFB the screenshots:

Even, the RFC destination is working fine.

So, there is some other issue.

Regards,

Anurag

Former Member
0 Kudos

Hi Anurag,

SWFVISU configurations have nothing to do with work item not coming in the UWL.

Check the ECC inbox if the work item exist for this user over there?

If the work item is not there in ECC inbox the problem is with the workflow.

Regards,

Suman

Former Member
0 Kudos

Hi Suman,

The work item is present in ECC inbox for the agent.

So, I suspect that there is something wrong with the UWL connection.

System Alias in UWL is pointing to the correct backend system.

The same system alias (SAP_ECC_HumanResources) is being used for other ESS / MSS functionality which are working fine.

So, the issue here is that the work item itself is not coming in the UWL.

Please suggest what else can be done.

Regards,

Anurag

Former Member
0 Kudos

Hi Anurag,

Try giving more authorization to this user in the backend and check.

By saying, The same system alias (SAP_ECC_HumanResources) is being used for other ESS / MSS functionality which are working fine. Did you mean that the work items are coming to UWL from other workflows used in ESS/MSS to the same user?

Regards,

Suman

Former Member
0 Kudos

Hi Suman,

Thanks for the reply!!!

Do you mean to assign more authorizations to the RFCUSER or the actual MSS User.

If possible, Could you please list down the required roles to be assigned for the above user so that I can verify the same.

No, I meant that the system alias is connected to the correct back end system.

It is defined in the alias of the same system object which is being used for SSO for the ESS / MSS functionality.

Thanks,

Anurag

Former Member
0 Kudos

Hi Anurag,

These are the composite roles required for ESS and MSS

SAP_MANAGER_MSS_NWBC_2

SAP_EMPLOYEE_ESS_WDA_2

Anyway did you clear the UWL cache after the changes in UWL settings?

You can try switching on the UWL Support information to see the standard XML is picked by UWL.

Regards,

Suman

Former Member
0 Kudos

Thanks Suman for the help!!!

There was some issue with the RFCUSER authorization.

Regards,

Anurag

former_member183915
Active Contributor
0 Kudos

Hi Anurag,

We are facing same issue. Could you please let me know what was the solution done for this issue.

Regards,

Navya.

Former Member
0 Kudos

chk swu3 

former_member183915
Active Contributor
0 Kudos

Hi Jwala,

What shall i check in swu3?

@ Anurag,

Which authorizations did u add to RFCUSER?

Regards,

Navya

Former Member
0 Kudos

and chk in swdd for ur workflow task make it as general and check again ...tell ur workflow person is it in general task or not

0 Kudos

Hi Anurag

When you say RFCUSER which RFC was missing authrization and how did you correct it.

Appreciate your reply

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anurag,

Are you not able to get the workitem in the UWL? or

Are you facing issues while clicking on the work item?

If the workitem is not coming in the UWL. Check the ECC inbox if this work item exist over there?

If the work item is not there in ECC inbox the problem is with the workflow.

If the work item is there in ECC inbox and not appearing in the portal UWL it is the UWL Connection issue.

For UWL Connection check the System Alias in UWL is added to the correct System Connections in the System Landscape.

If your problem is with launching the leave approval application try this XML, it might help.

<?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.TS90000043.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default">
      <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS90000043" connector="WebFlowConnector"/>
      <CustomAttributes>
        <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final">
          <Attribute name="REQUESTID" type="string" displayName="Request ID"/>
        </CustomAttributeSource>
      </CustomAttributes>
      <Actions>
        <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
          <Properties>
            <Property name="Operation" value="approveleaverequest"/>
            <Property name="ObjectValue" value="LRF_REQUEST_ID=${item.REQUESTID}"/>
            <Property name="DynamicParameter" value="LRF_REQUEST_ID=${item.REQUESTID}"/>
            <Property name="openInNewWindow" value="true"/>
            <Property name="ObjectName" value="employee"/>
            <Property name="System" value="SAP_ERP_HumanResources"/>
          </Properties>
          <Descriptions default="defaultAction"/>
        </Action>
      </Actions>
    </ItemType>
    <ItemType name="uwl.task.webflow.TS21500003.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default">
      <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS21500003" connector="WebFlowConnector"/>
      <CustomAttributes>
        <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final">
          <Attribute name="REQUESTID" type="string" displayName="Request ID"/>
        </CustomAttributeSource>
      </CustomAttributes>
      <Actions>
        <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
          <Properties>
            <Property name="Operation" value="approveleaverequest"/>
            <Property name="ObjectValue" value="LRF_REQUEST_ID=${item.REQUESTID}"/>
            <Property name="DynamicParameter" value="LRF_REQUEST_ID=${item.REQUESTID}"/>
            <Property name="openInNewWindow" value="true"/>
            <Property name="ObjectName" value="employee"/>
            <Property name="System" value="SAP_ERP_HumanResources"/>
          </Properties>
          <Descriptions default="defaultAction"/>
        </Action>
      </Actions>
    </ItemType> 
</ItemTypes>
</UWLConfiguration>

Regards,

Suman