RH_STRUC_GET Function
Can someone tell me the mean of the dates that this function returns in the tables RESULT_OBJEC and
RESULT_STRUC ???
Thanks
the dates give you the VALID_FROM and VALID_TO in formation, an object can have different properties in different time slices
Similar Messages
-
Working of 'RH_STRUC_GET'
Hello,
I have a following Org structure
O (Org1)
|_ S
| |_ P (P1)
|
|_ S
| |_ P (P2)
|
|_ O (Org2)
|_ S
|_ P (P3)
I want to get P1 and P2
I am using RH_STRUC_GET function module to retrieve the same.
This is how I am passing the parameters
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'O'
act_objid = Org1
act_wegid = 'O-S-P'
act_plvar = '01'
act_begda = sy-datum
act_endda = sy-datum
act_tdepth = 3
TABLES
result_tab = it_sw
result_objec = it_objec
result_struc = it_struc
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
This way the FM returns P1, P2 and P3, but I want only P1 and P2.
Why is it happening so?
Are the depth and evaluation path I mentioned correct?
How is the level considered. Since I am passing Org1, is that org unit considered as level 1? Or is it that the level 1starts from Org2?
Where can I get the documentation for the function module 'RH_STRUC_GET'?
Please help me out.
Thanks & Regards,
Reena
Edited by: Reena Kandula on Aug 18, 2009 2:16 PM
Edited by: Reena Kandula on Aug 18, 2009 2:21 PMReena,
The values you have passed in 'RH_STRUC_GET' are correct.
You wont be able to get 'P3' if you give 'Depth' as 3.
Level 1 starts from Org1.
In your structure Org1- level 1,
S - level 2,
P1 - level 3,
Org2 - level 2,
P3 - level 4 (won't be displayed).
You can check this structure level in table RESULT_STRUC , check the 2nd column which contains level number.
Regards,
Thyagu. -
Rh_struc_get authorization
Hi,
rh_struc_get function module is failing for a user.Its working fine for other users.
Its a authorization problem.
i am using evalution paths like a008,etc.
Any specific HR authorizations to be given for this??
please provide any details or links that are helpful.
Thanks in advance for the help.
Nuthan.to check if an authorization check failed use transaction su53 to see if this is the case.
Also rh_struc_get uses the HR buffer, so if you use it after changes are made you probably don't see anything, using swu_obuf will clear this problem.
Kind regards, Rob Dielemans -
RH_STRUC_GET example
Hi,
Does anyone have sample code that I can pinch. I want to get all the employee numbers that report to a manager.
I assume the best way is using RH_STRUC_GET but there may be a better way?
Thank you.Hi Satish,
this FM works only under Organizational management. I suppose that the BW has it's own instance.
I think that there are 2 options for transfer OM into BW
as data to datacubes for reporting
as OM for use it maybe as background for authorizations
As I have only little experiences with transfer OM through standard ALE to BW I only test to transfer objects O (Organizational Unit), S (Position) and C (Job). For me I wasn't able transfer objects P (person) into BW. And in this cause you will be able to use this RH_STRUC_GET functional module.
If you will have the OM transferred through extractors into BW then not. This is my experiences that I have from transferring OM across systems (from HR own instance to own instances of ERP, CRM, SolMan and BW systems).
BR -
How to get head of the department(HOD) as an approver.
Hi Experts,
Existing scenario:
Created travel(international) request after getting approved by 1st level(line-manager) work item will go for next level(final approver Line exco).
existing code is attached.
To be developed Scenario:
After getting approved by 1st level (line-manager) work item will go 2nd level (Head odf hte department) prior to final approval(line-exco).
Please suggest me how to get Head of the department using bellow logic.
Pick the ORGEH ( Org unit) as on 31.12.9999 and pass it to HRP1001 with the following field values
RSIGN A
RELAT 803
And pick the SOBID ID as on 31.12.9999
Now pass the SOBID in table HRP1001 , and pass the data with the following field values
OTYPE – O
OBJID – same as SOBID
RSIGN B
RELAT 012
Pick the SOBID
Now pass the SOBID to HRP1001 and
RSIGN A
RELAT 0008
SOBID : PERNR
Pass the PERNR in PA0105 pick the data against SUBTY 0001 .
Thanks in advance
Goutamwhy not use an HR evaluation path (transaction OOAW see for example WF_ORGUN ) and read the path with RH_STRUC_GET function module?
https://help.sap.com/saphelp_erp60_sp/helpdata/en/c5/e4b2c8453d11d189430000e829fbbd/frameset.htm -
Hi,
My requirement is to pass the Username and get the root Org id for the same.
Is there any FM available for this purpose.
Kindly provide your inputs.
Thanks ,
ManiHello Mani,
Using RH_STRUC_GET function module, you will get the root unit of your organizational plan.
For this, populate importing parameter as follow:
ACT_OTYPE = 'S' (Position object type)
ACT_OBJID = user's Position obtained with BBP_OM_STRUC_GET_POS_FROM_USER MF,
ACT_WEGID = 'P-S-O-O' (evaluation path 'Direct or indirect organizational assignments of a person').
In exporting parameter RESULT_OBJEC, you will have all organization units upper than user one until root unit.
Regards.
Laurent. -
Organization Hierarchy Leavels
Hi SAP Experts
Is there a way to maintain Organization Hierarchy level against each org. unit?
For example
Organization Unit - Chairmanu2019s office --- Level 1
Organization Unit - Director's office --- Level 2
Organization Unit - Marketing Department --- Level 3
Please give your suggestions, as per the SAP standard if this is not possible please suggest me how to customize the above requirement.
Regards
VenkatDear Venkat,
Run RH_STRUC_GET function module where object type = O, object id = root org unit ID, ACT_WEGID (evaluation path) = O-O_DOWN BEGDA&ENDDA = SY-datum (today's date).
When you run the FM open RESULT_STRUC structure. There Level column holds the level info you're looking for and objid is the connected organizational unit code.
Regards,
Dilek -
How to retrieve the manager employee no
Hi All,
I want to get the manager employee number of a particular employee. I have the employee no (PERNR) with me.I just want to know the manager of that pernr(employee).Is there any standard function module to find it out or any table where it will be stored.Plesae guide me.........
Regards,
Rakesh.Hi
First use the RH_STRUC_GET Function Module by passting otype as P nad objid as Personnel number and wegid as B012,u will get the Manager's org details.
Now call the RH_GET_LEADER fm to get the complete maneger details.
Regards,
Sreeram -
Material Master WF help needed
Hi Friends,
I am Developing Material Master notification mail workflow.
I am using BUS1001006.
Here I am confusing how can I send particular material information to particular Dept.
i.e If that Material related to mechanical dept I have to send mail to mechanical dept. If that material related to electrical I have to send Electrical dept. Like this they have 6 departments.
Here I can find these departments with STORAGE LOCATIONS and one Department contains 10 to 15 Storage Locations.
Can anybody suggest me what I have to do.
Thanks & Regards,
Sri LakshmiHi,
No need of creating six task. Create a ztable, from that ztable you can determine org unit (electical mechanical etc) based on storage location.
Once you determine the org unit , you have to create a rule to send workflow to everbody under that org unit. You will have to use RH_STRUC_GET function module in your rule( function module you are using for rule).
So in first task you will fetch org unit from ztable based on the storage location. IN second task you will send the workflow there you will have to assign your rule. In the rule you will be determining the agents.I know it is complicated if you have not done it. I can give you some code examples for rule funciton module.
Thanks,
Shweta -
How to find departments under manager
Hi,
please suggest any fm for to finding departments under manager.
Thanks & Regards
RaoIt's solved, thanks for all, Now I know how powerfule "RH_STRUC_GET" function, Its really cool and When I read following link
http://help.sap.com/saphelp_erp2005/helpdata/EN/1b/16a7375de78668e10000009b38f889/frameset.htm
See the Link "Reports in Organizational Management " in Tree view. We know abot all type reports we can do above function module.
once again thanks all.
Thanks & Regards
Rao -
Information mail to HOD in ESS Leave Request
Hi,
I am very new to workflows, here we are implementing Leave Request workflow in ESS ( WS12300111 ). The process in one Leave approval only, but my client wants to send the approved leave request information of employee to his HOD ( after got approval from direct manager ).
I have tried to incorporate SEND Mail Step after approval task, but i am unable to get the HOD of employee in container, can u please tell me where i need to do the changes to incorporate the same.
Thanks & Regards,
SrinathHi Srinath,
I supposed you have already copied the standard WF because it hasn't the functionality you need.
In the new custom WF you have to look for the HOD in the Organizational Structure.
How can you do it? Well, create a ABAP Class with IF_WORKFLOW interface. After this, create a static method in the Class with the employee as Import Parameter and a swhactor structure as Export Parameter. Into this method call RH_STRUC_GET Function module if you know the HOD's evaluation path or navigate into the DDIC tables where you can get it.
After that create a synchronous Task to call that method. Then create a step in the WF asociated to the new task. This step will gives to the WF the object that identifies the HOD. You can use this object to pass it to the email step as the recipient. -
How to find Job relationship using the Function Module RH_STRUC_GET
Hi Experts,
I am getting O-S-P relation ship using for an org unit using the function module RH_STRUC_GET.
Further If I want the job relation ship, how it can be found out.
Thanks in Advance,
IrfanHello Irfan,
Have a look at the table T778A for evaluation path you require and pass this to the function module.
Regards,
Manoj. -
Function RH_STRUC_GET
Hi All,
I'm using this function to get the staffing assignment.
But in case I have more than one person holding position the function return only one holder.
Are there any other functions that return structure (according to root objects and evaluation path) with all holders?
Thanks in advance
ItzikHi,
Try with the FM RH_READ_INFTY_1001 but here you have write some custom code for that.
Thanks & Regards,
Sandip Biswas. -
Function module to retrieve all the personnel numbers in the eval path
Hi all,
I want to retrieve all the personnel numbers that fall in the evaluation path.
Like if my evaluation path is "B002" ( eval path for relationship is line supervisor of ), I want a function module that retrieves all the pernrs in this wval path up to the bottom level.
if A reports to B and B reports to C and C reports to D . I want a function module to retrieve(either positions or pernrs) C, B and A when I run it for position D.
any help??
regards
Sam
regards
SamHi
U can use FM RH_STRUC_GET to get the pernr in the evaluation path
data : IT_RESULT_TAB TYPE STANDARD TABLE OF SWHACTOR .
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = C_OTYPE
ACT_OBJID = W_POSIT
ACT_WEGID = C_WEGID (relation B002 like )
ACT_BEGDA = W_BEGDA
ACT_ENDDA = W_BEGDA
ACT_TDEPTH = 1 ( depath 1, 2, etc )
TABLES
RESULT_TAB = IT_RESULT_TAB .
Nb : Give points if it worths -
Replace Function Module 'BBP_ORGUNIT_GET_EMPLOYEES'
Hi All,
we are in SRM5.0 upgrade. we are not able to find a replace function module of 'BBP_ORGUNIT_GET_EMPLOYEES' this.
if any one knows the replacement function module please and i could not find any replace function module in service market place, so is there any OSS notes available for this?
Thanks,
John.Hello John,
On a similar upgrade, I used the function RH_STRUC_GET with input parameter ACT_WEGID (evaluation path) = 'O-S-CP'to replace 'BBP_ORGUNIT_GET_EMPLOYEES'.
Avaible evaluation path are defined in table T778A.
Rgds,
Pierre
Maybe you are looking for
-
Insert multiple records into a table(Oracle 9i) from a single PHP statement
How can I insert multiple records into a table(Oracle 9i) from a single PHP statement? From what all I've found, the statement below would work if I were using MySQL: insert into scen (indx,share,expire,pitch,curve,surface,call) values
-
Bought extra iCloud storage and hasn't upgraded me
Hi, I have purchased extra iCloud storage for my iPhone and so far it hasn't upgraded me therefore I am unable to take pics and record videos, can anyone please advise me on what I should do next. Thanks
-
[JS] Erreur "unable to process the request because a modal dialog or alert is active"
Hello, Is it possible bypassed the error message "unable to process the request because a modal dialog or alert is active." I want to apply the following command from a window, "leTableau.label leNomDuTableau = / / label of the table Thank you for yo
-
Can I download my copy of Adobe Photoshop 11 and Premiere 11 online using my product key?
Can I download my copy of Adobe Photoshop 11 and Premiere 11 online using my product key?
-
Headache: Data Xchange from JDialog to JTable using JButton
My head is spinning about how to get this to work. What is really confusing me is the data exchange from the JDialog. I have a JTable where one of the columns uses a JButton as the cell editor for each cell in that column. That part seems to be no pr