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.
thanks
call 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!!
Similar Messages
-
Employee and Org Unit BP Replication Question - how to stop replication
Hi,
We are replicating business partners using BUPA_MAIN for IS_U Scenario. This is working fine from R/3 to CRM, and changes are replicating back properly (CRM to R/3). We have a filter on BUPA_MAIN for the business partners in a particular number range that we want replicating back and forth.
We are also using an ALE scenario from HR to CRM and this seems to be correctly creating our Org Unit BP's and Employee BP's in a specific number range.
Our problem is that we are seeing failed bdoc's in SMW01 when the system creates new bp's in the Org Unit and Employee Role. The error is because we have not set up corresponding number range in R/3. We have not set this number range up in R/3 because we do not want these types of BP's to replicate back to R/3. Why are these types of BP's trying to replicate back to R/3 when we have a filter on BUPA_MAIN that does not include these number ranges? Is there something else we need to set somewhere so that these types of BP's will not try to replicate back to R/3?
Thanks,
Pam CirssmanHi
first u need to do the filter settings in object BUPA_MAIN to stop the employee replication to R3.
When u create the no. ranges in r3 u can remove the filter so that the process will continue.
Regards
Manohar -
Employee resposnsibles Org unit Determination (Employee is assigned to Org Unit)
Hi ,
We want to determine Org unit based on employee responsible but not on basis of USER.
Employee responsible will be assigned to a particular position in Organization .
We want to determine Organization unit where Employee is assigned .
When in transaction Partner Function employee responsible is selected then Organization unit to which employee is assigned should get determined.
When employee resposnsible is changed Org unit (Service ) should change .
Please suggest solution.
Thanks & Regards,
Anup RecheHi
first u need to do the filter settings in object BUPA_MAIN to stop the employee replication to R3.
When u create the no. ranges in r3 u can remove the filter so that the process will continue.
Regards
Manohar -
Is it possible to change an employee that was assigned to an Org Unit through migration?
Organizational Management | Org Structures | End Employment Assignment is greyed out.Hi Michael,
The end employment is grayed out in the WoC Org Management Edit Screen Employee Tab, if HCM is scoped and the employee is an internal employee and not a service agent.
If HCM is not scoped or if it is a service agent you can do do the transfer in WoC OrgManagement . However do not forget to activate the org unit you transfered the employee to.
If HCM is not scoped there is also the lean employee UI for hiring, transfers, terminations, etc.
Raviprasad nicely described what to do with internal employees in HCM.
Just a remark on the manager. If there is amanger assigned to the org unit where they are transfered, this will be the new manager of the employee.
Best regards
Frank -
Fetching employees under org. units.
Hi all,
I have to obtain a list of employees which come under a selected org. unit. This org. unit could be a main org. unit which contains subordinate org. units under which an employee resides. Can anyone tell me how to do this.
regards,
HamzaHello,
This FM will be helpful for you. If you want to get the list of all the employees based on the Organizational Path. You need to know the evaluation path though.
Thanks,
Jayant -
Find employees of org.unit
hi,
i table itab with org.unit and i wont to find the emp of the org.unit how i can do that?
RegardsMay be check for table
select * from pa0001 where ORGEH = itab-ORGEH.
a® -
Org unit employees time depend
Hello Experts,
I need a help how to build DSO which gives all the employees in org unit & what the position for each employee between 2 dates
ThanksHi Alexandre,
Although I could not respond in time, thank you so much for your prompt reply.
I had used the same RHPH_STRUCTURE_READ and passed the appropriate values to it, but it did not populate the required results. I cross checked the results manually, may be some relations issue. But later I tried using RH_STRUC_GET_MULTIPLE_ROOTS and it worked fine.
Meanwhile I had done a workaround with PCH and RH_STRUC_GET and it served the purpose of getting all the Org units, it’s reporting sub-org-units, positions and persons (The deepest structure from the root org unit advised on selection screen).
The solution I used is, I captured the org-units advised on selection screen by user using PCH logical database and then by looping on sub-org units reporting to the main org-unit I populated related positions and persons holding them and assigned it to the PNPCE logical database.
Thank you so much for the help.
Regards,
Mahesh Konade -
Need to get employees belonging to this org unit + its lower level org Unit
Hi ,
We have a requirment where in which we need to get all the employees belongs to a perticular in an
organization UNIT and its lower level org units.IS tehr any FM to find the same.
i.e if we input org unit then it should return all the employees belonging to this org unit + its lower level
org unit(B002 relation ship)
Any inputs are appreciated..
Regards,
Zareena.Hi Zareena,
This is wht i understood in org management...
evaluation path is the relation between two entities,
entities may be
job(C)
position(S)
Employee(P)
Org Unit(O)
O - O is line mangaer,
S - O belongs to,
P - S is owner of.
i think if u observe O - O is line manger.. means in with same position
S - O means that position belongs to the Org Unit
P - S means the employee has that Position.
All these type of relations will me maintained in the Infotype 1001 with the raltionships.
All object types will be maintained in the Infotype 1000.
Regards,
Sreenivasulu Nallani.
Award points if helpful.. -
How to view employees of "only a specific employee-group" from an org unit
Dear All,
I am working with authorization for MSS , now there is following requirement ,
There are 2 cheif positions in one orgunit , say as cheif-1 and cheif-2 , cheif-1 can view all employees exist in his organization unit ,including cheif-2 . But cheif-2 can see all those employees who belong to employee group non-management and reports to cheif -2 only.
We have tried to restrict the chief 2 to view employee group of non-mgmt in object p_orgin but still he is able to view all employees of org unit in mss. Kindly let us know it is possible to strict chief-2 to view non-mgmt employees .. & how ?
Kindly let me know the solution , as it is an urgent .
Regards
Sadia Kamal
Edited by: Sadia Kamal on Oct 14, 2011 3:32 PMDear All,
i used the structural authorization everything was working fine but cheif1 can view all his employees as well as cheif 2 ' employees but he can not view chief2 . any suggestion please let me know .
Regards
Sadia Kamal
Edited by: Sadia Kamal on Oct 16, 2011 11:10 AM -
CATS - How to enter times of an employee who works for 2 different Org Unit
Hi,
I am able to successfully enter times for an employee and do the approval process (CAT4) and CAT6 and I can see the records getting updated in PA30.
Scenario :
Employee works for 2 different Org Units and should be able to enter his time through Timesheet. Eg: Employee A spends 6 Hours working in Department B1 & 3 Hours in Dept B2.
The Manager of B1 should only be able to approve 6 Hours of Employee A
The Manager of B2 should only be able to approve 6 Hours of Employee A
Can somebody help me out how this can be achieved?
Regards,
MamtaHi Sameer,
Thank you for the response. Yes, when I report the times for 2 different org units I would also want the cost for that employee distributed between org units.
I tried your solution-> by entering times in CAT2 for Employee A for 2 different Cost Centers that I created.
For Department B1 --> In CAT2 I entered Cost center C1 : 6 Hours
For Department B2 -->In CAT2 I entered Cost center C2 : 4 Hours
When I go to CAT4 and try to select the employee for approval and search the employee-A Org unit wise he is displayed only in his original Department -> B1 with 10 hours (6+4). What else do you think needs to be done?
Is this anything to be done with Sender Receiver Cost Centers because the cost center C1,C2 that I created for Org Units B1 & B2 respectively are just Cost Centers. I dont know the difference between Costcenter and Sender Costcenter/Receiver Costcenter.
I will try to explain the scenario again in case I was not clear :
u2022Each employee has their home OU. However these employees may be working with multiple OU each day or the week. So potentially, the time sheet may have to be approved by multiple managers.
Regards,
Mamta -
How to Restrict Creation of Infotype Record for Certain Org Units?
Dear All,
Requirement:
Org Unit 1 does not have overtime. Even the employee works overtime, they will not get overtime compensation.
One of the option is to disallow the creation of IT2005's record for all the employees in Org Unit 1.
Is it possible to do this through standard SAP?
Thanks a lot.Hi,
The best way to control this will be with Authorizations so that people belonging to one Org.unit should not have IT2005 mantainence.
Let me know if u have any concerns on this.
Thanks
Swati -
OM/PA Bug - Personnel have different Org Unit in PA.
An employee was hired into an Org Unit A. However, when I check into PA20, the employee's org unit is showing as Org Unit B.
I checked PPOME, and the Employee (Person) and his position and it is shown under Org Unit A.(the correct Org Unit.)
I check PP01 for the employee's position and it belongs to Org Unit A.
And yet when I check into PA20, the employee has Org Unit B.
How do I continue my investigation for this?
Points to those who can help.
Thanks.
OlekanHello Anantha and Manu,
Thanks for the prompt reply.
The employee is visible in the Staffing mode. He is placed in only one position and is 100 % for this position.
The relationship validity for the Position to the Org Unit A is valid until 12.31.9999.
Currently we have 6 of this employee that belongs to Org Unit A but is showing in Org Unit B in PA20.
Thier positions are adjacent in the staffing screen. So I think there was a mistake during creation of this positions or assignment of the pos. to employees. Or it could be a product error.
Do you think i should raise an OSS note for this?
Thanks
Regards,
Olekan
Edited by: Clueless Noobie on Dec 18, 2007 5:19 AM -
Obtaining Org Unit from Business Partner number
Hi, I am trying to obtain an org unit object id from the bp number that is created when the org unit is created. I am in a BP BADI, so I only have the bp number, and am in the process of creating a new org unit when the BADI is called. I have tried to use RH_STRUC_GET but because we are in the creation process this does not retrieve any results. I understand that this fm reads a buffer to get its results, and the org unit is obviously not in the buffer at this time.
Could anyone help me to find a function module that will find the org unit in this case?Hi Ratikant,
Thanks for your suggestion. This may work if I was looking for an employee's org unit, but I was actually looking for the BP record for the org. unit that was being created. It would also depend on whether this function module would work before the save and commit has occurred.
I cannot test you solution since I managed to implement a work around where I saved the org unit using a funtion group in another(earlier) BADI so that I could retrieve it in this BADI. This has been tested and implemented and I don't want to cahnge what is already working!
Many thanks though! -
To pick Parental org unit ( Root Org Unit)
Is there any Function Module which can pick the employee root organization unit.
In my code:
*zhrint02_itab-status = 'X'.*
MODIFY zhrint02_itab TRANSPORTING status
WHERE otype EQ wa_adompernr-otype
AND objid EQ wa_adompernr-objid
AND infty EQ '1028'.----
If status = 'X' it is picking the employee assigned org unit i.e Modify zhrint02_itab Transporting status
objid = wa_adompernr-objid.
Is there any way to pick the Root org unit for the emp.
Kindly suggest the code change where i have to change in the above code to get parental org unit...Hello!
I am not sure if you have already found an answer but MSS does not require you to change your existing Org structure. Many companies use position to position reporting relationship and not position to org. unit relationship with chief position holder. For MSS you can completely customize the way a manager is identified and how subordinates for the manager are identified by using function modules and perform necessary configuration in OADP.
Harald -
Employee works for 4 org units and want to distribute the cost to 4 cost ce
Hi Experts,
I am in the implementation phase, requirement gathering.
I have scenerio where, Employee works for 4 org units and want to distribute the cost to 4 different cost centers.
so that I can be able to find the exact cost occured for each Org unit.
Please let me know how to map this in SAP?
P oints will be rewarded fully
Kindly dont post if you are not sure of your solution friends.
Thanks
JayHello,
Infotype 0027 is the standard solution for multiple reporting / multi tasking in SAP.
but also check which org unit he will be primarily assigned.
Regards
Maybe you are looking for
-
I Wanted to buy itunes gift card but instead I got apple store gift card accidentally how can I buy itunes gift card using my apple store gift card?
-
how can i get an invocce from the Apple store UK ? Message was edited by: Host
-
Hi Team, Client has requested our PoV on HANA on ECC and implications of that on ABAP programming (Standards, best practices, trainings required, etc). Do we have anyone who has exposure to HANA on ECC and could guide us? Currently ECC doesn't
-
Is it possible to auto delete directory when the session expires?
I create a directory for each session based on the unique session id e.g. c:\website\8D143E46EA18FAEFEF4D807180A307E2 Is it possible to auto delete this directory when the session expires?
-
HT201318 How do you downgrade free 15 day trial period of ICloud?
There is a fifteen day grace period where you can downgrade iCloud storage. How do I do it????