RH_DIR_ORG_STRUC_GET
Hi experts,
Is there any function module similar to RH_DIR_ORG_STRUC_GET, which will provide the information of all the sub-ordinate pernrs if the pernr of the chief is given.
If not a function module is there a way to retrieve all the sub-ordinate perns of a supervisor pernr.
Thanks,
Revanth.
Hi,
Use Function Module:RH_PM_GET_STRUCTURE
http://www.sapdevelopment.co.uk/fmodules/fms_orgstruc.htm
Similar Messages
-
Hallow I have program that take employee of manger that doing some course and I wont to see the emp that not doing the course how can I do it simple
*<b>employye of manager
CALL FUNCTION 'RH_DIR_ORG_STRUC_GET'
EXPORTING
act_orgunit = obj_tab-objid
act_plvar = '01'
act_date = sy-datum
sort_flag = 'X'
add_flag_pdata = 'X'
TABLES
person_tab = person_tab
EXCEPTIONS
no_active_plvar = 1
OTHERS = 2.</b>
append objid and names of employee into itab
LOOP AT person_tab INTO wa_person_tab.
MOVE-CORRESPONDING wa_person_tab TO wa_itab.
APPEND wa_itab TO itab.
ENDLOOP.
*1----select E of the course in table that i get in input--
SELECT objid sobid sclas begda endda
FROM hrp1001
INTO CORRESPONDING FIELDS OF TABLE b_itab
FOR ALL ENTRIES IN z_course_table
WHERE objid = z_course_table-objid
AND otype = z_course_table-otype
AND plvar = '01'
AND relat = '020'
AND rsign = 'B'.
sec_objid = wa_b_itab-sobid.
LOOP AT b_itab INTO wa_b_itab.
MOVE wa_b_itab-sobid TO wa_b_itab-myobjid.
MODIFY b_itab FROM wa_b_itab.
CLEAR wa_b_itab.
ENDLOOP.
IF sy-subrc = 0.
*2------employee that doint course (for all 'E' read hrp1001) -
<b>SELECT objid sobid priox begda endda istat
FROM hrp1001
INTO CORRESPONDING FIELDS OF TABLE c_itab
FOR ALL ENTRIES IN b_itab
WHERE ( otype EQ 'E' OR otype EQ 'ET' )
AND objid = b_itab-myobjid
AND ( relat EQ '025' OR relat EQ '614' )
AND sclas EQ 'P'.
ENDIF.</b>
Thankes for your ideaEdStevens wrote:
AlexeyDev wrote:
sb92075 wrote:
select (date2-date1)*24 from dual;not as above but as below
select (date2-date1)/24 from dual;date2-date1 is amount of days. Divide it by 24 and what? if you multiply it on 24 you will have a chance to know how many hours between these two dates. :-)Don't forget that a DATE type also includes a time component.I suppose it doesn't matter if you did a difference between two dates. The result is always number of days. -
How to get organisation unit for given date.
Hi Everyone,
I have created a report to display all the hired and left employees
for the given date. I have to display department wise.
CALL FUNCTION 'RH_DIR_ORG_STRUC_GET'
EXPORTING
ACT_ORGUNIT = S1_ORGEH-LOW
ACT_PLVAR = '01'
ACT_DATE = SO_DATE-HIGH
SORT_FLAG = 'X'
ADD_FLAG_PDATA = 'X'
TABLES
ORG_UNITS = IT_ORG_UNITS.
This function module will bring all the active org unit existing
in our system. If an organisation unit is delimited.
This function module is not getting the delimited org unit.
How to get that org unit.
Plz its vry urgent,
thanks in advance,
regards,
stanleydid you try RH_STRUC_GET?
Regards
Raja
close your previous threads
Re: ALV in browser -
HR fm to calculate employees in org. unit
Hai...
Is ther any fm to calculate the no. of employees in the organization unit.
Also give me example for this fm if possible.
thankscall function 'RH_DIR_ORG_STRUC_GET'
exporting
act_orgunit = orgunit
act_plvar = '01'
act_date = pdate
sort_flag = ''
add_flag_pdata = ''
tables
org_units = orgunits
PERSON_TAB = person_tab
org_pers_rel = org_pers_rel
exceptions
no_active_plvar = 1
others = 2
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
internal table person_tab will give you the list of employees in that particular org. unit!!
Hope this helps!! -
Integrate BSP with the MSS Teamviewer
Hi,
does anybody know how to integrate a bsp application with the MSS teamviewer navigation - like other MSS services are integrated(i.e. receive Teamviewer event in BSP application)?
Thank you,
SergeHi sergey,
I also fedup in searching the integration functionality & finally built the 'TeamViewer' in BSP Page itself.
It's simple. Pick up your 'directly reporting employees' or 'All employees' from the Org structure using the fn module <b> RH_DIR_ORG_STRUC_GET </b> .
I hope the foll thread will be helpful.
/thread/132644 [original link is broken]
Rgds,
Jothi.
Message was edited by: Jothivenkatachalam.P
Maybe you are looking for
-
Data recovering from formatted bit locker encrypted portion.
unfortunately i formatted a partition which is bit locker encrypted having all my valuable documents and data. luckily i have bit locker recovery key and my decryption password. i use m3 bit locker recovery software to recover my data using my store
-
Is it possible to create a variable in bex with the last work day?
Hi Gurus Is it possible to create a variable in bex with the last work day? Actually end-user every day open queries, - Put in selection date day - 1 or - put last Friday if the day is Monday or - put last Thursday if the day is Monday an
-
Really weird ... need help!!
Hey all ... I need your help!! I typically use Safari and Firefox for browsing on my iMac. Until this evening, I have always been able to highlight the text in the address bar and type the site I want to go to (i.e. xmradio). I have never had to type
-
Hi Everyone, I want to call this fm "BDL_SYSTEM_INFO" in a program and display the results. But unfortunately not at all able to do it. Since in the fm it refers to a structure "BDLSYSTINF" and tried to declare this in my prgram but stil get even get
-
Some one has blocked Safari on my Mac Air for 'security reasons'
Someone has blocked Safari on my Mac air " for security" temporarily the same message came up on my iPhone 6 Plus but is now gone. Need to remove the block from my computer