cancel
Showing results for 
Search instead for 
Did you mean: 

How to forward a GP task in UWL

Former Member
0 Kudos

Hi all

We have many GP tasks in our UWL .

if we require to forward any GP task in UWL to some other user what is the customization is required to implement this feature??

please provide ur input then it would be great help to me.

Thanks

Sunil

Accepted Solutions (1)

Accepted Solutions (1)

Yordan
Employee
Employee
0 Kudos

Hi,

Forwarding a GP task in UWL is available since NW CE 7.11 (Ehp1). If your version is relevant than check the example xml in the following documentation:

http://help.sap.com/saphelp_nwce711/helpdata/EN/43/ef06a7860c7061e10000000a1553f6/content.htm

Especially in the xml configuration file you should define the following action for the item type you want:

<Action groupAction="" handler="GPActionHandler" launchInNewWindow="no" name="forward" referenceBundle="forward" returnToDetailViewAllowed="no">

<Properties>

<Property name="userIdList" value="$"/>

<Property name="display_order_priority" value="3"/>

</Properties>

<Descriptions default="Forward"/>

</Action>

Former Member
0 Kudos

Hi Yordan

Currently we are using CE 7.1 SP7 .

is that XML file code applicable to this version also??

just i added this action in our GP XML file and i uploaded with high priority then there is no forward button available in UWL, can you please let me know whether this is possible to our version CE 7.1 SP7??

Thanks

Sunil

Yordan
Employee
Employee
0 Kudos

Hi Sunil,

This is not available for CE 7.1 SP7. This feature is available only after CE 7.11 (EhP 1)

Regards,

Yordan

Former Member
0 Kudos

Hi Yordan

Thanks for your reply

if this feature is not available in CE 7.1 SP7, can we implement manually the Forward task functionally??

Please let me know the possibility of implementing this feature manually (thru acustomization)

Regards

Sunil

former_member280025
Active Participant

Answers (2)

Answers (2)

Yordan
Employee
Employee
0 Kudos

Please stop asking several questions for one thread. Check our rules for the posts:

https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/rulesofEngagement

- Only One Question Per Posting

For each question that you have, make a separate posting. Don't ask multiple questions in one posting, this is confusing for people and might not get answered, since the subject line does not reflect all your problems. If a new and unrelated question comes up during a thread, start a new thread.

Regards,

Yordan

Yordan
Employee
Employee
0 Kudos

Hi Sunil,

The link above won't help you. It's about configuration. There is no configuration that could do that since it is not supported by GuidedProceduresConnector. It is possible to implement this with implementing your oun custom Connector for UWL and using the GP API. It is not very easy task you should read some documentations and make some experiments to do that. Please refer to the following thread:

Regards,

Yordan

Former Member
0 Kudos

Hi Yordan

now we are able to get the forward button in UWL for all GP tasks, but when i select any task and click on the forward button then new window opens with required details to forward the task then when i click on the "Submit" button then i am getting the error as "Unable to perform the request. Try again and if the problem persists, inform your system administrator" .

can you please let me know how to resolve this error . do we need to change any properties in UWL standard iView??

Please reply me as early as possible then it would be great help to me.

(As i told that currently we are using CE 7.1 SP6 but forward button came in UWL but not working properly as i told above)

Regards

Sunil

Yordan
Employee
Employee
0 Kudos

Hi Sunil,

As I said before the forward feature is not available for any SP in CE 7.10 it is available in CE 7.11 and later versions. There is no point in trying make it work because it won't work. You can define any buttons (actions) in the UWL for any tasks, but you should have an action handler and this forward action handler is not available in 7.10. There is no code that will handle the forward action. The XML configuration in UWL defines different views and actions for the item types. As you can see in the XML there is an attribute for the action named: handler="GPActionHandler". This handler doesn't exist in 7.10. You can read more about the handlers here:

http://help.sap.com/saphelp_nwce10/helpdata/en/2c/05b15de3864040a9426788a12699b3/content.htm

Also as you can see GPActionHandler is not standart UWL handler. This was developed in CE 7.11 for GuidedProceduresConnector. If you want forward action in CE 7.10 you should implement you own custom connector which is not an easy task and it is impossible to be explained how to do it in a forum post.

Regards,

Yordan

Former Member
0 Kudos

Hi Yordan

Thanks a lot for your reply

you are true that is not possible in CE 7.1 version.

currently we are facing two issues in this CE 7.1 SP7 version one issue is adding custom columns of GP in UWL and another issue is Forward functionality of GP task. to achieve these two requirements i am trying to implement UWL custom connector .

now i am planning to implement Custom connector with GP APIs.

can you please help on this how to achieve this requirement??

can you please provide ur e-mail is so that i will contact you personally to get more information on this custom connector development. please help me on this requirement and please reply to this thread

just i started to develop custom connector for that i created one UWL custom connector project in NWDS. inside there is one XML file by default . in that XML file there is one <view> tag, there i added our custom columns which are required to display in UWL for example ( QuoteNo,WellNo,CustomerNo etc from GP) see the XML file as below.

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd' []>
<UWLConfiguration>
	<Actions>
	 	<Action name="showDetails" 
		   handler="SAPWebDynproLauncher" 
	       referenceBundle="view_detail"
	 	   launchInNewWindow="yes"
		   launchNewWindowFeatures="width=700,height=600,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
			<Properties>
	 			<Property name="WebDynproApplication" value="UWLDetail" />
	 			<Property name="WebDynproDeployableObject" value="sap.com/tc~kmc~bc.uwl.ui~wd_ui" />
	 			<Property name="System" value="SAP_LocalSystem" />
				<Property name="sap_uwl_selecteditem" value="${item.internalId}" />
				<Property name="isnewwindow" value="1" />
			</Properties>
		</Action>
		<Action groupAction="" handler="GPActionHandler" launchInNewWindow="no" name="forward" referenceBundle="forward" returnToDetailViewAllowed="no">
		<Properties>
			<Property name="userIdList" value="${users}"/>
			<Property name="display_order_priority" value="3"/>
		</Properties>
   	<Descriptions default="Forward"/>
</Action>
		
	</Actions>

  <ItemTypes>

    <ItemType name="uwl.task.mytask" connector="CustomGPConnector" defaultView="CustomGPConnectorView" defaultAction="showDetails">
		<Actions>
			<Action name="showDetails" reference="showDetails"/>  	
			<Action name="complete" reference="complete" />
		</Actions>
    </ItemType>
    
  </ItemTypes>
 
  <Views>

	  <View name="CustomGPConnectorView" width="98%" supportedItemTypes="uwl.task.mytask" 
			columnOrder="QuoteNo,WellNumber,CustomerNumber,createdDate,status"
			sortby="status:ascend, createdDate:descend"
			emphasizedItems="new"
			selectionMode="MULTISELECT"
			tableDesign="STANDARD"
			visibleRowCount="10"
			headerVisible="yes"
			tableNavigationFooterVisible="yes"
			tableNavigationType="CUSTOMNAV"
			actionRef="">
			<Descriptions default="This is a sample view generated by the UWL Connector Wizard for your Item Type"/>
				
	        <DisplayAttributes>
		        <DisplayAttribute name="createdDate" type="datetime" 
		        	width="" sortable="yes" format="medium" 
		        	referenceBundle="sent_date" 
		        	hAlign="LEFT" vAlign="BASELINE" 
		        	maxTextWidth="0" headerVisible="yes"/>			
			</DisplayAttributes>    	
	
			<Actions>
				<Action reference="complete" />
				<Action groupAction="" handler="GPActionHandler" launchInNewWindow="no" name="forward" referenceBundle="forward" returnToDetailViewAllowed="no">
			<Properties>
				<Property name="userIdList" value="${users}"/>
				<Property name="display_order_priority" value="3"/>
			</Properties>
				   <Descriptions default="Forward"/>
			</Action>
		</Actions>
	        
		</View>

	</Views> 
</UWLConfiguration>

only i changed XML file by adding some custom columns in view tag as specified in above XML file. i deployed that PAR file in portal and i uploaded that PAR and we are able to see this customconnector name in the dropdownlist while creating UWL system with this customconnector referencincluding that Xml file with high priority. but those custom columns are not getting reflected in UWL still showing existing columns after cache refresh also.

in this UWL custom connector project from NWDS having some java files also by default generated while creating the project . what is the exactly code we need to add for our requirement of adding custom columns & retrieve values for those custom columns into UWL.

the following are the java files which are there inside that UWL custom connector project(Projectname is CustomGPConnector)

1) CustomGPConnector.java

2) CustomGPConnectorRegistrationService.java

3) ItemActionHandler.java

can you please let me know more about this and please provide ur mail id so that i can reach you personally.

Thanks

Sunil

Former Member
0 Kudos

Hi Yordan

Can you please reply to the above thread.

Regards

Sunil