cancel
Showing results for 
Search instead for 
Did you mean: 

Read custom attributes from the workflow container for the completed tasks

former_member188498
Active Participant
0 Kudos

Hi,

I am trying to display custom attributes from the workflow container in the completed tasks uwl subview.

The problem is that the values of custom attributes are not displayed in the uwl when completed tasks subview is chosen, where in the case of tasks in processing, these values are displayed.

I have checked the defaulttrace with com.sap.mw.jco location trace set to display all, and it seems that for the completed tasks

the SAP_WAPI_READ_CONTAINER function module is not executed.

I have managed to find only these function module calls in defaulttrace:

SWK_LOCAL_OUTBOX_GET

SAP_WAPI_WORKITEM_DESCRIPTION

but no SAP_WAPI_READ_CONTAINER.

Does anybody know is this by design or how to display custom attributes from the container for the completed tasks subview?

Regards,

Ladislav

Accepted Solutions (1)

Accepted Solutions (1)

former_member201257
Active Contributor
0 Kudos

UWL uses different views for tasks in processing and completed tasks.

Have you done the XML configuration changes in both the views associated with "Tasks in processing" and "completed tasks" ?

You can turn ON the UWL support information and while you are in the completed tasks view, check which view is getting picked up. (Property - Current View Name) (default - WorkItemsCompletedView)

Make changes in that associated view or create a custom view for completed tasks for enabling the view of your custom attributes.

The following blog can be helpful to you:

http://weblogs.sdn.sap.com/cs/blank/view/wlg/20379

- Shanti

former_member188498
Active Participant
0 Kudos

Hi Shanti,

thank you for the reply.

Yes, I have created custom views for "tasks in processing" and "completed tasks" and have done necessary configuration

changes in the XML files. The correct view is getting picked out in each case.

It works perfectly ok for custom view "tasks in processing", but for "completed tasks" custom view unfortunately

it doesn't work, the custom attribute values are not returned from the container.

Regards,

Ladislav

former_member188498
Active Participant
0 Kudos

The xml configuration for completed task type and custom attributes is like this:



    <ItemType name="uwl.completedtask.webflow.TS00008267" connector="WebFlowConnector"
              defaultView="myCompletedApprovalView" defaultAction="launchSAPAction" executionMode="default">
      <ItemTypeCriteria externalType="TS00008267" connector="WebFlowConnector"/>
      <CustomAttributes>
        <CustomAttributeSource id="WEBFLOW_CONTAINER"  objectIdHolder="externalId" 
              objectType="WebflowContainer" cacheValidity="default">
          <Attribute name="VENDOR" type="string" displayName="Vendor"/>
          <Attribute name="VENDOR_NAME" type="string" displayName="Vendor name"/>
          <Attribute name="CURRENCY" type="string" displayName="Currency"/>
          <Attribute name="AMOUNT" type="string" displayName="Amount"/>
        </CustomAttributeSource>
        <CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="ZDECISION" cacheValidity="default"/>
      </CustomAttributes>
      <Actions>
        <Action name="launchSAPAction" groupAction="" handler="SAPTransactionLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" 
              launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
          <Properties>
            <Property name="GuiType" value="WebGui"/>
          </Properties>
          <Descriptions default="Invoice approval">
            <ShortDescriptions>
              <Description Language="en" Description="Invoice approval"/>
            </ShortDescriptions>
          </Descriptions>
        </Action>
      </Actions>
    </ItemType>

It seems ok, but the custom attributes values VENDOR, VENDOR_NAME, CURRENCY and AMOUNT are not displayed (columns with values are empty) in myCompletedApprovalView view.

Regards,

Ladislav

pramod_gopisetty1
Active Contributor
0 Kudos

Hi Ladislav,

Did you manage to resolve the issue.

I am facing the same issue.

Please share the solution.

Thanks & Regards,

Pramod

alancecchini
Participant
0 Kudos

Hi,

We are also facing the same issue, did you find a resolution?

This problem has appeared since patchig our portal to 7.02 SPS12.

Thanks,


Alan

Answers (0)