Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module

Former Member
0 Likes
424

Hi Abapers,

I have one Doubt in Function Module .. What is the use of 'HR_STRUCTURE_GET' Functinal Module..

Regards,

kumar

2 REPLIES 2
Read only

Former Member
0 Likes
365

hi,

HR_STRUCTURE_GET returns a table of orgunits, starting with a leaf going back to the root.

It works like this:

data: it_result_objects type objec_t.

CALL FUNCTION 'HR_STRUCTURE_GET'
EXPORTING
ROOT_PLVAR = '01'
ROOT_OTYPE = 'O'
ROOT_OBJID = '50000630'
BEGDA = SY-DATUM
ENDDA = SY-DATUM
pathid = 'O-O'
* PATHID_IS_INTERN =
STRU_TECH_DEPTH = 0
STRU_STATUS_VECTOR = '1'
* STRU_STATUS_OVERLAP = ' '
PROVIDE_TEXT = 'X'
PROVIDE_RELAT = 'X'
PROVIDE_DFLAG = 'X'
RECURSION_CHECK = 'X'
AUTHORITY_CHECK = 'X'
TEXT_BUFFER_FILL = 'X'
READ_MODE = 'F'
* KEEP_ORDER =
IMPORTING
RESULT_OBJECTS = it_result_objects
* RESULT_STRUCTURE =
* ROOT_COPY =
EXCEPTIONS
PLVAR_NOT_FOUND = 1
ROOT_NOT_FOUND = 2
PATH_NOT_FOUND = 3
INTERNAL_ERROR = 4
OTHERS = 5
.

Read only

Former Member
0 Likes
365

hi shanthosh,

What is mean by Org units..

regards,

kumar