Skip to Content
0
Dec 27, 2010 at 09:20 AM

Custom attribute is always empty

30 Views

Dear Experts,

I am using the standard workflow and task for trip approval. The problem is I need to view a custom attribute in the UWL List of the manager. I am trying the bellow code but with no luck the column REASON is always empty can you tell me why?

<ItemType name="uwl.task.webflow.decision.TS20000131.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="com.sap.pct.erp.mss.tra.view.TripApprovalView" defaultAction="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm" executionMode="default">
      <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType="TS20000131" connector="WebFlowConnector"/>
      <CustomAttributes>
        <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
          <Attribute name="TripNumber" type="string" displayName="Trip Number"/>
          <Attribute name="EmployeeNumber" type="string" displayName="Employee Number"/>
		
        </CustomAttributeSource>
<CustomAttributeSource id="ABAP_BOR" objectIdHolder="BOR_OBJECT" objectType="BUS2089" cacheValidity="default">
<Attribute name="REASON" type="string" displayName="Reason"/>
</CustomAttributeSource>

      </CustomAttributes>
      <Actions>
        <Action reference="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm"/>
      </Actions>
    </ItemType>

<View name="com.sap.pct.erp.mss.tra.view.TripApprovalView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS20000131" columnOrder="TripNumber, creatorId,REASON, statusIcon, subject,  APPROVE, REJECT, SENDBACK" sortby="createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="300" dueDateSevere="0" dueDateWarning="0" emphasizedItems="none" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="bottom" referenceBundle="com.sap.pct.erp.mss.tra.TripApproval">
      <DisplayAttributes>
        <DisplayAttribute name="REJECT" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.RejectTrip" referenceBundle="com.sap.pct.erp.mss.tra.Reject" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
        <DisplayAttribute name="SENDBACK" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.SendBackTrip" referenceBundle="com.sap.pct.erp.mss.tra.SendBack" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
        <DisplayAttribute name="APPROVE" type="checkbox" width="" sortable="no" format="default" actionRef="com.sap.pct.erp.mss.tra.action.approver.ApproveTrip" referenceBundle="com.sap.pct.erp.mss.tra.Approve" hAlign="CENTER" vAlign="MIDDLE" maxTextWidth="0" headerVisible="yes"/>
        <DisplayAttribute name="TripNumber" type="string" width="" sortable="yes" format="default" referenceBundle="com.sap.pct.erp.mss.tra.TripNumber" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
       
	   <DisplayAttribute name="REASON" type ="string" width="" sortable="yes" format="medium">
<Descriptions default="Reason">
<ShortDescriptions>
<Description Language="en" Description="Reason"/>
</ShortDescriptions>
</Descriptions>
</DisplayAttribute> 
	  </DisplayAttributes>
      <Actions>
        <Action name="com.sap.pct.erp.mss.tra.action.approver.ApproveTrip" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Approve" returnToDetailViewAllowed="no" launchInNewWindow="no">
          <Properties>
            <Property name="decisionKey" value="0001"/>
          </Properties>
        </Action>
        <Action name="com.sap.pct.erp.mss.tra.action.approver.SendBackTrip" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.SendBack" returnToDetailViewAllowed="no" launchInNewWindow="no">
          <Properties>
            <Property name="UserDecisionNote" value="true"/>
            <Property name="decisionKey" value="0002"/>
          </Properties>
        </Action>
        <Action name="com.sap.pct.erp.mss.tra.action.approver.RejectTrip" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Reject" returnToDetailViewAllowed="no" launchInNewWindow="no">
          <Properties>
            <Property name="UserDecisionNote" value="true"/>
            <Property name="decisionKey" value="0003"/>
          </Properties>
        </Action>
        <Action reference="submitUserDecisions"/>
        <Action reference="com.sap.pct.erp.mss.gotoWorkcenter"/>
        <Action reference="refresh"/>
        <Action reference="defaultGlobalWizard"/>
        <Action reference="addToNavigation"/>
        <Action reference="removeFromNavigation"/>
      </Actions>
    </View>