Creating PCD folder programmatically

Dears
i have a requirement of creating folders in PCD directory programmatically
any hope
thanx i advance
regards
Lakshmikantha

Hi Lakshmikantha,
this depends a bit if the folder should be within a role (that's an IRoleFolder) or a folder on the "left" side, i.e. a real PCD folder.
Anyhow, you have to bind the corresponding object to the parent context, see for an introduction http://help.sap.com/saphelp_nw04/helpdata/de/df/eb5c42da4de92ce10000000a1550b0/frameset.htm and around.
Hope it helps
Detlev

Similar Messages

  • Create  PCD folder using web dynpro Java

    Hi All ,
    I would like to create pcd folder structure using web dynpro java
    i.e. My folder at top level and under this there will be iviews , roles , worksets  etc.
    Is it possible using WDJ ?
    I have checked the below link , but for folders I did not get anything.
    http://help.sap.com/saphelp_nw04/helpdata/en/44/6aaf92f5a23672e10000000a114a6b/frameset.htm
    Can you please help me ?
    Thanks,
    Sandip

    Hi,
    Please refer to the following document
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
    The same can be implemented in webdynpro also.
    Regards,
    Raju Bonagiri
    Edited by: Raju Bonagiri on Sep 3, 2010 8:36 AM

  • Create PCD folder via API

    How can i create a new folder in pcd via java APIs??
    Regards

    Hi,
    The following code creates a folder under the Portal Content directory:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    InitialContext iCtx = null;
    try {
         iCtx = new InitialContext(env);
    //   Get the fathetr context
         IPcdContext myPcdContext = (IPcdContext) iCtx.lookup("portal_content");
    //   Create an attribute for the name
         Attribute myAttr = new BasicAttribute("com.sap.portal.pcm.Title","New Folder Name");
         Attributes myAttrs = new BasicAttributes();
         myAttrs.put(myAttr);
    //   Create a subcontext with the predefined attributes
         myPcdContext.createSubcontext("NewFolder", myAttrs);
    } catch (NamingException e) {
         e.printStackTrace();
    Best regards,
    Avishai Zamir

  • Creating a Folder and uploading file into that folder Inside OneDrive in Office365 programmatically

    I am using this below code to create a folder inside onedrive in office365,but i cant able to access the url for accessing my personal onedrive,it causing error "Cannot connnect to the server"
     using (ClientContext clientContext = new ClientContext("https://claysys123-
    my.sharepoint.com/personal/anju_claysys123_onmicrosoft_com/Documents/Forms/All.aspx"))
                    SecureString passWord = new SecureString();
                    string currentyear = DateTime.Now.Year.ToString();
                    foreach (char c in "MyPassWord".ToCharArray()) passWord.AppendChar(c);
                    clientContext.Credentials = new SharePointOnlineCredentials("username", passWord);
                    Web web = clientContext.Web;
                    clientContext.Load(web);
                    clientContext.ExecuteQuery();
                    clientContext.Web.Folders.Add("https://claysys123.sharepoint.com/_layouts/15/start.aspx#/Shared%20Documents");
                    clientContext.ExecuteQuery();
    but whenever am executing this clientContext.Web.Folders.Add("https://claysys123.sharepoint.com/_layouts/15/start.aspx#/Shared%20Documents");
                    clientContext.ExecuteQuery(); causes Error "cannot Connect to The Server"..pls help me as soon as possible..
    please give me sample code to get rid of this problem.

    Creating folder in One drive is equivalent to communication with document library. Here are all the samples to create folder in document library.
    http://social.msdn.microsoft.com/Forums/silverlight/en-US/985bab38-7e81-498c-97d8-534e6ee4cf11/how-to-create-folders-based-on-logic-using-client-object-model-2013?forum=sharepointdevelopment
    Bala

  • Creating PCD object via API

    Is is possible to programmatically create PCD objects such as iViews/Pages etc.?

    Hi,
    The way to create PCD objects such as iViews and pages is documented in the following link in the help portal (Portal --> Developer Guide --> Developing Applications --> Creating Content --> Managing iViews and Other PCD Objects:
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/ea5c42da4de92ce10000000a1550b0/frameset.htm
    Here's an overview for creating an iView from a PAR and adding it to the folder at pcd:portal_content/myFolder :
    IiViews iViewSrv = (IiViews)
        PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
    INewObjectDescriptor IVtoCreate = (INewObjectDescriptor)
        iViewSrv.instantiateDescriptor(CreateMethod.NEW,
            "par:/applications/myProject/components/myComponent",
                request.getUser());
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
        IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
    InitialContext iCtx = null;
    try
        iCtx = new InitialContext(env);
        String folderName = "pcd:portal_content/myFolder";
        Context ctx = (Context)iCtx.lookup(folderName);
        ctx.bind("myNewHelloIV", IVtoCreate);
    catch(Exception e)
    Hope this helps.
    Daniel

  • Error when creating a folder ,iviews in the portal

    Dear sap gurus ,
    I m facing a error when  creating a   Folder or an iview in my portal i'm using EP 7.0 sp11 ,The error is :
    Portal Runtime Error
    An exception occurred while processing a request for :
    <b>iView : pcd:portal_content/com.sap.pct/admin.templates/iviews/editors/com.sap.portal.defaultFolderWizard
    Component Name : com.sap.portal.admin.defaultwizards.DefaultFolderWizard
    SQLException is not transient, error code = 1654, sql state = 72000 Batch rolled back. Caused by java.sql.BatchUpdateException: ORA-01654: unable to extend index SAPSR3DB.SYS_C004057 by 128 in tablespace PSAPSR3DB at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343) at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10698) at com.sap.sql.jdbc.basic.BasicPreparedStatement.executeBatch(BasicPreparedStatement.java:263) at com.sap.sql.jdbc.oracle.Oracle10gPreparedStatement.executeBatch(Oracle10gPreparedStatement.java:100) at com.sap.sql.jdbc.direct.DirectPreparedStatement.executeBatch(DirectPreparedStatement.java:1129) at com.sap.sql.jdbc.common.CommonPreparedStatement.executeBatch(CommonPreparedStatement.java:991) at com.sap.engine.services.dbpool.wrappers.StatementWrapper.executeBatch(StatementWrapper.java:270) at com.sapportals.portal.pcd.pl.AttributeHeadersTable.insert(AttributeHeadersTable.java:259) at com.sapportals.portal.pcd.pl.PlObject.save(PlObject.java:518) at com.sapportals.portal.pcd.pl.PlContext.createSubcontext(PlContext.java:544) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChildOnPersistence(XfsContext.java:1374) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChildAndNotify(XfsContext.java:1128) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChild(XfsContext.java:1087) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createSubcontext(XfsContext.java:843) at com.sapportals.portal.pcd.gl.xfs.BasicContext.createBasicSubcontext(BasicContext.java:190) at com.sapportals.portal.pcd.gl.PcdPersContext.createSubcontext(PcdPersContext.java:191) at com.sapportals.portal.pcd.gl.PcdFilterContext.filterCreateSubcontext(PcdFilterContext.java:254) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:147) at com.sapportals.portal.pcd.gl.PcdGlContext.createSubcontext(PcdGlContext.java:440) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:624) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:619) at com.sap.portal.admin.wizard.folderwizardpanes.SavePane.doAfterSubmit(SavePane.java:59) at com.sapportals.admin.wizardframework.core.WizardInstance.doPost(WizardInstance.java:356) at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:174) at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:99) at com.sapportals.admin.wizardframework.AbstractDynamicWizard.doContent(AbstractDynamicWizard.java:98) at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209) at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215) at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753) at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240) at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522) at java.security.AccessController.doPrivileged(Native Method) at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156) 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:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160) 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:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) .
    Exception id: 10:50_23/11/07_0005_16892850
    See the details for the exception ID in the log file</b>
    Thanks and Regards,
    sathya

    Hi Sathya
    The following line in your log tells you what is wrong:
    ORA-01654: unable to extend index SAPSR3DB.SYS_C004057 by 128 in tablespace PSAPSR3DB
    This is a configuration that you or the dba people need to do. The first thing I would check is if autoextend is on/off on your tablespace PSAPSR3DB. If it's 'off' you either need to put it to 'on' or manually extend the size of your tablespace depending on how much harddrvive space you have to play with. Here is a more detailed solution on how to do it:
    Oracle Error : ORA-01654: unable to extend index string.string by string in tablespace string
    Cause: Failed to allocate an extent of the required number of blocks for an index segment in the tablespace indicated.
    Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated.
    Br
    Göran

  • PCD folder structure best practices

    Hi All,
    I'm in de process of modeling the PCD folder structure and would like to get some hints on the best way of doing that.
    I've read Managing Big Portals 1 and 2 and some issues made a lot of sense to me.
    Some specifics:
    -My portal should support three languages, this will specially be the case for KM-related iViews (news, documents)
    -The portal has the perspective of growing considerably in the following months/year following a descentralized KM content management model, possibly moving towards descentralized PCD content management
    I'm leaning towards the following structure:
    KM News
    English
    Roles
    Pages
    Worksets
    iViews
    Portuguese
    Spanish
    KM Documents
    +English
    Portuguese
    Spanish+
    Collaboration
    All Languages
    External Apps
    All Languages....
    Administration
    All Languages
    I still couldn't find a solution I like to the fact that some iViews/Worksets will have the same name for different users..
    Any comments? Sugestions? 
    Thanks in advance!
    Günther.

    frobnicate.foo wrote:
    When the Action has to access some elements in the main frame (e.g. it has to get some data from the currently selected node in the tree), how should this be accomplished? Should I use a static reference of the main frame in my application-class (which holds the main()-method)? Or should I pass in the main frame into the Action while creating the instance?I would pass the main frame to the action(s) that need it. Having a public static member to access your application makes it available to everything in your program, not just the stuff that needs it. In strict OO design, you should shoot for as much data hiding as possible.
    And another related question: Is it common to use the same instance of an Action to use it e.g. for a menu bar and for a button?Yes. That is the point of Actions. If you didn't reuse an Action you'd have duplicate code, once for the menu item and again for the button.
    What if I wanted to have basically the same Action (i.e. the action being performed is the same) but give it two different labels?Although it's been awhile, I seem to recall that if you call setText() on the button/menu item, it "overrides" the name of the Action. e.g. if you have an Action with its NAME property set to "Action", then this menu item will display "Action":
    item = new JMenuItem(action);But this menu item will display "New Text":
    item = new JMenuItem(action);
    item.setText("New Text");

  • Creating a folder on an SMB share using a Mac

    Hi everyone,
    This is more of a question than a problem I'm trying to solve, really. Though the answer might help me better explain the issue to our security team.
    Our environment has multiple Windows file servers, both 2003 and 2008. If one of these SMB shares is accessed from a Mac and the user creates a folder, will the ACLs on the share that are set to cascade actually cascade to this newly created folder? We've had issues in the past where ACLs that are supposedly set to cascade on a shared folder are not present on sub-folders created from Macs.
    Next question: if the share resides on a netapp device, do the same rules apply? The Macs are still connecting to these shared folders using the SMB protocol.
    All Macs are bound to our 2008 AD domain and use network accounts with local homefolders. The issue seems to happen when one or both of the following things happen:
    1. A Mac user copies/creates a folder on a Netapp share and for some reason it doesn’t inherit rights correctly
    2. We move the folder from one share on an actual Windows server to the Netapp and it doesn’t take permissions correctly.
    Please let me know if you need any other information.

    Let's put it this way: I'm asking on a Mac site because the people on non-windows support sites are WAAAAY more interested in talking about problems and solutions involving things other than Windows.
    I'm fairly certain that the windows servers ARE respecting their own inheritance rules, barring any major bugs and the like which someone may know about...
    The isue isn't with Macs moving shares to a netapp, it's with a share being moved to a NetApp that has folders created by a Mac. Talking with our security team further, it seems the problem may be limited to shares resident on a NetApp or moved from a Windows server to a NetApp.
    I was primarily asking to see if anyone knew of any issues with these particular situations or had experienced something similar and had dug into it any deeper with F5 (NetApp vendor).

  • Error while creating a folder in business area

    hi all,
    I am trying to create a folder in a business area using View.It is giving me the following error.
    View contains no items,folder will not be created.
    May i know the reason why it is prompting this error?
    There are items in EUL and i also checked in the backend as well.
    Thanks in advance
    kiran

    Hi Rod west,
    Thanks 4 replying me.
    But i dont have any columns with timestamp.
    I have columns with date,number and varchar.i unchecked the date and then tried creating a folder.
    But still the problem persists
    can u please tell me ,What else may be the problem?
    Thank u
    kiran.
    Edited by: user589042 on Sep 29, 2008 2:40 AM

  • Permissions for creating a folder in Bi Publisher

    Hi All,
    I am unable to create a folder in Bi Publisher Shared Folder.
    Regards,
    Vishwanath

    hi vishwam,
    do u have permissions that for u r login user? please check the permissions
    Bi Publisher-->Admin>Roles and Permissions>Add Folders: ( Login User name)
    Thanks,
    Saichand.v

  • I am trying to create a folder and save it onto my desktop but apparently I do not have permission to do so. How can I change this?

    I am trying to figure out how to create a folder on my desktop. For some reason, my desktop folder is no longer available and whenever I try to set one up, an alert states that I do not have permission to create one. I don't know what to do.

    I think you need to repair user directory permissions.  Follow these instructions:
    http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/

  • LR 4 & 4.1 can't create new folder manually during photo import

    Windows 64, i7, 12GB RAM
    I don't seem able to create a new folder manually on photo import.  This still works fine on the same PC with LR3.6.  Anyone else seeing this?  Thanks.

    I've sometimes found the 'Make New Folder' option to be a bit hit and miss on Win7....so I generally avoid it. In your case, wouldn't it be easier to have Lightroom create the folder for you by setting up your Destination panel as follows:
    Obviously the selected target parent folder in your case would be "Photos Working Folders", use "Organize: Into One Folder", tick the Into Subfolder box and enter the name of the sub-folder you want, e.g. raw0015. As you can see, if the sub-folder doesn't yet exist, Lightroom then shows you that it will be creating it for you.

  • I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or

    I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or there could be a permission problem.   Make sure you have proper authorization on the server and the server is properly configured.  File activity incomplete. 1 file(s) or folder(s) were not completed.  Files with errors: 1 /html

    Nobody can tell you anything without knowing exact site and server specs, but I would suspect that naming the folder "html" wasn't the brightest of ideas, since that's usually a default (invisible) folder name existing somewhere on the server and the user not having privileges to overwrite it.
    Mylenium

  • When I want to organise my bookmarks most of the options are greyed out and cannot be used including create new folder! Help

    '''''''''bold text'''''''''
    When i want to organise my bookmarks most of the options on the organise bookmarks menu are greyed out and cannot be used - including create new folder etc. Help please.

    Make sure you are not in the Private Browsing Mode:
    File > Private Browsing is UNCHECKED.

  • We have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc. from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when

    Hello All,
    we have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc.
    from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when we are trying to access the share folder with IP it asking for credentials i have type again and again
    correct credential but unable to access that. If i re-share the folder then we are access it but when we are restarted the system then same problem is occurring.
    I have checked IP,DNS,Gateway and more each & everything is well.
    Pls suggest us.
    Pankaj Kumar

    Hi,
    According to your description, my understanding is that the same shared folder can be accessed by name, but can’t be accessed be IP address and asks for credentials.
    Please try to enable the option below on the device which has shared folder:
    Besides, check the Advanced Shring settings of shared folder and confrim that if there is any limitation settings.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • Return Order Changed/Re-assigned to Diff Sales Order

    Hi All SD gurus, I have a very weird case here and am wondering whether anyone can gives me some leads here. A return order ( customized ) was created with reference to a Sales Order. A subsequent return delivery and Post Goods Receipt was performed.

  • JPopupMenu in one frame is not closing while clicking on the another frame

    Hi friends, I have a web application which is manily applet oriented. I have two frames in the page on which i have loaded separate applets. One on the left side an the other on the right side. I have implemented a popup using JPopUpMenu in the left

  • How do i burn dvd from iMovie

    How do I burn dvd from iMovie.  iMac has yesomite installed.

  • BIOS and sensors problems on MSI MS-7031 (RS350M)

    Hi, I got problem with BIOS, I cant set CPU Warning temperature because buzzer is making a lost of noise. I`m setting warning temp to 70C my CPU in BIOS is at 45C (I check temperature with digital multimeter too and it`s about 40-45C) Fan1 are runnin

  • Photomerge in CS3 and CS6

    I run two versions of Photoshop on an old and a new Mac. Ihave some photos intended for a panorama, not very well matched - but in CS3 I easily get a very convincing panoramic merge, working largely by hand, it's true. In CS6 I can't persuade it even