Call iView from UWL
Hi All,
I need some help in UWL. When i click workitem in UWL i want to call iView and pass some parameter there?
Is there anyway to do this.
Thanks
Vijayh
hi ,
To call an iview from UWL and to send parameters to the iview url. you need to do the XML cutomization.
here is the sample XML customization code.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd' [
]>
<UWLConfiguration version="1.0">
<ItemTypes>
<ItemType name="uwl.task.webflow.TS90100222" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
<ItemTypeCriteria systemId="SHD012" externalType="TS90100222" connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebFlowContainer" cacheValidity="default">
<Attribute name="PathNumber" type="string" displayName="Path Number"/>
<Attribute name="ApproverLevel" type="string" displayName="Approver Level"/>
</CustomAttributeSource>
<CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="ZPMT_CPE" cacheValidity="default">
<Attribute name="PriceExceptionNumber" type="string" displayName="CPE Number"/>
<Attribute name="CPEName" type="string" displayName="CPE Name"/>
<Attribute name="OwnerID" type="string" displayName="Owner"/>
</CustomAttributeSource>
</CustomAttributes>
<Actions>
<Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
<Properties>
<Property name="WebDynproApplication" value="EditCPEApp"/>
<Property name="WebDynproDeployableObject" value="sappi.com/zsd_pmt_cpe"/>
<Property name="DynamicParameter" value="wi_id=${item.externalId}&CPENUM=${item.PriceExceptionNumber}&CPEName=${item.CPEName}&Owner=${item.OwnerID}&PathNumber=${item.PathNumber}&ApproverLevel=${item.ApproverLevel}"/>
<Property name="System" value="SAP_LocalSystem"/>
</Properties>
<Descriptions default=""/>
</Action>
</Actions>
</ItemType>
</ItemTypes>
</UWLConfiguration>
here iam calling a dynpro iview mand passing the dynamic parameters .
check out the links for more info.
Create new UI's for existing workflow tasks with ABAP Web Dynpro and Universal Worklist!
Launching WebDynpro from Universal Worklist
and sdn help
http://help.sap.com/saphelp_nw04s/helpdata/en/72/2091ad4c7b4c229aeb1385195397b2/frameset.htm
sateesh.
Similar Messages
-
Hi All,
I am trying to call a iview from webDynpro using
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content/TestFolder/Iviews/TestECCiview",
WDPortalNavigationMode.SHOW_EXTERNAL,
(String) null,
(String) null,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
(String) null,
(String) null,
"RFKN1-RPNUM="+"71000056");
But i am getting a blank screen, instead of target iview.
Does any one have resolved this type of problem.
Thanks in advance.
Regards,
SridharHi Sridhar,
Try this code.
IWDWindowManager mgr = wdComponentAPI.getWindowManager();
IWDWindow window = mgr.createExternalWindow(
"../PROJECTNAME/APPLICATIONNAME?APPLIATION PARAMETER=" + XX,
"Edit View",
false);
window.open();
Regards,
Nakul -
Is it possible to call a transaction iview from a BSP iview .
i want to trigger a transaction iview when i click a button in my BSP iview .
thanks in advance .
Jhi,
The URL that you get on previewing your Transaction iView is the one that needs to be used in your BSP as:
<a href = "http://sgssmcepdv:52000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.hcl.FLD001!2fSiddharthaID!2fiViewsID!2fMisc!2fepcmID_0" >hello </a>
Te get the url correctly,open the Transaction iView,in the properties look for the property PCD Location
It will be something like
portal_content/com.hcl.FLD001/SiddharthaID/iViewsID/Misc/epcmID_0
Now in place of the '/' replace !2f .
portal_content!2fcom.hcl.FLD001!2fSiddharthaID!2fiViewsID!2fMisc!2fepcmID_0
Now the complete URL would be
http://sgssmcepdv:52000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.hcl.FLD001!2fSiddharthaID!2fiViewsID!2fMisc!2fepcmID_0
Ok.
Then test the BSP Iview.
Regards,
Siddhartha -
Dear Expert,
I have create an iView contains BSP Page.
I want to call it by defining URL to the perspective iView.
I've add this link but still can't access the BSP Page on e-Portal
http://xxx.xxx.com/irj/portal?navigationtarget=roles://portal_content/FLD.ObjetLibrary/FLD.Roles/FLD.CRM/ROL.ALL_MillHead/FLD.Z_EP_ACCT_MANAGEMENT/FLD.ACCT_MANAGEMENT/IVU.CRM.ZCRM_SRV_001
This information, I got from iView PCD
portal_content/FLD.ObjetLibrary/FLD.Roles/FLD.CRM/ROL.ALL_MillHead/FLD.Z_EP_ACCT_MANAGEMENT/FLD.ACCT_MANAGEMENT/IVU.CRM.ZCRM_SRV_001
How to define the URL link so user can access directly to the iView in e-Portal?
Need your help experts...
BR,
RobinHello,
after NavigationTarget=ROLES://
try replacing the slashes for !2f and colon for !3a
/ = !2f
: = !3a
if you still get errors try the following URL:
~~/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2f~~~~
regards,
Rafael -
Issue in calling WebDynpro ABAP iView in UWL
Hi,
We have configured UWL to our ECC system successfully.
In our UWL for a task TS90105432, when the users click on work item in their UWL Inbox, initially UWL launches a standard page in new window. On this page users can see a link u201CNote for Approval Processu201D, when they have to click on this link a web dynpro page needs to launch in new window. But when users click on Note for Approval Process link no action has been triggering / taken place and no error message.
Actually we have created a web dynpro ABAP iView for the TS90105432 - Note for Approval Process in Portal.
Through content admin we can see the preview of Note for Approval Process WDABAP iView. But the problem is not able to call this iView when the users click on Note for Approval Process in UWL.
Shall we need to set any Visualization parameters in SWFVISU? Can you please share your iViews on how we can call this WDABAP iView in UWL
Thanks
PhaniHi,
There are plenty of instructions & discussions about how to launch Web Dynpro ABAP applications from UWL. Just do some searching.
For example you could start with this document:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6
After you know the basics, you could ask help for specific steps or something that you don't understand.
Regards,
Karri -
Close Button for Web Dynpro in an iView launched from UWL
Hi All, this sounds like such a simple thing but its really got me thinking.
Have a web dynpro application launching form the UWL into an iView (using the IViewLauncher, I'm using this so I can change some visual effects of the application with the iView). The application is the LeaveApprover application.
Need a close button on the confirmation screen. Have tried the following code called from a Close button:
try {
String url = WDURLGenerator.getWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"closepage.html");
TaskBinder.getCurrentTask().getClient().sendRedirect(url, 0);
} catch (Exception e) {
e.printStackTrace();
The closepage >>
function closeWindow()
{var currWindow = window.top;
currWindow.opener = window.top;
currWindow.close();
onload run the closeWindow function
This is a test file to close the window....
This works if I use the standard UWL launch but DOES NOT WORK with the iViewLauncher.
Also tried creating an exit plug in the interface view and calling it from my close button, but no luck with either.
Please help. Thanks Brian
Edited by: Brian Carter on Dec 8, 2009 11:54 AM
Edited by: Brian Carter on Dec 8, 2009 11:55 AM
Edited by: Brian Carter on Dec 8, 2009 11:58 AM
Edited by: Brian Carter on Dec 8, 2009 11:59 AM
Edited by: Brian Carter on Dec 8, 2009 11:59 AMHi Brian,
we had a similar problem in the past. We wanted to call a normal Button placed on the WebDynpro View and the close script was saved in the km content in portal.
We solved it with an own project in NWDS including the html Files.
Follow the link and you find our solution. Hope it helps.
Re: Portal navigation problem -
Calling KM navigation iview from ABAP
Hi All,
I am trying to call the KM Navigation iview from ABAP webdynpro view. it is like implement the same functionality as currently available for Repository filters through ABAP coding. I have to create a new Folder in the KM and call the KM Navigation iview for that specific folder. I know KM has provided few new webservices which I can use to create a new folder in the KM repository but I am unable to open the KM navigation iview with the newly created folder through coding.
I am using the navigate_absolute Portal Navigation method to call the KM Navigation iview from ABAP code. Currently it is opening iview with the folder set as root folder in the iview property but I need to open it with the newly created folder through the code. The same sort of functionality is implemented from java code by passing the Business parameter with navigate_absolute method. The problem with ABAP code is that I don't know what is the exact format of the Business parameter to be passed.
In the java code the Business parameter is passed as
Uri=/documents/cprxrpm/46A73F1FEED21B0DE10000000A4241A8:DFM_450_MIT3_SAURABH/RIH/47B44774254208CCE10000000A4241A8:wonder-item-01 :WONDER-ITEM-01
Does anybody have idea how can i implement the same scenario in ABAP and what should be the format of the to be passed as Business Parameter from ABAP code ?
Regards,
VikashIn the abap web dynpro view create an exit out bound plug with url as parameter.
In your wddoinit call the the url. The url can be accessed by previewing the km iview in content management. Hope this helps. -
Need call a method of one iview from another iview
Hi,
There are 2 iviews in a component.
1) FirstView - contains abc() method & xyz() methods
2) SecondView (a popup) - asdf() method
i want to call abc() method from asdf() method. i.e. i want to call a method of the firstview from the secondview.
Note:
1) i couldn't able to copy the code of abc() method to component controller, as it has the code which uses (iview) local attributes (this can be done by context mapping) & main reason is from the method it calls the xyz() method of the same view (again i couldn't call a method of iview from component controller).
2) firstView contain 5 tabs, i want to be in the same tab from which secondview (popup) was called, if i use fire plugs between both view, the current tab will be chnaged (i suppose, not sure).
3) can we use event handlers, if yes how can we do that.
Please provide a better solution for calling a method of view from another view.
Thanks
Maha
Edited by: Maha Hussain on Jan 13, 2009 12:40 PMHi Maha,
It is better to have such methods in the component controller to make it reusable and avoid writing same code again and again.
You can have that method in component controller and call that method on click on a button from Iview1 and can pass the parameters in the mthgod only.
for example.
Say Method abc() which is currently in Iview1 and you are passing values from context say aa bb cc to the method now what i am suggesting is
have that method abc(String aa, String bb, String cc) ;
and call it on click on button in Iview1 and pass the required parameters.
Hope this will help
Regards
Narendra -
Calling BSP Iview from a BSP Iview
How to call another BSP Iview from a BSP Iview ?
Is it the same like we call BSP Iview from a Controller ?
My problem is ..Intially i had only one Iview called from the controller. It was working fine.
I've added some includes in the View and while activating, i got the error msg
+Internal error Occured during runtime generation of the class CLOLkshdksjhfk ....+_
+(Dump id : GENBRANCHOFFSET_LIMIT_REACHED)+_
I found from the forum that, instead of calling all things in a single Iview, we can split that into different Iviews.I did the same. and the error had gone.
My Q is ...
I Have built code for tray (maximize and minimize). It works fine if the controller has One Iview and its not working if the controller has 3 iviews.
How to sort it ? If i call the other 2 Iview s from the parent one, will the prob solved ?
Thanks and Regards,
Kanal.Hi,
Please check this weblog by Brian McKellar. You will surely find a way to avoid the error you mentionned.
[/people/brian.mckellar/blog/2005/04/25/bsp-programming-gen-branchoffset-limit-reached|/people/brian.mckellar/blog/2005/04/25/bsp-programming-gen-branchoffset-limit-reached]
Regards,
Tanguy -
Calling an Portal Webdynpro iView from another Webdynpro iView - Error
Hi,
I have modified the DefaultFramework Page by adding an Alert iView (based on WebDynpro) and assigned this modified framework page to all users. It works fine.
The Alert iView on the Left hand side (right above the Detailed Navigation) consists of links to different WebDynpro iViews in the same Portal.
I have used LinkToAction UI element, on event of click
i am executing this piece of code.
onActionClick (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/folders/X.Iview", WDPortalNavigationMode.SHOW_INPLACE, (String)null, (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, "Called iView Name", (String)null, (String)null);
I have picked up the iView name from the Portal(exact PCD location).
It is not working. Once in a while it worked. But now it is not loading at all.
Please let me know your thoughts on the same.
Thanks
SenthilHi,
Got it solved. User has authorization to execute the page.Their roles were not added in Permission list of that Page.
Added the roles. Now it works fine.
Thanks
Senthil -
Calling xRPM standard iView from custom WD ABAP iView
Hi,
We have an issue regarding - calling xRPM standard iView from WD ABAP Application.
Here are the details.
When xRPM 4.0 application is displayed by clicking the Portfolio Management role,
the item dashboard gets displayed. On the leftside, tabs for Reviews, Reporting Cockpits, Colections etc.
are displayed. Below these tabs, we have a custom tab that navigates to custom WD ABAP applicaiotn.
On click of this custom tab, WD ABAP application gets launched in same window instead of Item dashboard iView.
Everything works good till this point.
The requirement is - an event on this custom WD ABAP applications should navigate to standard xRPM iView (like Item Create or Item overview iView)
we tried Object based navigation & firing a Portal event. But no navigation takes place. It stays on the current page.
Is there any Portal setting need to be done for navigation between custom WD ABAP application and standard xRPM iView?
Your inputs on this will rellay be helpful.
Thanks
BhushanHi,
We could resolve the issue to certain extent.
We used the following.
Interface - if_wd_portal_integration
Method - navigate_absolute
and a PCD location of Item Creation page is passed as a parameter navigation_target.
This opens standard xRPM Item Creation iView.
Similarly we tried opening Item Overview iView by passing ITEM GUID in Business_Parameters parameter.
This opens the Item Overview iView but does not refer to the Item GUID passed and throws following error.
An exception with the type CX_SY_MOVE_CAST_ERROR occurred, but was neither handled locally, nor declared in a RAISING clause
CX_SY_NO_HANDLER CL_RPM_OBJ_MANAGER============CP CL_RPM_OBJ_MANAGER============CM01Z 1
CX_SY_NO_HANDLER CL_RPM_OBJ_MANAGER============CP CL_RPM_OBJ_MANAGER============CM01Z 46
So I need to either pass the ITEM GUID parameter through navigate_absolute method or somehow set ITEM GUID in xRPM context so that when Item Overview iView is displayed, the iView will refer the ITEM GUID.
Thanks in advance.
Bhushan. -
Calling an Portal iView from Webdynpro - Error
Hi,
I have two iViews in a page in my Portal. Both of them are WebDynpro iViews.
The iView on the Left hand side consists of links to different WebDynpro iViews in the same Portal.
I have used LinkToAction UI element, on event of click
i am executing this piece of code.
onActionClick (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/folders/X.Iview", WDPortalNavigationMode.SHOW_INPLACE, (String)null, (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, "Called iView Name", (String)null, (String)null);
I have picked up the iView name from the Portal(exact PCD location).
This is not giving me consistent results.
Please let me know your thoughts.
Thanks
SenthilHi,
Had some permission issues in the loading iView, got that sorted. Now it works fine.
Thanks
Senthil -
Need a call a portal iView from a WebDynPro ABAP Application
Hi,
I have to call a portal iView from the WD ABAP application.
The iView root is e.g.
folder1/folder2/check_workset1/iView
How can we call it using Absolute navigation or Relative Navigation.
I just want to call this path.
Can anyone provide me with a code snippet.
Best Regards
SidHi ,
I am calling the following method in my action call of a Webdynpro ABAP View
CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
EXPORTING
NAVIGATION_TARGET = 'Roles://portal_content/xxxx._and_remuneration'
NAVIGATION_MODE = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_EXTERNAL
WINDOW_FEATURES =
WINDOW_NAME =
HISTORY_MODE =
TARGET_TITLE =
CONTEXT_URL = 'http://xxx.xxx.adsint.biz:50000/irj/portal'
POST_PARAMETERS = ABAP_FALSE
USE_SAP_LAUNCHER = ABAP_TRUE
BUSINESS_PARAMETERS =
LAUNCHER_PARAMETERS =
But it is still noot opening the page for me from the WD ABAP application.
Can anyone let me know , what can be the reason.
Best Regards
Sid -
How to Call standard iView from WebDynpro custom iView
Hello all Experts
I want to know whether there is any way to call (navigate to) standard iView from my cutom WebDynpro iview or not?
If yes please tell me how to code it.
(Points will be awarded for helpful answers)Hi Vinod,
read this document (from pages 7 ).
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62</a>
In addition lok at these links: (Navigation Between Web Dynpro Applications in the Portal)
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm</a>
<a href="http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm">http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm</a>
It may be helpful for you.
Best regards,
Gianluca Barile -
How to call Java Webdynpro from UWL
Hi All,
How to Call the Java Webdynpro Application from UWL by task?
I Know about the TX - SWFVISU, briefly explained about the parameters to be maintanied for approval task from workflow.
What all the necessary parameters (settings) to be maintained while Developing Java WD Application?
Thanks in advacne
GaneshHi Ganesh,
See if the following threads help:
/thread/623279 [original link is broken]
Webdynpro to UWL
Bye
Ankur
xxxxxx (please read forum rules)
Edited by: Armin Reichert on Jan 17, 2008 10:19 AM
Maybe you are looking for
-
Lightroom and preview cache and other related issues.
So I went to open up LR on Friday afternoon (1/30/15) and it wouldn't open. I can't think of anything I had done differently to it, nothing new with my computer. But when I clicked to open it, I got a screen that read, "The Lightroom catalog named 'L
-
Is there a way to "link" 2 video clips?
Hi, I have a single 3 minute split screen video scene (in the timeline) that is made of 2 video clips. Can I link this pair of video clips? It would make resizing easier if I only had to scale a single wire frame, instead of having to try to resize b
-
I cant open Camera Raw in Bridge cs6 - MAC
Hello - I'm using a Mac and use photoshop/bridge CS6. Today as i opened bridge to batch edit photos in camera raw, the "open in camera raw" option was not available to click on. It worked perfectly yesterday and now today it's not. Is there a way to
-
No Toolbar buttons on OV page of serch result entity in Value Help PopUp
Hello Friends, In Service Request, I am calling a value help search of CRM_KNOWART_S/KA SearchView for the field of assignment block "Related Knowledge Articles" (component GSDOCFLOW/HdrDocFlowEF ) . I am getting value help AND RESULTS ARE COMING. A
-
CR 8.5 - Why would inserting a group change the value of a detail field?
I have a report that has a field in the detail called Margin. The Margin field is calculated in my SQL query. I've checked and the data in SQL is still correct... I used the Wizard to setup my basic report. I just added the fields and that's about it