cancel
Showing results for 
Search instead for 
Did you mean: 

UWL task issue ...

Former Member
0 Kudos

Hi Frndz.......

we r using standred UWL(tasks,alerts,notifications....all) iview in MSS the properties are

UseNavigationID :com.sap.pct.erp.mss.Main

sap_uwl_viewname:com.sap.pct.erp.mss.AlertView

And we created a custom UWL(only Tasks displays) which is using in our custom role .......props are

UseNavigationID :net.myportal.hr.HrMain

sap_uwl_viewname:HrDefaultView

When ever the Wokflow was triggerd tasks are coming to startd UWL , but those are not coming to custom UWL,but if we goto completd task the items are coming.

For custom UWL we created uwl.stand.hr with medium priorityand uwl.webflow.hr than also new taks ids r not coming to this XlL.......for debug i added those taks to uwl.stand.hr and uploded this time items are coming to custom UWL but those r not opening...n which effects the stand UWL also these r also items r not opening,which is not before adding manualy...and also OPEN FORM button on UWL also disappering.

For getting the items into custom UWL..is we need to modify uwl.standred and uwl.webflow.hr......how we can reslove this........

Regards

Rajesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Not Answered

piyush_kumar6
Active Contributor
0 Kudos

Hi Rajesh,

There is no need to change standard XML file. Just create your custom xml

file and use the required task id as shown in below code. first define the item

types then view and upload it with high priority with required system.

 <ItemTypes> 

<ItemType name="uwl.task.webflow.decision.TS20000118" connector="WebFlowConnector" defaultView="Travel_Request"

defaultAction="viewDetail" executionMode="default">

<ItemTypeCriteria externalType="TS20000118" connector="WebFlowConnector"/>

<CustomAttributes>

<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">

<Attribute name="subject" type="link" displayName="Subject" />

<Attribute name="Activity" type="string" displayName="Activity"/>

<Attribute name="Cost_center" type="string" displayName="Cost Center"/>

<Attribute name="Begin_date" type="date" displayName="Trip Start Date"/>

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

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

<Attribute name="Est_Cost_breakdown" type="string" displayName="Estimated Cost Breakdown"/>

<Attribute name="Advances" type="string" displayName="Advances"/>

<Attribute name="Total_Est_Cost" type="string" displayName="Total Estimated Cost"/>

<Attribute name="Traveller" type="string" displayName="Traveller"/>

<Attribute name="externalObjectId" type="string" displayName="externalObjectId"/>

<Attribute name="externalId" type="string" displayName="externalId"/>

<Attribute name="AppRemDocId" type="string" displayName="AppRemDocId"/>

</CustomAttributeSource>

</CustomAttributes>

<Actions>

<Action name="Approved" userDecision="yes" handler="UserDecisionHandler">

<Properties>

<Property name="decisionKey" value="1"/>

</Properties>

<Descriptions default="Approve"/>

</Action>

<Action name="Rejected" userDecision="yes" handler="UserDecisionHandler">

<Properties>

<Property name="decisionKey" value="2"/>

</Properties>

<Descriptions default="Reject"/>

</Action>

</Actions>

</ItemType>

<Views>

<View name="Travel_Request" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS20000118" columnOrder="Traveller,Activity,Cost_center,Begin_date,End_Date,Purpose_Dest,Est_Cost_breakdown,Total_Est_Cost,Advances,Approve,Reject,Remarks" sortby="priority:descend, dueDate:ascend, createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" actionPosition="bottom" referenceBundle="myuwl">

<Descriptions default="Travel Request">

<ShortDescriptions>

<Description Language="en" Description="Travel Request"/>

</ShortDescriptions>

</Descriptions>

<DisplayAttributes>

<DisplayAttribute name="Reject" type="checkbox" width="" sortable="no" format="default" actionRef="Rejected" referenceBundle="Rejected" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="Approve" type="checkbox" width="" sortable="no" format="default" actionRef="Approved" referenceBundle="Approved" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="Remarks" type ="link" width="" actionRef="launchObjectLink" sortable="yes" format="medium">

<Descriptions default="Remarks">

<ShortDescriptions>

<Description Language="en" Description="Remarks"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

<DisplayAttribute name="Begin_date" type ="date" width="" sortable="yes" format="short">

<Descriptions default="Trip Start">

<ShortDescriptions>

<Description Language="en" Description="Trip Start"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

<DisplayAttribute name="End_Date" type ="date" width="" sortable="yes" format="short">

<Descriptions default="Trip End">

<ShortDescriptions>

<Description Language="en" Description="Trip End"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

<DisplayAttribute name="subject" type="link" width="" sortable="yes" format="default" actionRef="viewDetail" referenceBundle="subject" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>

<DisplayAttribute name="Traveller" type ="link" width="" sortable="yes" format="default" actionRef="viewDetail">

<Descriptions default="Claimant">

<ShortDescriptions>

<Description Language="en" Description="Claimant"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

<DisplayAttribute name="Activity" type ="string" width="" sortable="yes" format="medium">

<Descriptions default="Activity">

<ShortDescriptions>

<Description Language="en" Description="Activity"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

<DisplayAttribute name="Cost_center" type ="string" width="" sortable="yes" format="medium">

<Descriptions default="CC/WBS">

<ShortDescriptions>

<Description Language="en" Description="CC/WBS"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

<DisplayAttribute name="Est_Cost_breakdown" type ="string" width="200" sortable="yes" format="medium">

<Descriptions default="Estimated Cost Breakdown">

<ShortDescriptions>

<Description Language="en" Description="Estimated Cost Breakdown"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

<DisplayAttribute name="Advances" type ="string" width="" sortable="yes" format="medium">

<Descriptions default="Advances">

<ShortDescriptions>

<Description Language="en" Description="Advances"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

<DisplayAttribute name="Total_Est_Cost" type ="string" width="" sortable="yes" format="medium">

<Descriptions default="Total Est.Cost">

<ShortDescriptions>

<Description Language="en" Description="Total Est.Cost"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

<DisplayAttribute name="Purpose_Dest" type ="string" width="" sortable="yes" format="medium">

<Descriptions default="Purpose/Destination">

<ShortDescriptions>

<Description Language="en" Description="Purpose/Destination"/>

</ShortDescriptions>

</Descriptions>

</DisplayAttribute>

</DisplayAttributes>

<Action name="submitUserDecisions" groupAction="yes" handler="UIActionHandler" referenceBundle="submit_msg" returnToDetailViewAllowed="no" launchInNewWindow="SHOW_HEADERLESS_PORTAL">

<ConfirmDescriptions referenceBundle="submit_prompt"/>

</Action>

<Action reference="defaultGlobalWizard"/>

<Action reference="addToNavigation"/>

<Action reference="removeFromNavigation"/>

<Action reference="launchSubstitutionManager"/>

<Action reference="refresh" />

<Action reference="personalize" />

</Actions>

</View>

Regards,

Piyush

Former Member
0 Kudos

Hi Piyush..........

Thanks for ur reply,i didnt find any code below in ur reply...........and we r not changing any standred XMLs we created our custom XMLs(uwl.standred.xml & uwl.webflow.hr)..... can u explain in brief .And while uploading this XML is it must with High priority and it should follow with SYSID also like uwl.custom.SAP_R3.

Regards

Rajesh

piyush_kumar6
Active Contributor
0 Kudos

Hi Rajesh ,

find the below code

 <ItemTypes> 
 <ItemType name="uwl.task.webflow.decision.TS20000118" connector="WebFlowConnector"  
defaultView="Travel_Request"defaultAction="viewDetail" executionMode="default"> 

 <ItemTypeCriteria externalType="TS20000118" connector="WebFlowConnector"/> 

 <CustomAttributes> 
	 <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" 
objectType="WebflowContainer" cacheValidity="final"> 
	 <Attribute name="subject"	type="link"		displayName="Subject" />  
	 <Attribute name="Activity"	type="string"	displayName="Activity"/> 
	 <Attribute name="Cost_center"	type="string" displayName="Cost Center"/> 
	 <Attribute name="Begin_date"	type="date" displayName="Trip Start Date"/> 
	 <Attribute name="End_Date"		type="date" displayName="Trip End Date"/> 
	 <Attribute name="Purpose_Dest"  type="string" displayName="Reason"/> 
 <Attribute name="Est_Cost_breakdown" type="string" displayName="Estimated Cost Breakdown"/> 
 <Attribute name="Advances"	 type="string"	displayName="Advances"/> 
 <Attribute name="Total_Est_Cost"	 type="string"	displayName="Total Estimated Cost"/> 
<Attribute name="Traveller" type="string"	displayName="Traveller"/> 
<Attribute name="externalObjectId"  type="string"	displayName="externalObjectId"/> 
<Attribute name="externalId"	type="string"	displayName="externalId"/> 
 <Attribute name="AppRemDocId"	type="string"	displayName="AppRemDocId"/> 
	 </CustomAttributeSource> 
 </CustomAttributes> 
 <Actions>         
      		 <Action name="Approved" userDecision="yes" handler="UserDecisionHandler"> 
		     <Properties> 
			 <Property name="decisionKey" value="1"/> 
			 </Properties> 
		     <Descriptions default="Approve"/> 
		 </Action> 
	 <Action name="Rejected" userDecision="yes" handler="UserDecisionHandler"> 
		     <Properties> 				
			 <Property name="decisionKey" value="2"/> 
			 </Properties> 
		     <Descriptions default="Reject"/> 
		 </Action> 
 </Actions> 
 </ItemType>  

piyush_kumar6
Active Contributor
0 Kudos
 <Views> 
 <View name="Travel_Request" selectionMode="SINGLESELECT" width="98%" 
supportedItemTypes="uwl.task.webflow.decision.TS20000118" 
columnOrder="Traveller,Activity,Cost_center,Begin_date,End_Date,Purpose_Dest,
Est_Cost_breakdown,Total_Est_Cost,Advances,Approve,Reject,Remarks" 
sortby="priority:descend, dueDate:ascend, createdDate:descend"
 tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes"
 tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" 
actionRef="" actionPosition="bottom" referenceBundle="myuwl"> 
    <Descriptions default="Travel Request"> 
		 <ShortDescriptions> 
		 <Description Language="en" Description="Travel Request"/> 
		 </ShortDescriptions> 
    </Descriptions> 
      <DisplayAttributes>  
 <DisplayAttribute name="Reject" type="checkbox" width="" sortable="no"
 format="default" actionRef="Rejected" 

referenceBundle="Rejected" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0"
 headerVisible="yes"/> 

      <DisplayAttribute name="Approve" type="checkbox" width="" sortable="no"
 format="default" actionRef="Approved" 

referenceBundle="Approved" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0"
 headerVisible="yes"/>
 
 <DisplayAttribute name="Remarks" type ="link" width="
" actionRef="launchObjectLink" sortable="yes" format="medium"> 

		 <Descriptions default="Remarks"> 
		 <ShortDescriptions> 
		 <Description Language="en" Description="Remarks"/> 
		 </ShortDescriptions> 
		 </Descriptions> 
		 </DisplayAttribute> 

		 <DisplayAttribute name="Begin_date" type ="date" width="" 
sortable="yes" format="short"> 
		 <Descriptions default="Trip Start"> 
		 <ShortDescriptions> 
		 <Description Language="en" Description="Trip Start"/> 
		 </ShortDescriptions> 
		 </Descriptions> 
		 </DisplayAttribute> 

		 
		
	 </DisplayAttributes> 
    <Action name="submitUserDecisions" groupAction="yes" handler="UIActionHandler" 
referenceBundle="submit_msg" returnToDetailViewAllowed="no"
 launchInNewWindow="SHOW_HEADERLESS_PORTAL"> 
    <ConfirmDescriptions referenceBundle="submit_prompt"/> 
     </Action> 
             <Action reference="defaultGlobalWizard"/> 
         <Action reference="addToNavigation"/> 
         <Action reference="removeFromNavigation"/> 
         <Action reference="launchSubstitutionManager"/> 
	 <Action reference="refresh" /> 		
         <Action reference="personalize" /> 
      </Actions> 
     </View>  
piyush_kumar6
Active Contributor
0 Kudos

You can give any name for your XML file

but it should be uploaded with High Priority for required System

Regards,

Piyush

Former Member
0 Kudos

Hi Piyush,

Thanks again for ur inputs, but in my case when am adding Tasks into uwl.standre.hr(custom) for our portal...OPEN FORM button is not getting and in both MSS UWL and in our custom UWL also.

ANd the code u givenm has to be in uwl.webflow...right...lunching Web dynpro app .. webflow XML needs to be modify.. right..

Can u explain in details, it could be helps to my probllem.

Regards

Rajesh