You are on page 1of 5

Create an Organizational Structure Create a custom evaluation Path Write ABAP Code to fetch Organizational data

Posted by Chaudhury Sourya Prakash Dash Dec 7, 2012 Objective :

Create an Organizational Structure Create a custom evaluation Path Write ABAP Code to fetch Organizational data

Create an Organizational Structure

To Understand the concept well , Let us create very small organizational unit using simple mode.

Business case: Let the Organization RORG is the root organizational unit and ORGA , ORGBand ORGC are three reporting Org Units and each organization has 2 positions one manager-HR and one engineer-IT.

Step-1: Create root Org Unit

Enter The transaction PPOC_OLD and enter the below details.

Organizational Unit Name Editing period

rorg root organizatioanl unit 01.01.2000 To 31.12.9999

Step-2 Create two orgunits ORGA and ORGB under RORG

Select the organisational unit and press F7 and enter two org unit names and descriptions.

Step-3 Create postions Manager-HR and manager-IT under both orgnisatioanl units

Click on Staff Assignments.

Select the orgnisatioanl Unit (ORGA) and click on position button , create two position manager-HR and engineerIT. and repeat the same process for organisation ORGB also.

The org structure should look like below.

O 50000648 rorg

root organizatioanl unit orga organisation-A

O 50000649 Is line supervisor of

S 00000013 Incorporates S 00000014 Incorporates O 50000650 Is line supervisor of S 00000016 Incorporates S 00000017 Incorporates

manager-HR ORGA-HR Manager engineer-IT ORGA enginner-IT orgb organisation-b

manager-HR ORGB manager-HR engineer-IT ORGB engineer IT

Create a custom evaluation path

Evaluation path give the idea to navigate the organisation structure and fetch the details.For exmaple our objective here is to fetch all the organisational units below an organisational unit.use trasnaction OOAW to create the same(V_T77AW).

EvalPath

No. OT S Rel Pr RO S O B 002 * O

ZSDN_O-O 10

Write ABAP code to fetch organisation structure

Function Module RH_PM_GET_STRUCTURE is used to get the details.

Input

Import parameters

Value

PLVAR 01 OTYPE O OBJID 50000648 BEGDA 01.01.1900 ENDDA 31.12.9999 STATUS 1 WEGID ZSDN_O-O 77AW_INT AUTHY X DEPTH 0 CHECK_OBJECT PROGRESS_INDICATOR SVECT ACTIV X BUFFER_MODE

Return will be

OBJEC_TAB Result: STRUC_TAB Result: GDSTR_TAB Result:

0 Entries 3 Entries 0 Entries 3 Entries 0 Entries 1 Entry

And the contents of Object tab follows,

PL OT OBJID REALO

BEGDA

ENDDA

I H SHORT

STEXT

SG O 50000648 01.01.2000 31.12.9999 1 rorg 50000648 SG O 50000649 01.01.2000 31.12.9999 1 orga SG O 50000650 01.01.2000 31.12.9999 1 orgb

root organizatioanl unit organisation-A organisation-b 50000649 50000650

We can write an ABAP program to call this function module and navigate complex structures. So this blog explains how evaluation path , organisational structure can be explored more using ABAP coding.

You might also like