cancel
Showing results for 
Search instead for 
Did you mean: 

MSS Approval Report Links to Busines Workflow Task in UWL

Tam
Participant
0 Kudos

Hello All,

I have a scenario below that I'm hoping you can help.

I copied the standard business workflow task "TS31000007: CATS Approval by Supervisor" to create our own task (general task) and link the 'CatManagerApprove' application and 'sap.com/msscatapproval' package to this task in the Workflow Visualization Configuration.

We then assigned this new task to the time data entry profile for the portal. Once, employee released the working time, the task is created and send to the Universal Worklist.

The manager can then access the UWL and open this approve time workflow task. This task is open to the MSS Approval Report (similar to what appear under the MSS > Tasks > Approve Time by Manager).

However, I have copied the Approve Time by Manager to our own and changed some of the order of the column and header text and assigned to the MSS role.

I would like to have this CATS approval task open to the same approval report view/layout as in the MSS Approval Report.

I've tried to change the layout (column order) through portal contents of the standard MSS Approval Report because I thought it was reading from there, but it's not.

Does anyone know how this can be done or where to point to the MSS Approval Report on the portal.

Any help would be appreciated!

Tam

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In "System admin -> System Config -> Universal Worklist -> Click to manage item types" you will find the UWL configuration XML files. In some of those, you should find your task TS31000007 and its configuration. There it is configured that what will happen when you click the item. It is possible to create a new configuration for your task and upload it (=replace the existing one). There you can for example define whether you want to start an iView or Java Web Dynpro application, and give them parameters, etc.

Now I am not sure that how have you "copied the Approve Time by Manager to our own"? But you will probably be able to make your own configuration in a way that it will take into account your "copy". Maybe if you share some more details, I could help more.

Regards,

Karri

Edited by: Karri Kemppi on Jul 22, 2010 9:50 AM

SacCounty_MM
Participant
0 Kudos

Hi Karri,

We were able to use the launch iview task to launch our specific iview but I cannot seem to get it to recognize the workitem. In other words, when I click on the task in the UWL, my approve working time iview appears but it does not have the data that is from the workflow task item. Attached is the XML code that I used:

<ItemType name="uwl.task.webflow.TS93000001.SAP_ECC_Financials" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchIView" executionMode="default">

<ItemTypeCriteria systemId="SAP_ECC_Financials" externalType="TS93000001" connector="WebFlowConnector"/>

<Actions>

<Action name="launchIView" groupAction="" handler="IViewLauncher" 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="page" value="pcd:portal_content/net.saccounty.SacCounty/net.saccounty.approve_ts_data"/>

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

<Property name="display_order_priority" value="5"/>

<Property name="workitemId" value="${item.externalId}"/>

</Properties>

<Descriptions default=""/>

</Action>

</Actions>

</ItemType>

I thought the line <Property name="workitemId" value="${item.externalId}"/> would pick up the work item ID, but it is not working. Any suggestions?

TS93000001 is our task. approve_ts_data is our iview. It opens in a new window correctly and goes to the correct iview, just is not the actual task data.

Thank you,

Mark.

Former Member
0 Kudos

Hi,

I cannot directly say what might be wrong, since I don't remember what does this timesheet approval view takes as parameters etc. But how was this working before you did the changes? With the old task? Does it launch the web dynpro application directly? I was just thinking if you could copy the solution from there or at least get a better idea how this might work. Well, probably you already did this...

Regards,

Karri

PS. As far as I remember they key here really is the work item ID.

SacCounty_MM
Participant
0 Kudos

Well, I figured it out. The code below works:

</ItemType>

<ItemType name="uwl.task.webflow.TS93000001.SAP_ECC_Financials" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchIView" executionMode="default">

<ItemTypeCriteria systemId="SAP_ECC_Financials" externalType="TS93000001" connector="WebFlowConnector"/>

<Actions>

<Action name="launchIView" groupAction="" handler="IViewLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">

<Properties>

<Property name="iview" value="pcd:portal_content/net.saccounty.SacCounty/approve_time_manager"/>

<Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>

<Property name="DynamicParameter" value="wi_id=${item.externalId}"/>

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

<Property name="display_order_priority" value="5"/>

</Properties>

<Descriptions default=""/>

</Action>

</Actions>

</ItemType>

There is probably better ways to do this but I just used the launchiview action and put the dynamic parameter with wi_id. I don't think it liked workitemid.

Mark.

Former Member
0 Kudos

Yep, wi_id (=work item ID) is the way to go. I don't believe that there is any better solution (and what is wrong with this one?). If you have customized the iView, the only way to launch it is with IViewLauncher.

Regards,

Karri

Tam
Participant
0 Kudos

Thank you Karri and Mark!

Tam

Answers (0)