Creating iviews programatically - getting OperationFailedException
Hi,
While creating a iViews programatically I am getting
OperationFailedException exception.
This is the piece of code which is throwing the exception
NewObjectDescriptor IVtoCreate = null ;
try
IVtoCreate = (NewObjectDescriptor) iViewSrv.instantiateDescriptor(CreateMethod.NEW,
"pcd:portal_content/com.sap.pct/every_user/general/iViews/com.sap.km.iviews/com.sap.km.NewsBrowser" ,
request.getUser()); }
catch( ObjectNotFoundException ex)
ex.getMessage() ;
catch( OperationFailedException ex)
ex.getMessage();
I am using EP SP9. and
I want to create a iview from NewsBrowser.
I tried with NEW as well as DELTA_LINK way , still I am getting the same error.
can anyone please help on this
thanks
pk
Hi,
Check the code snippet below.
Object user = request.getUser();
Hashtable env = new Hashtable();
env.put("java.naming.factory.initial", "com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
env.put("java.naming.security.principal", user);
INewObjectDescriptor iDesc = null;
IiViews iSrv = (IiViews) PortalRuntime.getRuntimeResources().getService("com.sap.portal.ivs.iviewservice.iViewsSrv");
try {
Context iCtx = new InitialContext(env);
Context iviewCtx = (Context) iCtx.lookup("portal_content/sample/iViews);
iDesc = (INewObjectDescriptor) iSrv.instantiateDescriptor(
CreateMethod.DELTA_LINK, sampleiViewName ,
(IPrincipal) user);
catch (NamingException ne) {
//logger component statements
Regards,
S.Divakar
Similar Messages
-
Creating iViews Programatically
Hi all,
I have got a requirement to create iviews programatically.
The detailed requirement is :
Intially an excel file which is placed in clients pc will have all the information related to the kind of iViews required, like the name, properties, PCD , of which type etc., Now from portal we need to have the facility to access this excel file and read the information mentioned and create appropriate iViews.
If anyone has already implemented such a kind of requirement or has got any bit of idea on the same can pls share.
Thanks In Advance,
Vipin.Hi Vipin,
You could instead create an excel sheet with macros which use the data in the excel sheet to create an XML file and then upload that file into the portal to create PCD Content.
Refer to this document, it talks about "How to Automate Content Creation via XML (XML Content and Actions) (NW 7.0)"
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207a2141-c870-2910-e080-90c920b24f47
Thanks,
GLM -
Cannot create iView from PAR file
I am trying to create an iView from PAR file. But when I select the option,
"Portal component - create an iView from a portal component contained in a deployed portal archive (PAR) file"
and click next, I get the following error.
Error______________________________________
Step 1: Portal Archive Selection
No templates to display. You are not assigned to any existing templates.
I have portal_configurator and developer roles assignmed to myself. Which other role do I need? I cannot get admin role.
Note: Other users with admin roles can create iViews.Hi
What is your portal version details ?
In EP 7.0 you do not have the option -- New From PAR.
So to create IView from Par, you should select the option New --> IView and then there will be an option to select par file.
Otherwise
1.Check if your par file is deployed on server.
2. Check the portalapp.xml, if you have configured your components properly.
Cheers
Chinmaya
reward for helpful answers -
Error while creating iview of a BI report in CE
Hi,
I have created a iView of type BEx Web Application iView
the steps are
1st selected SAP NetWeaver BI
then in parameter tab i have provided TEMPLATE=mytemplateid which i have copied from my bi report url.
the bi system is already maintained in portal but when i am trying to preview the iView its getting error.
Portal Runtime Error
An exception occurred while processing your request
Exception id: 05:51_24/10/08_0026_22886750
See the details for the exception ID in the log file.
please help.Hi,
Check this Thread may be usefull.
/message/3079029#3079029 [original link is broken]
Thanking You,
Gopal -
How to create iView for WDPApplication deployed in another server instance?
hi experts,
I am in the Enterprise Portal (Server01), need to create iViews for deployed WDP applications (Server02).
When creating a new iViews, i can only get WDP applications deployed in Server01 as in [this screen|http://img98.imageshack.us/img98/6361/newiview.png].
My question is, is it possible for me to create iViews in Server01 for WDP applications deployed in Server02? How??
Thanks in advance.
Regards,
kityeinHi,
You can either go with an [url|http://help.sap.com/saphelp_nw70/helpdata/en/4c/eee2bedf3b4082b14a933e5ee63472/frameset.htm] iView or might want to check with [federating|http://help.sap.com/saphelp_nw70/helpdata/en/67/7e70424edcc553e10000000a1550b0/frameset.htm] your portals.
Kind Regards,
Mrityunjay. -
Want to create iView using iView teplate ?
Dear Experts ,
I want to create iView using exixting template .but when I click the check box to create iView using exixting templates
and hit next its not taking me to list options of existing teplate.
I am not getting any error just getting white page instead of taking me to the liat of all existing templates.
Any Idea Why its behaving like this.
Aswers will be awarded accordingly
Rgrdsdid you check the log file under http://server:port/nwa-monitoring-logs and traces-sap logs
are you accessing the portal with fully qualified domain name
reward points if helpful -
Unable to create iView from template
Hi,
I'm unable to create new iView from a template
If I try to create a new iView I get no selection of iView templates.
The step 1 of Template selection shows the message:
"No templates to display. You are not assigned to any existing templates."
I have the super_admin role but I cant see any tempates.
I checked the template folder in PCD and found my role has access to it and to the templates objects.
I have searched for an OSS but no luck.
Does anybody know a solution for this problem.
Were on NW2004s SP14
Best Regards,
RasmusHi,
The reason for this is in-sufficient permissions to the user on the applications folder.You can resolve this by navigating to :
System Administration -> Permissions -> Applications , right click on the folder and open permissions. Then assign the <b>content_admin_role</b> to this folder.
The issue will be resolved.
Regards,
Senthil K. -
How to create iView to run Web Service
Hi,
I need create iView on EP7 NW2004S SP12 portal to run Web Service provided on SRM 6.0 system.
Here is how I have attempted to create the iView:
1. Right click and select New =>iView.
2. Select "iView Template" radio button.
3. Select "Web Service iView" radio button to specify Web Service Template.
4. Enter name and ID of iView.
5. Select System Alias of System defined earlier.
At this point, the portal attempts to connect to the ECC system, and it fails with this error, and I cannot finish the create of the iView.
Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
Here are the key parameters defined for the System referenced by the system alias:
WSDL_URL:http://sap2.mycompany.com:50000/SRM-MDM/SRM_MDM
Logon Method:UIDPW
User Mapping Type:admin, user
CodeLink:com.sap.portal.systems.webservices.webservice_system
I've also created a usermapping for the Everyone group, and provided the userid and password for the system alias successfully.
Thanks,
KevinThank you for that information. I had not previously seen a procedure on how to setup an iView to run a web service.
I had created the System just as described in this blog, but I still have a problem. When creating the iView (on the last step of process when I click Finish), the portal attempts to connect to the SRM system, and it fails with the error highlighted below.
Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
I get an error in System Administration as well when I test the connectivity for the System object.
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the backend application using the connector defined in this system object
Results:
Retrieval of default alias successful
Connection failed. Make sure that Single Sign-On is configured correctly
How does the security need to be setup to make this work? Or what could be causing this error? I do have SSO configured between the portal and the target system.
Thanks,
Kevin -
How to create iview for a GP screen
Dear Experts
I have created a GP for leave request. In this GP a user will raise a leave request and manager will approve the request.
In this GP the end user should get access to the leave request form.
For that I need to create an iview accessing the leave request form and provide access to this iview to the user.
But how can I create iview to access the leave request screen ( callable object).
Appreciate your response.
regards
Shanmukha Rao Banisetti.Hi,
check the below links that will help you.
You need to create a url iview based on the creation of process
how to to add gp process as portal role workset
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92811997-0d01-0010-9584-f7d535177831
Hope that helps you.
Raghu -
REG: Creating iviews using ITS Services
Hi Experts,
We have ECC 4.7
Is there any possibility of using the ITS services and creating any types of iviews and get into the portal without ESS/MSS.
Please give your valuable suggestions.
Thanks.
Regards,
Eswari.Hi,
I'm not so sure if I understood you correctly but you can create iViews using the iViews wizard in the portal.
For creating ITS (Web based access to transactions) iViews you can use the transaction (WEBGUI) iView:
http://help.sap.com/saphelp_nw04/helpdata/en/88/266a3e54a2e946e10000000a114084/content.htm
And for customized pages on ITS you can use the IAC iViews:
http://help.sap.com/saphelp_nw04/helpdata/en/5a/6898dddb7afd44b07ca4e3bb15f676/content.htm
For that you will need to create and configure a 'System' object via the portal system landscape ( System administration -> System configuration) The major parts to be configured are:
Transaction & IAC iViews: (The parameters that should be configured)
Connector section u2013 SAP Client, SAP System ID (SID), Server Port.
ITS section (for WebGUI) u2013 ITS Host Name, ITS Path, ITS Protocol
User Management section - Logon Method (SAPLOGONTICKET, UIDPW, X509CERT) , User Mapping Type (for user mapping personalization)
Let me know if you need anything else.
Ehud. -
Address iView not getting displayed in ESS
Hello Everyone,
When I am logging into ESS with an User of SAP systen, I am unable to see the Address iView of the corresponding employee to whom the user is assigned.A number of iViews is getting displayed for different countries but I am unable to get the iView which I am looking for.Even when I am clicking on the iViews which are getting displayed no data is getting displayed.I am using country grouping 40 i.e India.I have also set the parameter in the User profile(UGR 40 and UCN IN).
Also for some of the links, when I click them the page is getting refreshed continuously without any display.Bu twhen I am tyring the view the same using the PZ screens it is coming properly.
Please let me know what settings are required to get the proper iView.
With Regards,
Kaustuv Goswami.Hi Kaustav,
Go to the portal->content administration->webdynpro and see in the left pane where all the deployed applictions will get displayed.You can chekc the same thru SDM also.
For deployment, you can download the .SCA file from the service market place and deploy it thru SDM.
Regards,
Sharadha -
For the first time, I'm trying to use adobe premiere elements 10 that came with my pc Windows 8. I created a single project, saved it but cannot open it. My pc shows the file I created but I get an error message that says this type file is not supported or the codex is not installed. As a test, I created another very small project and get the same error message, when I try to open it. Pls give me a simple answer, a refund or a phone
mike frischenmeyer
What computer operating system is your Premiere Elements 10 running on? And, what video card/graphics card does that computer use?
Is this the first time you are using Premiere Elements 10 or have you worked with it before successfully? There is no easy solution until we
know the details and troubleshoot to determined what caused the problem.
1. Can you open a new project?
2. After you saved/closed the problem project, did you move, delete, or rename any of the files/folder that were related to the source media
for that project?
3. Please review the Adobe document on troubleshooting damaged projects.
Troubleshoot damaged projects | Adobe Premiere Elements
4. What are the steps that you are using to reopen this saved closed project.
a. File Menu/Open Project/Name of Project
b. Other
Please review and consider and then we can decide what next based on your further details and results..
Thank you.
ATR -
Error While Creating Iview?
Hi Everyone,
I Got the error while creating iview in the portal.
Just i went Portal COntent->Folder->New->Iview
500 Internal Server Error
SAP NetWeaver Application Server 7.00/Java AS 7.00
Failed to process request. Please contact your system administrator.
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
The initial exception that caused the request to fail, was:
java.lang.NoClassDefFoundError
at com.sap.security.core.server.csi.URLChecker._isValid(URLChecker.java:289)
at com.sap.security.core.server.csi.URLChecker.isValidURL(URLChecker.java:1202)
at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:697)
at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.applyWSRPTemplate(AbstractURLGenerator.java:1235)
at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.computeWebResourcePath(AbstractURLGenerator.java:945)
at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.computeWebResourceURL(AbstractURLGenerator.java:1078)
at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.getWebResourceURL(AbstractURLGenerator.java:223)
at com.sap.tc.webdynpro.services.sal.url.api.WDURLGenerator.getWebResourceURL(WDURLGenerator.java:377)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:407)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Thanks
SubbaraoHi Subbarao,
Is this a new installation. Check whether all post installation tasks (like patch upgrade) are completed.
Also try restarting the server.
Regards.
Santhosh -
Hi i want to create BAPI to get approver of the employee
hi i want to create BAPI to get approver of the employee
in this BAPI if there are two approver for that employee than i need both approver personal no.
please help me
thanks in advanced.Hi
I doubt whether there is a direct Standard BAPI for that.
The below report will get you the employees approver org position. Even if there are two approvers are there, it will display both the approvers position.
*& Report ZGD_TEST_HR_ORG_STR
REPORT ZGD_TEST_HR_ORG_STR.
DATA: plvar LIKE hrsobid-plvar.
DATA: otype LIKE hrsobid-otype.
DATA: sobid LIKE hrsobid-sobid.
DATA: date LIKE sy-datum.
DATA: leading_position LIKE hrobject OCCURS 1 WITH HEADER LINE.
DATA: org_agent LIKE swhactor.
DATA: lv_sw_vapos TYPE xflag,
lv_subrc TYPE sy-subrc.
DATA spfli_wa TYPE spfli.
DATA carrid_buffer TYPE spfli-carrid.
IF plvar IS INITIAL.
CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR'
IMPORTING
act_plvar = plvar
EXCEPTIONS
no_active_plvar = 1.
IF sy-subrc > 0.
MESSAGE e300(5w) RAISING no_active_plvar.
ENDIF.
ENDIF.
IF otype IS INITIAL OR sobid IS INITIAL.
otype = 'US'.
sobid = sy-uname.
ENDIF.
CALL FUNCTION 'RH_GET_LEADING_POSITION'
EXPORTING
plvar = plvar
otype = otype
sobid = sobid
date = sy-datum
auth = ' '
consider_vac_pos = space
TABLES
leading_pos = leading_position
EXCEPTIONS
no_lead_pos_found = 1
OTHERS = 2.
IF sy-subrc > 0.
MESSAGE e802(5w) WITH otype sobid
RAISING no_lead_pos_found.
ELSE.
LOOP AT leading_position.
write : / leading_position-otype,
leading_position-objid.
ENDLOOP.
endif.
Hope it helps you -
How to programatically get a Java version (Not default one) ?
Hi, Java Guru,
Does anyone know how to programatically get a Java verstion through its full path ?
For example, there are 5 JVM installed on a user's machine:
JRE1
JRE2
JRE3
JRE4
JRE5
How do you know the Java version under JRE3 ?
From command line, you can simply type
JRE3/java -version
But how to programtically ? (I thought about running a system call, then check the standout, but feel it is not reliable, is there any other way to do it ?)
Thanks in advance.No. That is not waht I want. Using System.getProperties() only can get the default Java information.
Assume there are many Java version installed on a user's machine and we know all java Path.
JRE1/bin/java
JRE2/bin/java
JRE3/bin/java
JRE4/bin/java
JRE5/bin/java
JREn/bin/java
JREn/bin/java is the latest one installed, that is, default Java.
I want to know the JRE3 version before I use it, then how do I know JRE3 version PROGRAMTICALLY ?
Anyway, thanks for response.
Maybe you are looking for
-
Problem with listing directory after upgrade to Lion
Hi all, I have a script that I used for months that "suddenly" stopped working after i switched to OSX Lion #target illustrator var listFolder = Folder.selectDialog( "Select a folder", "~" ); alert(listFolder); if ( listFolder != null ) var folders
-
NW 7.4 as java disable dsr logs
hi all I testing perfomance of my custom JavaEE app . When i run test Netweaver generate many huge logs in /usr/sap/SID/J00/log/dsr/ In older versions of NW for deactivating uses Visual Administrator . But how deactivate this dsr logs in NW 7.4 (no
-
Connection object Number Ranges
Hi Experts, Internal number range was not working in Connection object When I press enter at ES55 screen the following message was coming Internal number assignment not possible for structured key Diagnosis You have not entered a connection object, d
-
Error starting 4.0 console on Solaris 10
When I bring up the console (es-start -c -- -p 1611) the login window appears, and after I enter the username, password, and server name, I get the following text in a popup window: WARNING Communication could not be established with the server. The
-
This is weird, i am not good at open inquiry.. but think something simple is not set. I did have synching initially when accepted icloud synch, instead of direct connect of iphone and PC. Something has changed on Calendars and thus appts are not sy