4/26/2018
Evaluation Path : How to create and use | SAP Blogs
Products Products
Industries Industries
Training Training
Community Community
Developer Developer
Partner Partner
About About
+ Actions
Home / Community / Blogs
Evaluation Path : How to create and use September 2, 2013
|
7,144 Views |
Mayank Singh more by this author
ABAP Development create evaluation path | evaluation | evaluation path | evaluation path in sap hr | get multiple roots | hr abap | hrwpc struc get multiple roots
share 0 Follow
share 0
tweet
share 0
RSS
The objective of this document to give practical scenarios on how Evaluation Paths can be created and used in our applications. It also helps in understanding how the Evaluation Path fetches data from the https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
1/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
backend so that we can use Evaluation paths effectively in our applications. Evaluation path is an instruction to the system to fetch the data recursively, according to the relationship between the objects.
One or more relationships may be used in an evaluation path.
Creating Custom EVALUATION PATH: We can create evaluation paths with alphanumeric names with a maximum of 8 characters starting with Z.
We will create an Evaluation Path below which will be used to find Org. Unit of a person based on ID which is given as an input.(US -> P -> S -> O) STEP 1: Go to T. Code SM30/SM31. STEP 2: Enter Table name as T778a and Click on Maintain.
STEP 3: Click on New Entries.
STEP 4: Enter the name of EvalPath and the Evaluation Path Text. Then Click on Save.
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
2/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
STEP 5: Now enter appropriate Relationships based on which you want to fetch the Data.
STEP 6: There is a Field Skip which has a Checkbox which should not be ticked if you want the Output of that Relationship to be Included in the Final Result.
e.g: in the above scenario Output from all the Relationships will be Included in the Final Result. However, in the Scenario below, only the Output from Relationship “Belongs to” will be included in the Final Result.
STEP 7: Finally Save the Evaluation Path.
Display Evaluation Path: STEP1: Go to T. Code SM30/SM31.
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
3/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
STEP 2: Enter Table name as T778a and Click on Display. STEP 3: Click on the Position Button at the Bottom of the Screen and enter the name of Evaluation Path which you want to Display. Then Press OK.
STEP 4: Select the Evaluation Path you want to Display and Click on the Evaluation Path
STEP 5: Details of the Evaluation Path will be displayed.
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
4/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
Note: We can also Create/Display Evaluation Path using Transaction Code OOAW. It will take directly to Step 3.
How to execute Evaluation Path: We will execute the Evaluation path created above using the Function Module “RH_STRUC_GET“: DETAILS OF THE EMPLOYEE WHICH IS TAKEN AS EXAMPLE Personnel No. 20001848 US( ID)
RAIN
Position
40004241
Org. Unit
30001028
Example 1: When few Relationships/Lines have the “SKIP” column checked:
STEP 1: Go to T. Code SE37. Give the Function Module as RH_STRUC_GET and Execute. STEP 2: Fill in the Required Entry Fields and press Execute
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
5/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
STEP 3: Results will be displayed. We get the Result in 3 tables as follows:
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
6/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
RESULT_TAB
RESULT_OBJEC
RESULT_STRUC
Steps to dry run Evaluation path yourself: 1). We provide the US as RAIN. 2). US is used to Calculate Pernr 20001848. 3). US (RAIN) goes into the Stack. Pernr 20001848 becomes current Object. Pernr 20001848 is used to calculate Position 40004241 4). Pernr 20001848 goes into the Stack. Position 40004241 becomes current Object. Position 40004241 is used to search Org. Unit 30001028. 5). Position 40004241 goes into the Stack. Org. Unit 30001028 becomes current Object. https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
7/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
No more lines left for Org. Unit 30001028 to execute. 6). Control goes back to the Position 40004241. No more lines left for Position 40004241to execute. 7). Control goes back to the Pernr 20001848. No more lines left for Pernr 20001848 execute. 8). Control goes back to the US (RAIN). No more lines left for US (RAIN) execute. 9). Execution of Evaluation path ends. Current Object
Relationship Used
Resulting Object
US -> RAIN
10: US A208 P
P -> 20001848
(LEVEL 1)
Result ————–
(LEVEL 2)
P -> 20001848
10: US A208 P
(LEVEL 2)
20: P
B008 S
NA
————–
S -> 40004241 (LEVEL 3)
S -> 40004241 (LEVEL 3)
10: US A208 P
NA
20: P
B008 S
NA
30: S
A003 O
————–
O -> 30001028 (LEVEL 4)
O -> 30001028 (LEVEL 4)
S -> 40004241
10: US A208 P
NA
20: P
B008 S
NA
30: S
A003 O
NA
O -> 3000102
Nothing Left
NA
O -> 300010
30: S
A003 O
NA
O -> 3000102
US -> RAIN
20: P
B008 S
NA
O -> 3000102
(LEVEL 1)
30: S
A003 O
NA
(LEVEL 3) P -> 20001848 (LEVEL 2)
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
8/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
*Levels mentioned above are the values which we will get in the column “Level” in the result table “RESULT_STRUC”
Example 2:When none of the Relationships/Lines have “SKIP” column checked:
RESULTS will be as below:
RESULT_TAB:
RESULT_OBJEC:
RESULT_STRUC
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
9/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
Steps to dry run Evaluation path yourself: 1). We provide the US as RAIN. 2). US is used to Calculate Pernr 20001848. Pernr 20001848 is appended to Results. 3). US (RAIN) goes into the Stack. Pernr 20001848 becomes current Object. Pernr 20001848 is used to calculate Position 40004241 Position 40004241 is appended to Results. 4). Pernr 20001848 goes into the Stack. Position 40004241 becomes current Object. Position 40004241 is used to search Org. Unit 30001028. Org. Unit 30001028 is appended to Results. 5). Position 40004241 goes into the Stack. Org. Unit 30001028 becomes current Object. No more lines left for Org. Unit 30001028 to execute. 6). Control goes back to the Position 40004241. No more lines left for Position 40004241to execute. 7). Control goes back to the Pernr 20001848. No more lines left for Pernr 20001848 execute. 8). Control goes back to the US (RAIN). No more lines left for US (RAIN) execute. 9). Execution of Evaluation path ends. Current Object
Relationship Used
Resulting Object
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
Result
10/17
4/26/2018
US RAIN
Evaluation Path : How to create and use | SAP Blogs
A. P ->
10: US A208 P
P -> 20001848
20001848 (LEVEL 1) (LEVEL 2) P -> 20001848
10: US A208 P
(LEVEL 2)
20: P
B008 S
NA S -> 40004241
S -> 4000424 P -> 2000184
(LEVEL 3)
S -> 40004241 (LEVEL 3)
10: US A208 P
NA
20: P
B008 S
NA
30: S
A003 O
O -> 30001028
O -> 30001028 S -> 4000424 P -> 2000184
(LEVEL 4)
O -> 30001028 (LEVEL 4)
10: US A208 P
NA
20: P
NA
B. S 400 C. P ->
30: S S -> 40004241
B008 S
A. O -> 3
A003 O
Nothing Left
NA NA
(LEVEL 3)
20001 O -> 30001028 S -> 4000424 P -> 2000184
P -> 20001848
30: S
A003 O
NA
(LEVEL 2)
O -> 30001028 S -> 4000424 P -> 2000184
US -> RAIN
20: P
B008 S
NA
O -> 30001028
(LEVEL 1)
30: S
A003 O
NA
S -> 4000424 P -> 2000184
NOTE:- We can give any Object as Input which is specified in Obj. Type in the Evaluation Path. In that scenario the Relationships which are Relevant to that Object will be Executed first.
EXECUTE EVALUATION PATH USING T-CODE PPST: We have a sample Evaluation Path: CACS_GP. We have a sample Org. Structure: https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
11/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
We will try fetching the records using evaluation path “CACS_GP”:
This Evaluation path will return only Org. Units and Position as the above Org. Structure doesnot contains object “S” and “BP”. To execute go to T-Code PPST:
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
12/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
We can execute and get the Results as below:
We can also alter Display Depth (Default is Zero) and execute the Evaluation Path recursively upto the desired level.
A. When we specify the Display Depth as ‘1’ then we get the below output:
B.
When we specify the Display Depth as ‘2’ then we get the below output:
C.
When we specify the Display Depth as ‘3’ then we get the below output:
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
13/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
Note: Evaluation paths can be tested and analyzed using the report RHSTRU00. Note: For evaluating Evaluation Path there are few Function Modules in the Function Group: “RH_STRUCTURE_GET”. Functions modules in this Function Group: a) HR_STRUCTURE_GET b) RH_STRUC_GET c) RH_STRUC_GET_MULTIPLE_ROOTS d) RH_STRUC_SEARCH Another important function group is “HRWPC_TO_DATA_SUPPLIER”.
Alert
8 Comments You must be Logged on to comment or reply to a post.
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
14/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
Anirban RoyChoudhury October 9, 2013 at 6:33 am
Nice document.
Mayank Singh Post author October 9, 2013 at 7:28 am
Thanks Anirban. Please let me know in case you have any questions.
Hitesh Wankhede October 9, 2013 at 8:17 am
Nice document mayank. Just one more piece of information. We can directly use TCode – OOAW instead of STEP1: Go to T. Code SM30/SM31. STEP 2: Enter Table name as T778a and Click on Display.
Mayank Singh Post author October 9, 2013 at 11:21 am
Thanks Hitesh…. I have already mentioned T-Code OOAW in “Display Evaluation Path” after the steps. Thanks for reminding…
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
15/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
SG Sg October 9, 2013 at 8:45 am
Helpful documet, thansk for sharing with screen shots. Regards, Giri
Mayank Singh Post author October 9, 2013 at 11:22 am
Thanks Giri….
Kush Patidar August 27, 2014 at 11:42 am
Nice Document Mayank… Thanks for sharing… Regards, Kush
Priya Gupta December 30, 2014 at 6:48 am
after maintaining relationship
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
16/17
4/26/2018
Evaluation Path : How to create and use | SAP Blogs
Iam not able to see entries in evaluation path we can test directly through OOAW instead of function module
Share & Follow Privacy
of Use
Legal Disclosure
https://blogs.sap.com/2013/09/02/evaluation-path-how-to-create-and-use/
Copyright
Trademark
Sitemap
Newsletter
17/17