cancel
Showing results for 
Search instead for 
Did you mean: 

UWL refresh problem for ABAP BOR custom attributes

Former Member
0 Kudos

Hi all,

we are facing an issue with an UWL iView. We wanted to display custom attributes from an ABAP Business Object (ABAP_BOR).

The feature is working but when an end-user receives a new task in his UWL view, he needs to click on the refresh button in order to have all the custom attributes correctly displayed.

We have only the problem with custom attributes, for the columns containing standard workflow decision task attributes, the data are displayed directly without the need to push the refresh button.

We are on EP 7 SPS11 and the back-end is an ECC6 version.

We have followed the methodology described in the How to configure and customize the Universal Worklist pdf document:

ABAP BOR
<CustomAttributeSource id="ABAP_BOR"
objectIdHolder="externalObjectId"
objectType="FORMABSENC"
cacheValidity="final">
<Attribute name="COSTCENTER" type="string"
displayName="Cost Center"></Attribute>
<Attribute name="FIRSTDAYOFABSENCE" type="date"
displayName="First day of absence"></Attribute>
<Attribute name="LASTDAYOFABSENCE" type="date"
displayName="Last day of absence"></Attribute>
</CustomAttributeSource>

Do you have an idea where this problem come from and how it could be solved?

Thanks in advance and regards,

Sébastien BODSON

Accepted Solutions (0)

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Sebastian,

cacheVaidity ="final" means that the attribute will never be refreshed. Change it to session or time in minutes for which the custom attribute is valid after retrieval.

Also try this setting : cacheValidity="default"

Chintan

Former Member
0 Kudos

Hi Chintan,

This parameter has no impact on the problem we face. I found an exact description of our problem on SAP Help portal, in the UWL pages:

CustomAttributes, CustomAttributeSource and Attribute

Extract from SAP Help portal:

Every item type can have custom attributes defined, which can be filled from Business Object or Provider Data Containers like the Business Workflow Container or the Alert Container. These attribute sources are defined within the CustomAttributeSourcetag, which contains information on which attribute connector brings the custom attributes, how to identify these custom attributes in the provider system and how long the cache is valid.

Note that once an item arrives, these custom attributes are retrieved in additional calls to the backend. For performance reasons, in order to minimize responses times to the end user, this may happen while the item is displayed to the end user - causing such attributes to be empty initially and only to appear in subsequent requests.

The display names of the attributes for column headers and labels are defined in the display attributes of the default view of the item type.

Does anyone know a workaround in order to have directly the complete information displayed?

Sébastien BODSON