cancel
Showing results for 
Search instead for 
Did you mean: 

UWL custom attributes

Former Member
0 Kudos

I have configured a view for a travel expense approval task (using the "How to..." guide) and have configured some custom attributes (trip reason and destination )as as columns in the list view, and these are populated with data correctly. What I want to do is include the Total Cost of the trip as a custom attribute in the list view, and have created a Custom Attribute for it, but do not know what data type to define it as - I've tried double, int, string but in none of these cases does the amount get displayed - any ideas if this can be done, if so, how? Some of the xml config is below.

Many thanks

Ross

<CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="ZZBUS2089" cacheValidity="final">

<Attribute name="BEGINDATE" type="date" displayName="Begin Date"/>

<Attribute name="ENDDATE" type="date" displayName="End Date"/>

<Attribute name="REASON" type="string" displayName="Reason"/>

<Attribute name="LOCATION" type="string" displayName="Location"/>

<Attribute name="TOTALCOSTS" type="int" displayName="Total Costs"/>

</CustomAttributeSource>

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Dar,

You need to create a new view and name the custom attributes in the columnorder section (see below) - then you need to set the defaultview on the itemtype to be your new view name...

<View name="ZExpensesView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS92000013.SAP_R3_HumanResources" columnOrder="subject, createdDate, BEGINDATE, ENDDATE, REASON, LOCATION, ZTOTALCOSTS, approveCol, rejectCol" sortby="createdDate:descend" emphasizedItems="new" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="top" headerVisible="yes" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="">

Still trying to figure out my problem though

Cheers

Ross

Former Member
0 Kudos

Hi Ross,

thanks for the hint. it works now - but not all the way i expected

Have you ever entered a custom attribute into the "New Task" display - that is, where one can enter the priority, due date, etc... when creating a new item.

How could I put additional attributes in here and see them in the iview list after a new item is created?

I am checking the workflow content (temoplates, etc..) but can't see where I could modify or change the exisitng SAP "New Task" windows.

Any Idea?

regards,

Darijo

Former Member
0 Kudos

Hi Ross:

Have you solved this? Thank you very much!

Best Regards,

Xiaoming Yang

Former Member
0 Kudos

The UWL config guide lives here:

https://media.sdn.sap.com/html/submitted_docs/Best_Practices/EP/documentation/How-to_Guides/KM/UWL.p...

Still haven't resolved the issue - any takers out there?

Cheers

Ross

Former Member
0 Kudos

Hi Ross,

I am impressed

How did you make it to see the custom attributes in the list view?

I set up some custom attributes from source UM, but they are displayed in the detailView. I cannot find the trick how to populate them into the list view as columns.

Unfortunately I can't help you with your problem - sorry!

regards,

Dar

former_member610333
Participant
0 Kudos

Ross,

Sorry I am not going to be much help.. but can you list the URL to the document you mentioned?