Creating worksets??

Hi all,
      Is there any way of creating a workset programmatically?
I've created an iView & added it to a page programmatically.Now,I wud like to add my page to a workset.
Any help wud be greatly appreciated.
Thanks & Regards,
M.Subathra

What I meant is
Using API , it is not possible to create Roles and Worksets
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/fd/ea5c42da4de92ce10000000a1550b0/frameset.htm">Manage PCD objects</a>
thanks for updation
pk
Message was edited by: PK G

Similar Messages

  • Creating worksets via API

    Hi all!
    Is it possible to create and change worksets dynamically via API? I have found documentation how to read pcd objects and their properties but not how to edit pcd objects:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401
    best regards
    Michael

    Hi Michael,
    (1) To change workset attributes, get the IPcdContext object for the workset, then do something like this:
    ModificationItem[] mods = new ModificationItem[1];
    mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,new BasicAttribute("com.sap.portal.navigation.MergePriority", new Double("75")));
    myPcdContext.modifyAttributes("",mods);
    (2) To create, you could simply bind a new context to the folder you want to place the workset, and set all the attributes (most important, object class and name). This is a little tricky, and there may be side effects I haven;t thought of.
    For iView, you would use the IiViews semantic object to create the iView, and this object would take care of almost everything for you. But there is no workset object.
    Hope this helps.
    Daniel

  • How Can I Create a new Role in an PCD address?

    Hello EveryBody,
    I need to develop a new class that it can manage SAP Portal roles. I got how to recover all the roles of a user or how to recover all the roles in a PCD path. Now I have the problem when I try to create a new role in a PCD path.
    The code that I have to do that it is this:
    try {
    *     IRoleFactory iRoleF = UMFactory.getRoleFactory();*
    *     IRole nuevorol=iRoleF.newRole(pcdPath+nameRol);*
    *     nuevorol.setDisplayName(nameRol);*
    *     nuevorol.setDescription(descripcionRol);*
    *     nuevorol.commit();*
    *     return true;*
    catch (Exception e)
    *     return false;*
    This code it works and it makes a new Role but I donu2019t know how to create this role in a PCD path. Could you help me with this?
    This it is a urgent task that I have to develop, please I need help. Thanks in advance.

    Hi,
         Now I understood your question. As of now, I think there is no api which creates workset and roles in pcd. API are available for iView, page, system and layout only.
    For creation of iView, page etc, check this blog.
    PCD II: Creating Portal Objects
    For role and workset creation, there is another tool used. Check these blogs.
    SP15: XML Content and Actions
    Mass Creation of Portal Content - Generic Creator
    If you want to use this tool functionality in code, then check this blog.
    Using the XML upload content and actions dynamically
    If you are on NW7.1, then check this article.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40c72897-c7e6-2a10-e98a-af81b89084f4
    Hope these will help. Good luck.
    Regards,
    Harini S

  • How to a ssign the iViews & Workset of the Role

    Hello gurus,
    Listed below are the procedures for organizing the reports within the Role:
    a. Create a workset for each of these folders in the role
    b. Assign the iViews/Pages currently present in the folders of the role to the newly created workset
    c. Delete the folders from the role
    d. Assign the worksets to the role
    I've created a Workset to assign the iViews, how do I assign iViews to the new Workset?
    And how do I assign the Workset to the Role?
    Thanks in advance for any helps.
    Regards,
    Niki Nguyen

    Hi Niki,
    - Open the Workset and then right click on the iView in the PCD and select "Add iView to Workset". Close the Workset.
    - Open the Role and then right click on the Workset in the PCD and select "Add Workset to Role".
    Reward Points of helpful.
    Thanks,
    Abhishek

  • Service map and workset map iview

    Can any one please provide me with a good documentation for creating Service map and workset maps in SPA portal.

    Hi Raj,
    Before posting for documentation help, just browse through help.sap.com, you could find really valuable help there.
    For your reference some of the useful links are as below -
    [Navigation using Workset Map iView|http://help.sap.com/saphelp_nw70/helpdata/en/ae/ed9576d3e94ec9b440dfe3a8db9cbf/content.htm]
    [Creating Workset Map iView|http://help.sap.com/saphelp_nw70/helpdata/en/84/f8c4400c2d712ae10000000a155106/content.htm]
    [Navigation using Service Map iView|http://help.sap.com/saphelp_nw70/helpdata/en/a1/c64960cb1e4c4293ce6d8eaed02ff5/content.htm]
    [Creating Service Map iView|http://help.sap.com/saphelp_nw70/helpdata/en/5b/bc12311911458993849a91f3f20dec/content.htm]
    Hope these help you out
    Regards,
    Shailesh

  • Need something similar to the Workset Map iView

    Hello,
    I'm looking for something that is very similar to the workset map iview and was hoping someone could help me out. The problem for me using the workset map iview is that it only pertains to one role. I basically need an entry point that can point to several different items from different roles based upon the roles a current user has. I guess you could say much like a site map but we want it to look like the workset map iview.
    Any help would be greatly appreciated.
    Thanks,
    -Tamara

    Hello Shibendra,
    What u can do is create KM Navigation Iview and assign that  Iview to Workset and that workset to role.
    now place that newely created workset next to the intended one and then see the preview of Worset Map iview .
    in that u will see the intended Iview and next to it the Km navigation Iview that u have created  and  after clicking on that iview u will be navigated to the required position in KM
    Hope this works
    If so please reward ponts.
    Regards.
    Soni Vinit

  • Navigation bar: how do I create hirarchial content folder containg SAP tran

    I am trying to create folder in the navigation area in portal. My backend transactions are listed in the navigational area but it is a longlist. I would like to create folder with labels like Plant Maint with the PM transaction under it and AM folder with Asset management under it.
    Is there a way to do this.
    Thanks Mikie

    Mikie,
    why dont you create Worksets or Folders under the role which contains these transactions in portal. You can open your portal role - then add a few folders there directly as per the grouping you require - and then put the transactional iViews under respective groups. So in portal they will automatically be coming as tree strucutured view. You will first see the folder names (i.e. your groups like Plant Maintenance) and when you click on that it will show the transaction iViews under it. Similar to what you see in the standard portal roles like Content Admin, System Admin etc,
    Regards,
    Shubhadip

  • How do I create a worksetmap

    Hi
    Can anyone advise how to create a workset map.
    Reading the Sap help the following is stated.
    Create an iView template based on the workset map component (New ® iView ® com.sap.portal.navigation.worksetmap). For information on accessing and using the iView Wizard, see Launching the iView Wizard and First Steps.
           2.      In the iView’s Property Editor, set the Relative Workset Location property to define the location of the workset relative to the workset map iView.
    There are two possible attributes to which you may need to assign a value:
    levelsup=n
    pathlist=ID1; ID2; and so on
    For example, the value “levelsup=1” means that the workset is one level up from the iView, or the parent of the workset map.
    In the case of a workset map iView that overviews a workset which is not its parent, and is several nodes away, you need to give the complete path from the workset to the workset map iView by listing the ID of each node in the path.
    WHAT DOES THIS MEAN AND HOW TO I CREATE THIS.
    PLEASE ADVISE.
    Regards
    Arun

    Hi Arun,
    what looked to be quite a simple question about understanding the SAP Help, turned out to be very tricky. Thanks to Detlev (you also
    owe him some points for this) I was able to clarify the syntax behind the "Relative Workset Location" Property of the Workset Map
    iView. As there are quite some bugs in the SAP Help I will also open an OSS Message following to this post.
    What you have to do, in order to display a Workset Map, is to create a Workset Map iView and to integrate it in your workset
    (in a Page). If this Page with the iView is inserted just below the Workset for which you want to have the Workset Map created,
    then you can leave the Property "Relative Workset Location" empty.
    Let's speak about a concrete scenario, so that you can get a clearer picture. We want to create a Workset Map for the "Home"
    Workset under the Role(com.sap.portal.eu_role). Under the workset "Home" (com.sap.km.home_ws) there are some other Worksets
    like "Company" (com.sap.km.home.company).
    1. Example for using no attribute in the "Relative Workset Location":
    As stated above, just insert the newly created Workset Map iView in a new Page (let's name it "Overview") and this Page just below
    the "Home" workset. You can give it a very low "Sort Priority" in order to be the first entry in the TLN.
    2. Example for using the "levelsup" attribute:
    If you insert "levelsup=2" in the "Relative Workset Location" property, the iView will display a Workset Map starting from
    com.sap.portal.eu_role. So you will see links to the "Home" workset and to the "Portal Personalization" workset.
    3. Example for using the "pathlist" attribute:
    If you insert "levelsup=2;pathlist={com.sap.km.home_ws,com.sap.km.home.company}" in the "Relative Workset Location" property,
    the iView will display a Workset Map starting from
    pcd:portal_content/com.sap.pct/every_user/general/com.sap.portal.eu_role/com.sap.km.home_ws/com.sap.km.home.company.
    So you will see links to the pages "News", "Discussions", etc.
    <u>But why?</u> You start from the Workset Map iView (and not from the workset to be displayed as stated in SAP Help) and go "levelsup=2",
    so two navigation levels up, as under 2. Then you follow the relative path given by the worksets IDs, so "com.sap.km.home_ws" and
    "com.sap.km.home.company".
    <u>Conclusion</u>: It would be really helpful if SAP edits the "Creating a Workset Map iView" Page in SAP Help and changes the bugs:
    1. ..pathlist=<b>{</b>ID<b>,</b>ID2<b>,</b> and so on<b>}</b>..
    2. ..the complete path <b>from the workset map iView to the workset</b> by listing the ID...
    3. <b>";" between the two attributes levelsup and pathlist for combining the attributes</b>
    Another great thing would be if the coding would be manipulated so that no "Portal Runtime Error" is display whenever a wrong
    workset ID is inserted.
    And from my opinion, it would be much easier to let the user find out the precise PCD location of the workset and input this as
    parameter than to find out all the relative IDs for the path list!
    Hope this helps,
    Robert
    PS: I hope you are able to appreciate the work it took to understand this component by awarding points. And also consider the same
    for Detlev (if he replies) who help me out on that. Best regards!

  • Folder vs workset in roles

    HI,
      I want to assign a set of iviews/pages to a role. I would like to know what is the best practice to add this objects to a role, i.e.
    1. To create a role and create folders under this role and add pages/iviews to this folder
    2. To create worksets and add pages/iviews to it and finally to add worksets to a role.
    should I use worksets/folders under a role. if both can be used, when should i use which one.
    Thank you

    Hi Yogi,
    if you want to group iViews (for they belong together), you normally create a workset outside a role and add the iViews (as delta links) to the workset and then the workset (as delta link) to the role. This way you can very simply re-use this group in another place instead of putting all iViews again under a role folder.
    Role folders are normally only used for building a navigational structure.
    For building up the PCD and role content, also see http://help.sap.com/saphelp_nw04/helpdata/en/4f/bceaffeb8c114ebef8255b63079c7c/frameset.htm
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • What's wrong  with the role?

    I create URL iviews and pages, preview , it is OK.
    Then I create workset, role, and assign to a user. When I login with the account, I can't see the pages.
    Anybody help?

    Please ensure that the entry point of the Role is set to YES.
    You can do this in role properties.
    Hope this helps!
    Regards
    Atul Shrivastava
    PS:Award points for helpful answer.

  • How to display links in the main page

    Here is a simple question from an EP beginner-
    I am working on a demo EP site for our company (EP 6.0 SP9).  After the user logs onto the Portal, I want to display a main page with standard Header and Nav bars, and then (in the inner page?) display a list of links to iViews.  The iViews are SAP transaction iViews and url iViews, most of which I have already created and they work fine in preview mode.
    The question is, how to I modify the main page to display the links and maybe a company logo?  Is this an addition to the framework page or something completely different?  In a previous life I created ASP/HTML/javascript pages so coding would not be a problem.
    Thanks in advance,
    Alan

    Hi Alan,
    If u want to display the iviews to a user you want to create  roles.
    First Create all the required iviews,then create pages. Add the iviews to the page. Create workset and add page to the work set. Then create roles and add the workset to the roles. Dont forget to set the Entry point property of role to YES.
    Go to User admin>> select the user to whom u want to show the iviews and assign the role u created to the user.
    Then log in as that user. The iviews will be displayed to the user.
    Regards
    gEorgE

  • Error with new Room Template (containing KM Navigation iView)

    Hello,
    I created a new room template based on a newly created workset which just contains the KM Navigation iView. As I went through the template wizard step by step (Content Administration > Collaboration Content > Room Template Administration) I didn't add any External Parameters (Step 3) and didn't add any extensions (Step 4). In the Mapping (Step 5) I mapped all internal parameter to "room_id" since I didn't know it any better. Then I created a room based on this template. When I entered the room I got the following error message. Is it possible that the following error has to do with the fact that I mapped all internal parameters to "room_id" and that I did not add any external parameters or any extensions?
    com.sap.portal.pcm.Title   
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/com.sap.ip.collaboration/Rooms/20dcad45-aaaf-2910-3289-d797c9b4a1ae/workset/km_documents/kmnavigationiview
    Component Name : null
    Page could not create the iView.
    See the details for the exception ID in the log file
    Thanks a ton for our help!
    Katharina

    Hi,
    Maybe you can post this issue in the portal platform forum. This may get you more results.
    Rgds,
    Soujanya

  • Show/Hide tabs in top level navigation of a role based on assigned services

    Hi,
    I have an interesting requirement. I have created an overview page in abap web dynpro which has links to various services.
    Based on the r3 roles assigned to the user, we need to show/hide the services in the overview page and top level navigation.
    I can show/hide the views in the overview page but the links on top level navigation are created in the portal frontend by creating worksets, iviews, etc.
    Is there a way I can show or hide these worksets which are defined in the role on top level navigation?
    In a nutshell, can i update the visible/invisible property of a java workset from a call in abap web dynpro?
    Regards,
    Sumeet

    Please refer the framework page [http://help.sap.com/saphelp_nw70/helpdata/en/02/c7918e9fca44519701c47028a053fd/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/02/c7918e9fca44519701c47028a053fd/content.htm]
    What i meant was that you can do a custom TLN like this
    [http://help.sap.com/saphelp_nwce711core/helpdata/en/42/fd515a2aa95277e10000000a1553f7/content.htm|http://help.sap.com/saphelp_nwce711core/helpdata/en/42/fd515a2aa95277e10000000a1553f7/content.htm]
    Seems to me java/jsp is more appropriate than doing it via WDA.
    ANother way that you might look into this is Application integrator which again java programming effort needed.

  • Need information abt ESS/MSS services?

    need information abt ESS/MSS services?

    Hi Ramesh,
    Have a Look at this links.
    these links would be usefull for you since you are exploring EP
    Creating R/3 Backend System https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/24d8faf9-0701-0010-c99c-aabbdb7e95f4
    Creating R/3 Transaction iView *** https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/61bcfff9-0701-0010-608d-f49bca11320c
    User Mapping https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2256fdf9-0701-0010-18b2-e5c83f75b73f
    Creating SQL Backend system with JDBC https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce8502fa-0701-0010-319a-bdb72d4a1c0f
    Creating SQL iView with JDBC https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c27c04fa-0701-0010-61b1-a7c7375032b8
    Exporting Portal Objects https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ced5f8f9-0701-0010-59aa-8bef7761d9db
    Creating Worksets ans Roles https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f2df6f9-0701-0010-d08f-a95acdd86453
    Creating Pages https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6077f3f9-0701-0010-cb97-c21d3aa57453
    Create URL iView https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e4bbf0f9-0701-0010-6a8a-e8b2372f76d0
    Create a Folder https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47eeeef9-0701-0010-37b1-f356bfbbcf23
    Cheers!!
    Regards,
    krishna

  • How to publish the BI reports in portal

    Hi All,
    By Using  URL , how to create the iviews and how to assign to workset,folder and to page , how  we can create individually.
    Thnaks & Regards,
    sathish
    Edited by: sathish kakumudi on Jun 13, 2010 2:10 PM

    Hi ,
    Thanks for quick and valuble responce,
    Basically  I do not have  knowledge on this , earlier i use to send the URL lins to Portal consulatants and they use to publish in portal.
    Now here there is portal consulatant, but i should deliver the same.
    I created the folder
    under that as per your information created the three sub folders with BW, ROLE< Work Set
    and created under BW one i view .
    But for linking as you said add to work set is not appearing when i do right click on the i view.
    as mentioned the below , portal conete studio  all the work where should i perform.
    You create worksets in the Portal Content Studio using the Workset wizard, and then build structure hierarchies and assign content objects to the worksets in the Workset Editor.Right Click on the created Subfolder u201CWorksetu201D and choose the menu item Workset
    I am giving trouble to you , i do not know that is why iam giving trouble to you. please can you  elobrtae step by step.
    Thansk & Regards,
    sathish

Maybe you are looking for