Error with Recursive Evaluation Path in PD Profile

Dear Experts,
I’m facing an issue using a recursive evaluation path inside a PD profile (transaction OOSP). My scenario is that a Central Person (CP) object is linked by 2 Person (P) objects.  I want the PD profile to give access to 2 Person (P) objects as long as I have access to either 1 of the Person (P) object. I have an evaluation path that is created using transaction OOAW as follows:
10 P     A 209     * CP
20 CP       B 209     * P
The problem that I’m encountering is that the P object goes through a recursive loop during the evaluation path, i.e. the 2 P objects that are evaluated as output gets passed in as inputs again and go into a loop continuously. Is there a way to resolve this recursive issue or other alternative resolution that could meet my requirements? Thanks.

Use field "Function Module" of table T77PR. You can program what you want yourself. Use function module RH_STRUC_GET to get the CP from the P, and then again RH_STRUC_GET to get the P from the CP. Add the resultings P to the output parameter. Press F1 on the field to see how the FB should look like.

Similar Messages

  • Rendering error with wrong template path

    Hi there,
    I got a processing exception during a "Render" operation. I think the problem is shown in the following log entries on the server with Adobe Document Services installed (ADS). The application is running on another system (AS1):
    com.adobe.ads.remote.EJB_PDFAgent: Embedding of file/stream: DatasheetView_InteractiveForm.xdp using ID: template0 Failed:
    Unable to create a FileDataBuffer for: E:\usr\sap\AS1\J00\j2ee\cluster\apps\company.de\sheetwd\servlet_jsp\webdynpro\resources\company.de\sheetwd\root\WEB-INF\webdynpro\Components\de.company.sheet.wd.datasheet.Datasheet\DatasheetView_InteractiveForm.xdp
    ... Continuing with Embedding files ...
    The path "E:\usr\sap\AS1\J00..." does not exists on the Server with Adobe document services installed. Its SID is "ADS".
    Caused by: com.adobe.ProcessingException: File not found: E:\usr\sap\AS1\J00\j2ee\cluster\apps\company.de\sheetwd\servlet_jsp\webdynpro\resources\company.de\sheetwd\root\WEB-INF\webdynpro\Components\de.company.sheet.wd.datasheet.Datasheet\DatasheetView_InteractiveForm.xdp
    at com.adobe.ads.operation.Render.execute(Unknown Source)
    at com.adobe.ads.operation.ADSOperation.doWork(Unknown Source)
    ... 85 more
    Caused by: com.adobe.ProcessingException: File not found: E:\usr\sap\AS1\J00\j2ee\cluster\apps\company.de\sheetwd\servlet_jsp\webdynpro\resources\company.de\sheetwd\root\WEB-INF\webdynpro\Components\de.company.sheet.wd.datasheet.Datasheet\DatasheetView_InteractiveForm.xdp
    at com.adobe.ads.data.FileURLData.getInputStream(Unknown Source)
    at com.adobe.ads.data.URLData.getByteArray(Unknown Source)
    at com.adobe.ads.data.TemplateCacheInfo.<init>(Unknown Source)
    at com.adobe.ads.data.TemplateCacheInfo.getInstance(Unknown Source)
    at com.adobe.ads.operation.support.Template.setCacheInfo(Unknown Source)
    at com.adobe.ads.operation.support.Template.initialize(Unknown Source)
    at com.adobe.ads.operation.Render.initializeTemplates(Unknown Source)
    at com.adobe.ads.operation.Render.initializeSources(Unknown Source)
    at com.adobe.ads.operation.Render.initialize(Unknown Source)
    ... 87 more
    Caused by: java.io.FileNotFoundException: E:\usr\sap\AS1\J00\j2ee\cluster\apps\company.de\sheetwd\servlet_jsp\webdynpro\resources\company.de\sheetwd\root\WEB-INF\webdynpro\Components\de.company.sheet.wd.datasheet.Datasheet\DatasheetView_InteractiveForm.xdp (The system cannot find the path specified)
    at java.io.FileInputStream.open(Native Method)
    Any ideas
    Thanks ahead

    Hello,
    I think at the moment you are passing the xdp template source as url using the WDURLGenerator.
    Instead you should send it as a stream using the appropriate pdfdocument api like this:
    String templateUrl = null;
    ByteArrayOutputStream templateStream = null;
    templateUrl = WDURLGenerator.getPublicResourcePath(otherPart, "My_InteractiveForm.xdp");
    InputStream template = new FileInputStream(templateUrl);
    ByteArrayOutputStream buffer = new ByteArrayOutputStream();
                  int nRead;
                  byte[] data = new byte[16384]; 
                  while ((nRead = template.read(data, 0, data.length)) != -1) {
                            buffer.write(data, 0, nRead);
                  buffer.flush(); 
                  templateStream = buffer;
    IWDPDFDocumentHandler pdfDocumentHandler = WDPDFDocumentFactory.getDocumentHandler();
    IWDPDFDocumentCreationContext pdfDocumentCreationContext = pdfDocumentHandler.getDocumentCreationContext();
    pdfDocumentCreationContext.setTemplate(templateStream);
    Hope this helps...
    Regards, Bernd

  • FM or BAPI - get objects with evaluation path

    Hi guys
    In my last course HR350 we used a function module to get all object with an evaluation path  in OM..
    I just dont know this FM anymore and cant find it.
    Which FM do i need for to get all objects for the evaluation path "L-D-E"
    thanks!

    Hi Thomas,
    Pls try function modules
    HRWPC_EVAL_PATH
    HRHAP_SEL_OBJECTS_OF_EVAL_PATH
    Regards,
    Dilek

  • Evaluation paths in MSS

    Hi
    Our client is using "matrix" relationships A/B002 (is line supervisor of) in their organisation and wants to display them in MSS (latest version) teamviewer. We are using evaluation path WF_POSIT (User/person has as position)as rule for root objects and ORGA-P (Supervisory and subordinate positions with person display) as rule for target objects. However we are only able to show relationships 002 which are below the manager's position in the organisation and not those which are elsewhere in the organisation. This worked before with the client before our upgrade project.
    Can you advise if it's possible to show the 002 (is line supevisor of) relationships in MSS from all over the organisational structure (not only below the manager) with these evaluation paths or should some others be used?
    We can only see the 002's below the manager with or without structural authorizations and before the upgrade the evaluation paths were not modified from standard and permitted relationships are also the same.
    Any thoughts would be helpful.
    -JT

    Hello Raj,
    you need so called Structural Authorizations to accomplish your requirenment. But be aware this has a direct effect on your entire HR-based Authorization concept in your company if you switch it on!
    To activate Structural Authorizations call transaction OOAC and set the switch for ORGPD to a proper value which does meet your needs. (See http://help.sap.com/erp2005_ehp_03/helpdata/EN/c7/4aba3b3bf00152e10000000a114084/frameset.htm) If it is already set to a value <> 0 is is already activated.
    The next thing you need to do is to maintain your Manager Role. The authorization object in question is P_ORGIN. If you want for instance to give a user read access to Infotype 0001 of another person you provide the following values:
    - AUTHC: R
    - INFTY: 0001
    - PERSA: *
    - PERSG: *
    - PERSK: *
    - SUBTY: *
    - VDSK1: *
    If you would stop here, every user would have access to Infotype 0001 of any other Person in your company. But as you want to restirct the access to just persons which lay within you evalution path B002, you have to maintain tables T77PR and T77UA.
    T77PR: Create a Profile (e.g. name it My Team or something) and add the following values: http://help.sap.com/erp2005_ehp_03/helpdata/EN/34/49ba3b3bf00152e10000000a114084/frameset.htm
    - Planversion: 01 (most likely)
    - Object Type: O
    - Evalution Patch: <Hint> You cant use B002 directly as B002 just give objects of type O back, but you  need object of type P. Use SBES for instance.
    - Status Vector: 12
    - Depth: 0
    - Function Module: RH_GET_ORG_ASSIGNMENT (Gives you the root object where to start the evaluation with path SBES.
    Now you need to assign your users (in your case your managers) to this profile. Use table T77UA to do this.
    Thats it
    regards
    Markus

  • Evaluation path reading OM up and downwards

    Hello!
    Starting from a Person i need a evaluation path that reads P-S-O and then O upwards and downwards. From these O's the path has to find all O-S-C.
    So, is that possible to read the OM in the same path up and down?
    Thanks for any information!
    Best greetings,
    Gregor Brandstätter

    hi,
    Evaluation path only give you a tree branch, from a node up or down recursivelly.
    what for are you looking for this evaluation path, lookin for a resonsable of a decission? a report?.
    PPST is the transaction to test evaluation path. Try to find yourself what is the evaluation path you need using the matchcode, or try to test what you can do with a evaluation path.
    Kind regards,
    Miguel Ángel Orihuela.

  • Issue with Evaluation Path

    Hi All,
    I had created one Evaluation Path P-P.
    I want to retrieve all employees who are reporting to a particulat employee...
    ex: A is the manager
    B , C, D are team leads.
    Again B is having 2 more employees.. B1,B2...
    So when we execute for employee A all the B,C,D,B1,B2 need to be displayed. and I created the ZTEST ev path..
    code of EV:
    P B 008 S -> Geeting 'a' position
    S B 005 S  -> getting A' sub-ordinates positions
    S A008 P ->  sub-ordinate positions
    and it is succesfully executed in PPSS..
    i HAVE WRITEN A SAMPLE PROGRAM to test that...
    eX:
    GET OBJEC.
    WRITE: OBJEC-OTYPE , OBJEC-OBJID.
    but system is going infinite loop and giving the following error...
    "\FUNCTION-POOL=RHAS\DATA=STRU_VERK[]"
    Let me know whats wrong here.. and more over issue is person to person retrieve is not possible?
    Regards
    Sas

    Hi.
    What's wrong is this:
    P B 008 S -> Geeting 'a' position
    S A008 P -> sub-ordinate positions
    You are using two opposite links in the same WEGID, so this is what leads to the infinite loop. You should get rid of the first one and always start to evaluate with the current position of the manager.
    S B 005 S -> getting A' sub-ordinates positions
    S A008 P -> sub-ordinate positions

  • Evaluation path Error

    Hi All,
    I have configured Infotype (IT1513)  for Job (C ) and specified the Time constraint to 2.
    When iam trying to crate this info type through po03 it is giving error        "Evaluation path  is not in Table T778A".
    How do i solve this.
    Quick help is appreciable
    Regards

    Hi Swati,
    i tried it by giving object type C job and my IT and subtype and time const as 2 but it says specify the key with in the work area.
    what is this ....i appreciate your help.
    Regards

  • Report RHSTRU00 with Evaluation Path BOSSORG is not working

    Hello Friends,
    I am trying to run the Report RHSTRU00 with Evaluation Path BOSSORG  and it never produces output. If I run the report with any  other Evaluation path,it works......
    Can anybody help me in this issue,
    Thanks
    Kisu

    solved on own.

  • I suddenly have this error message on FireFoxthis message pops up: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no re

    I suddenly encounter this error message from Fire Fox.
    Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features.
    I uninstalled the browser and download a new version but it does not resolve the issue.
    I know my hard disc has ample space. I do NOT know where to find the Profile directory to fix the read restriction box.
    == This happened ==
    Every time Firefox opened
    == After something about security add-on of Norton pop up by itself. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MSN Optimized;US)

    This link shows things to check - https://support.mozilla.com/kb/Could+not+initialize+the+browser+security+component

  • Enhancing evaluation path with custom code

    Hi,
    like described in another discussion I have the following task to solve:
    I was setting up an org structure with companyname (O)- spain (O) - valencia (O) - engineer (S)-James(P), created a work center and assigned the organisational element on the level of valencia to it in hrms.
    I found the evaluation path P-S-O fits for my needs to see that (starting with) james is an engineer in valencia and I will try to get also the work center in the way it is described here: Evaluation path with P-S-O + work center
    Evaluation pathes seem to be pretty cool to use and efficient. I am wondering now how far the evaluation pathes can be extended. In the described process there are also WBS elements involved. They are linked to the work center with the help of the partner schema in the wbs element. The quesion is if it is possible to make a own evaluation path element (or to choose the wbs datatype) and have a user exit to get the wbs elements that are connected as partners to the work center also in the path? How can I find out how to solve this and if there are any user exits (or other mechanism) that give me the flexibility to take the evaluation path beyond the standards I can do without development.
    Greetings, Vanessa

    Hi Omid,
    I would like to have all necessary values in one evaluation report for development. In this way I don't need to go over several tables in the abap development ... instead I am able to use the evaluation path in several ways. One of these things is to include the WBS elements.
    Greetings, Vanessa

  • Invalid path /jsp/AFDashboardPageView Error with 3.1 dashboard

    Anyone run into this error with displaying dashboards in InfoView 3.1 (on sp2, fixpack 2.7): HTTP Status 400 - Invalid path /jsp/AFDashboardPageView was requested.  It's not the dashboard itself - displays fine in edit mode and even simple test ones generate the error. 
    I have 2 environments at the same patch level.  One is working and the other gives this message but I can't find the diff.  I've been working with support for several days now with no progress. 
    I'm so incredibly frustrated with version 3.1 right now and would be really grateful for any help.

    Hi Cecelia,
    Thanks for the response.  What did they say about another environment is working?
    It doesn't make sense to me that it is a bug when one environment works but the other doesn't...
    I also opened a ticket with SAP but they are so slow to respond.
    Julian

  • Servlet error java.lang.IllegalArgumentException: path must begin with a "/

    I have just deployed my web app to the oc4j 10 g latest release and whenever I try to log into the webapp I get the following error.
    Servlet error
    java.lang.IllegalArgumentException: path must begin with a "/"
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:1658)
         at org.apache.struts.action.RequestProcessor.doInclude(RequestProcessor.java:1092)
         at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:252)
         at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:341)
         at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
         at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
         at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.janes.jf.filter.LoginFilter.doFilter(LoginFilter.java:25)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Can someone please help me?
    Thanks in advance.

    add this after your action-mappings section of struts-config.xml
    <!-- ========== Controller Configuration ================================ -->
    <controller>
    <!-- The "input" parameter on "action" elements is the name of a
    local or global "forward" rather than a subapp-relative path -->
    <set-property property="inputForward" value="true"/>
    <set-property property="processorClass" value="org.apache.struts.tiles.TilesRequestProcessor"/>
    </controller>

  • New WIN7 System, FFox gives error "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory" - will not go to any site.

    New Windows 7 computer. After installing Firefox, every time I bring it up I get the following message:
    "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features."
    Then Firefox comes up, but will not function at all - can enter url address, but will not respond to ANY clicks, so can not go to any site.

    This link shows how to fix this - https://support.mozilla.com/kb/Could+not+initialize+the+browser+security+component

  • Errors with interactive pdf containing motion paths

    I have created an interactive pdf in indesign with simple motion paths. In the preview in indesign it works perfect, but the animations do not work in the exported pdf. This is created in CS6 and I have the creative suite standard installed.

    I have tested with both Acrobat Pro X (10.1.1)  and Acrobat Reader XI (11.0.0.). Due to IT  restrictions I am unable to use such "transfer files" providers, so I am bit stuck. I have tried to put the different animations in layers and in one layer only, with same results. I am
    beginning to think that there are internal restrictions that make this happen

  • Re: Depth of Evaluation for Standard Evaluation Paths (Bottom Up Approach)

    Hi All,
    We are facing a unique issue when using OOSP and defining evaluation path. for e.g. we used the standard SBESX (Staff assignments along Organizational structure). We also defined the following fields to test the Org structure results for a user's structural authorization on what he/she can see (e.g. Org unit(O), Positions(S), Users(P))
    1. Object Type = O
    2. Evalutaion Path = SBESX
    3. Status vector = 12345
    4. Depth (D) = 5 (which defaults to 1 automatically if we set the sign field to -(negative) for Bottom-up approach (displaying org structure bottom to up)
    5. Function Module = RH_GET_ORG_ASSIGNMENT
    6. Key Date = D
    The issue we have is for the above settings on OOSP Depth field defaults to 1 everytime we use the Bottom up approach (i.e setting the Sign field to - (negative)). Has anyone encountered the above problem with the depth field? Let us know if you had any fix or you had to escalate this to SAP?
    Best regards,
    -Murali

    S0003562672 wrote:>
    > hi murali,
    >
    > I cannot give you an answer on why exactly the depth filed is defaulting to 1 when using the negative in the sign fields (T77PR-SSIGN).  but can you perhaps explain what you're trying to accomplish with your structural profile.  in that case, maybe I/we can figure out a way to circumvent the use of the sign field...
    >
    > Edited by: Dimitri van Heumen on Mar 19, 2008 2:24 PM
    > (typing errors)
    Thanks for your reply Dimitri.
    Here is what we are trying to acheive with the Org structure below:
                                                                          O - 00001004
                                                                            S - 00000253
                                      O - 00001005                                                O - 00001006
                                           S – 00000251 hradmin1                               S – 00000256 essuser2 (120)
                                           S - 00000252
                   O - 00001007                   O - 00001008                     O - 00001009          O - 00001010
                   S - 00000257                     S - 00000259                     S - 00000260(121)    S - 00000254 (122)
                   S – 00000258  essuser1                                                                            S – 0000255 hradmin2(114)
    Position # 00000255 (far right down below in the above Org structure) is the HR Specialist for (Org #00001006 and Org #00001009).  Employee # 114 (far right bottom) has been hired into this position 255. They should be able to see Employees 120, 121, 122 and themselves(114).
    We have created a structural profile for the user hradmin2(114) and attached him to a role which has ess/mss functionality. We are trying to use the evaluation path SBESX to test what org units, postions and users this user hradmin2(114) can see which should meet the requirement stated above that he should see 120,121,122 and 114 themselves.
    So from the Org structure above it is a bottom up scenerio where hradmin2 must see org units 00001010, 00001009 and 00001006 and whenever we set the sign field to -ve (bottom up approach of displaying org structure) and depth of lets say 4 it automatically defaluts to 1 and when we check hradmin2 authorization profile in oosb we only see org unit 00001010 being displayed and not the org units above it for this bottom up approach.
    Are you aware of any methods to acheive this for the org structure above?
    Thanks
    -Murali
    Edited by: Murali Sripadam on Mar 19, 2008 1:47 PM

Maybe you are looking for

  • Getting User Attributes from an Active Directory LDAP

    Hello all. I want to extract attributes assigned to a user in the Active Directory LDAP and make them available through the getPropertyValue property in Javascript. I know that a user's System Attributes can be accessed with getPropertyValue but I ha

  • Firewire help please

    k guys i nee some serious help....im getting a little nervous here. I recently purchased a mackie mixer the onyx 1620, and the other day i purchased the firewire adapter let me just say the mixer is great, i couldnt be happier. However, the firewire

  • Iphoto albums and events

    i upload photos on the mac and this creates them as and event in iphoto. I then want  to organise manually so i create and album. Once they are organised if you delete the event this deletes it from the album!!! can you create and event from album wi

  • Imported RAW files convert to black and white

    I have LightRoom 1.4.1 as well as LightRoom beta installed. Intel iMac 20, OS 10.5.2 Camera is Canon 40D. I imported images from a Compact Flash card into LightRoom beta. They downloaded as they should, but then without my touching mouse or keyboard

  • How to uninstall MAX (Ver 2.0) after uninstall Labview 6.0

    I have deleted the Labview 6.0 as well as NI-488.2. However, MAX 2.0 is still remaining and would like to know how to uninstall it. There's no program shown in Control Panel-Add/remove programs. And the remaining MAX doesn't work properly because mis