Evaluation Path: User - all Org-Units (TA OOAW, FM RH_GET_STRUCTURE)
Hi,
I am working on an Evaluation Path which gives me all hierarchies (Type O) above one user. I don't get it yet :-(. I tried:
10 * B 008 Inhaber * S
40 S A 002 berichtet (L) an * *
Whats wrong? Thanks in advance.
- done.
Similar Messages
-
Obtain users from Org Unit.
Hi all,
Which tables I must know to obtain all users (purchasers) from Org unit?
I can't use a FM. I need to obtain this data from R3, not SRM.
Thanks!
Regards,
David.Hi. All links are in table HRP1001. You will have to go back to this table many times.
Firstly you can get all the positions under the org unit from HRP1001, then you will have to go back to HRP1001 with the position numbers to get the person numbers and so on.
Regards,
Dave. -
Fm to get employee under manager of all org unit
hi,
i have requirement that i need list of all employee under particular manager i know abt HRWPC_PNP_MANAGED_EMPLOYEES but i don't know how to use it is thr any fm reg it .
thanks in advanceHi Rajan,
Below is the sample code for your reference...
REPORT zrnd.
*database tables used
TABLES:pa0001, "Infotype 0001 (Org. Assignment)
hrp1001, "Infotype 1001
pa0002. "Infotype 0002 (Personal Data)
*internal tables declaration
**----internal tables for holding
DATA:t1001 LIKE p1001 OCCURS 0 WITH HEADER LINE,
t1002 LIKE p1001 OCCURS 0 WITH HEADER LINE,
t1003 LIKE p1001 OCCURS 0 WITH HEADER LINE,
t1004 LIKE p1001 OCCURS 0 WITH HEADER LINE,
t1222 LIKE p1222 OCCURS 0 WITH HEADER LINE,
t0001 LIKE p0001 OCCURS 0 WITH HEADER LINE,
t0002 TYPE p0002 OCCURS 0 WITH HEADER LINE.
DATA: w1222 TYPE hrp1222 .
DATA : z1222 TYPE hrt1222 OCCURS 0 WITH HEADER LINE.
DATA: res TYPE swhactor OCCURS 0.
DATA: wa_res TYPE swhactor.
Data : f_code type ABTNR,
p_code type ABTNR,
f_text type VTEXT,
p_text type VTEXT,
s_pernr type Pa0001-PERNR,
s_name type pa0001-ename.
*variable declaration
**---0 to capture the id of the object "may be orgunit, position, persion.
DATA: g_sobid1 LIKE p1001-objid,
g_sobid2 LIKE p1001-objid,
g_sobid3 LIKE p1001-objid,
* *--to capture the personnel number
g_pernr LIKE pa0002-pernr.
Constants : c_function type c value 'F',
c_Proces type c value 'P'.
*selection screen paramters
**----enter a valid personnel number
PARAMETERS:p_pernr LIKE pa0002-pernr.
*start of selection
START-OF-SELECTION.
*Get the Position for entered Personnel number
*----RH_READ_INFTY function module is used for the OM infotypes ..starting with HRP
CALL FUNCTION 'RH_READ_INFTY'
EXPORTING
plvar = '01'
otype = 'P'
objid = p_pernr
infty = '1001'
subty = 'B008'
begda = sy-datum
endda = sy-datum
TABLES
innnn = t1001
EXCEPTIONS
all_infty_with_subty = 1
nothing_found = 2
no_objects = 3
wrong_condition = 4
wrong_parameters = 5
OTHERS = 6.
IF sy-subrc = 0.
* MESSAGE 'this number is not maintained in hrp1001' TYPE 'I'.
ENDIF.
*Get the latest record reading T1001 with following values
SORT t1001 BY begda DESCENDING .
READ TABLE t1001 WITH KEY objid = p_pernr "personnel number
otype = 'P' "Person
rsign = 'B' "hirarchy top down
relat = '008' "Holder
sclas = 'S'. "Position
IF NOT t1001[] IS INITIAL.
g_sobid1 = t1001-sobid. "ID of Related Object
*Get Org unit for the position obtained from above
CALL FUNCTION 'RH_READ_INFTY'
EXPORTING
plvar = '01'
otype = 'S'
objid = g_sobid1
infty = '1001'
subty = 'A003'
begda = sy-datum
endda = sy-datum
TABLES
innnn = t1002
EXCEPTIONS
all_infty_with_subty = 1
nothing_found = 2
no_objects = 3
wrong_condition = 4
wrong_parameters = 5
OTHERS = 6.
IF sy-subrc = 0.
ENDIF.
ENDIF.
SORT t1002 BY begda DESCENDING .
READ TABLE t1002 WITH KEY objid = g_sobid1
otype = 'S' "Position
rsign = 'A' "bottom up
relat = '003' "Belongs to
sclas = 'O'. "org unit
IF NOT t1002[] IS INITIAL.
g_sobid2 = t1002-sobid.
*Get position for the Org unit (Manager)
CALL FUNCTION 'RH_READ_INFTY'
EXPORTING
plvar = '01'
otype = 'O'
objid = g_sobid2
infty = '1001'
subty = 'B012'
begda = sy-datum
endda = sy-datum
TABLES
innnn = t1003
EXCEPTIONS
all_infty_with_subty = 1
nothing_found = 2
no_objects = 3
wrong_condition = 4
wrong_parameters = 5
OTHERS = 6.
ENDIF.
SORT t1003 BY objid.
READ TABLE t1003 WITH KEY objid = g_sobid2
otype = 'O' "org unit
rsign = 'B' "hirarchy top down
relat = '012' "Manages
sclas = 'S'. "Position
IF NOT t1003[] IS INITIAL.
g_sobid3 = t1003-sobid.
*Get Personnel number for the Manager
CALL FUNCTION 'RH_READ_INFTY'
EXPORTING
plvar = '01'
otype = 'S'
objid = g_sobid3
infty = '1001'
subty = 'A008'
begda = sy-datum
endda = sy-datum
TABLES
innnn = t1004
EXCEPTIONS
all_infty_with_subty = 1
nothing_found = 2
no_objects = 3
wrong_condition = 4
wrong_parameters = 5
OTHERS = 6.
* if sy-subrc <> 0.
* MESSAGE 'this number is not maintained in hrp1001' TYPE 'I'.
* endif.
ENDIF.
READ TABLE t1004 WITH KEY objid = g_sobid3
otype = 'S' "Position
rsign = 'A' "bottom up
relat = '008' "Holder
sclas = 'P'. "Person
IF NOT t1004[] IS INITIAL.
g_pernr = t1004-sobid+0(8).
**--Get name of Manager(Supervisor)
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = g_pernr
infty = '0001'
TABLES
infty_tab = t0001
EXCEPTIONS
infty_not_found = 1
OTHERS = 2.
SORT t0001 BY pernr begda.
READ TABLE t0001 INDEX 1.
IF NOT t0001[] IS INITIAL.
write t0001-pernr to s_pernr.
write t0001-ename to s_name.
ENDIF.
Perform get_function_code using g_sobid2 .
ENDIF.
PERFORM display_results.
*& Form get_function_code
* text
* -->G_SOBID1 text
FORM get_function_code USING org_unit.
PERFORM get_obj USING org_unit.
PERFORM get_ab USING w1222-tabnr.
PERFORM get_text tables z1222.
IF z1222-attrib IS INITIAL.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'O'
act_objid = org_unit
act_wegid = 'A002'
* ACT_INT_FLAG =
* ACT_PLVAR = ' '
act_begda = sy-datum
act_endda = sy-datum
act_tdepth = 0
act_tflag = 'X'
act_vflag = 'X'
authority_check = 'X'
* TEXT_BUFFER_FILL =
* BUFFER_MODE =
* IMPORTING
* ACT_PLVAR =
TABLES
result_tab = res
* RESULT_OBJEC =
* RESULT_STRUC =
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT res INTO wa_res.
PERFORM get_obj USING wa_res-objid.
PERFORM get_ab USING w1222-tabnr.
PERFORM get_text tables z1222.
ENDLOOP.
ENDIF.
ENDFORM. "GET_TEXT
*& Form GET_OBJ
* text
* -->P_OB text
* -->P_OJ text
FORM get_obj USING p_oj.
SELECT SINGLE * FROM hrp1222 INTO w1222 WHERE otype = 'O'
AND objid = p_oj.
ENDFORM. " GET_OBJ
*& Form GET_AB
* text
* -->P_TAB text
FORM get_ab USING p_tab.
SELECT * FROM hrt1222 INTO table z1222 WHERE tabnr = p_tab.
ENDFORM. " GET_AB
*& Form GET_TEXT
* text
* -->P_Z1222_LOW text
FORM get_text tables p_txt STRUCTURE hrt1222.
loop at p_txt.
if p_txt-low+0(1) = c_function.
write p_txt-low to f_code.
SELECT single vtext FROM zfunctiont INTO f_text WHERE abtnr = p_txt-low.
ELSEIf p_txt-low+0(1) = c_Proces.
write p_txt-low to P_code.
SELECT single vtext FROM ZPROCESST INTO p_text WHERE abtnr = p_txt-low.
endif.
endloop.
ENDFORM. " GET_TEXT
form display_results.
write :/ s_pernr,
30 s_name.
WRITE :/ f_code,
30 f_text.
WRITE :/ p_code,
30 p_text.
ULINE.
endform.
Thanks,
Chidanand -
More than 200 users per org unit
Hi Experts,
We are implementing SRM 5.0 and replicating org structure from HR systems. We have some org units which have more than 200 users. Please advise if there is any issue with it.
Regards,
KamalHi,
The 200 limit is for users generated through trasnc USERS_GEN.
If an organizational structure with a large number of dependent nodes is displayed in the overview area, access to the transaction can take a very long time.
Please refer to the following SAP OSS Notes ->
Note 503915 - PPOMA_BBP: performance improvement overview area
Note 389869 - Organizational unit with many employees
Note 405806 - Transaction PPOMA_BBP for new material group attributes
Note 864221 - EBP 4.0+: Performance location
Note 920158 - EBP 4.0+: Shopping cart performance
Note 1044096 - RSWUWFMLEC: Wrong Emails and/or Bad Performance
Note 1095895 - Slow response times for several SRM transactions
BR,
Disha.
Do reward points for useful answers. -
How to read employee user's Org unit name,Org unit add and user position
Hi ,
Is there any Function module or a class-method to read a user assinged Orgunit name ,Org unit address and the user position at that org unit.
i have a given out a search on sdn but could not get the answer.
Thanks for your time
SeemaEswar,
Thanks for your fast reply.
I found this table before.But i do not have idea of passing what paramters to get my specific org and position of an employee data from this table.
Let say i know my BP number for employee and Username of him.
i could find out his Obj id using EMP user name.
When i look into table HRP1001 using above Obj id, i could see there are 3 entries exist in table , among one of them is talking about position as
Sclas = S and SOBID = 50020832.
So how would i know by having this number , is it dealing with position and what kind of position it is,,,whether a manager or something else?
Hope you got me.
Basically am aslo looking for a FM where in i cold porvide aBP number or EMP username, where inturn i ll get a Emp position his org details.
Seema
Edited by: seema rajjot on Apr 9, 2010 8:40 PM -
Updating user with Org Units using NSAPI
We have a requirement where we need to update users with different Organizational Units using an external system. The integration guide lists an NSAPI that might be used for this operation, Create/Update Person. This just says that we need to use the XML received from a Get person details API and use it as a request XML.
The problem we are facing is figuring out where to place the new Org Unit details in the request XML.Would anyone know about that detail.
Is this even the correct API for achieving the requirement or are we looking at the wrong thing hereHi,
I've changed the input type to select(multiple) for that field and it works fine when I order it from the portal directly. Its able to set multiple values into the field when an sql query return more than one row.
The problem only occurs when I use the RAPI for making a request to that service.
The structure I use for passing data to that field is:
<req:Field>
<req:name>FieldName</req:name>
<req:value>
<req:string>Value1</req:string>
<req:string>Value2</req:string>
</req:value>
</req:Field>
which is what you've pasted above.
Even if I stop sending any value to this field and only send values to other single value fields, it still gives the same error message. -
Parter determination - User's org unit
Hi Gurus.
I am using rule 10000194 to obtain the Org. Unit a user is assigned to, but I have realized that no pop-up is prompted so that users select the appropiate Org. Unit whenever he is assigned to more than one Org. Unit. However this is working fine In GUI.
Any idea? Thanks and regards,
PabloHi Pablo,
Check in debugging what are the values stored in structure CRMST_ORGSET_BTIL for BOL entity *BTOrgSet *. This is the ORGMAN entity.
Check if NO_DETERMINATION = X,
SALES_ORG_ORI = A (Auto Determination) or B ( User Selection ) or C (Manual Input)
DIS_CHANNEL_ORI = A (Auto Determination) or B ( User Selection ) or C (Manual Input)
These values come SPRO settings.
Regards,
Masood Imrani S. -
[ESSO issue] Moving user from Org Unit
hi all,
i've met an issue at a customer site.
eSSO has been deployed, synchronisation done with ESSO eDirectory.
Users are now using it but recently some users have moved from an OU to another (something that happens frequently everywhere).
The problem is that ESSO seems to keep the initial user location in the Current User registry and seems to always want to use this entry even though authentication fails (since user is not at the same ldap location).
So authentication failed and users get an "Failed To Connect To Directroy".
We don't want to change directly the registry since we think it's not really nioce and shouldn't be done.
Is there something that must be setup to search again in the ldap structure to find when authentication with synchronizer fails ?
ps : it's not a problem with the location parameter. It's pointing at the ldap root entry.
thanks for the help
-regards.I haven't come across the issue myself but I think if you move a user, you need to create a 'User Pointer' SSOLocater object that points the agent to where you have moved the user to.
Good luck. -
Evaluation Path and Plan version
Hi Experts,
Can anyone please help me understand the concept of Evaluation Path and how the Evaluation path and the plan version settings are used in real time scenarios.
Thanks,
Sindhu.Hi,
See, a reporting structure, staff assignment, organization structure are all evaluations paths themselves. The relationship between objects is defined.
A lot of standard evaluation paths exist. But in case you dont have the path which meets your requirement you create a new one.
Suppose you want to find out which all Tasks are linked to a job which is linked to a position which reports to an Org Unit
so your evaluation path will traverse Org unit then position then the job then the tasks assigned.
A relationship between an object is also a evalution path
hope this helps
Ajay -
How to find cost centers for a org unit ( if kost center is inherited)
Hi all
We have a org structure
When a parent org unit is assigned a kost center then the parent also inherites the kost center
I need to find kost center for all the org unit in my organization
I cant see the inherited cost center neither in IT 1001 nor 1008 nor 1015 but i can see it in PPOME in the account assignment tab.
How can i find the inherited cost centers to all the org units.
i think i am clear with my requirement to all
Thanks
RajUse the report RHSTRU00 in tcode SE38
and give the follwoing values in selection screen
Plan version 01 Current plan
Object type O Organizational unit
Evaluation Path A011 All relationships to A011 -> cost
execute the report to see all the orgunits with their cost centers -
Report for Org units with no positions
Hi
I am searchign for a report through which I can find all org units whcih have no positions assgiend.
Please suggest.
Thansk
Regards
RKGSAPHI,
follow the path -
SAP Easy Acces->Human Resources->Organizational management->Info system->Organization Unit->Organization Structure
Here you have the SAP query, execute the one that ftis in your requirement.
Also check the same in the Position node. Explore the 'report Structure' node as well.
Thanks & REgards, SWapnil Mishra -
Hi ,
How to check logs of ORG UNIT like assignment of roles, removal of roles and validity changes to ORG UNIT ???We have prod system in which role assignment is indirect.. Like roles are assigned to ORG UNIT and POSITION
We dont assign roles user based..
Structure is like this..
ORG UNIT ---> Positions -
> Users
Under ORG unit , there would be several POSITIONS and under POSITION there would be several users..
Some one has removed roles from ORG UNIT and all users under this ORG UNIT lost access....
We need to find out who did it .... -
Nakisa Org Chart 2.1 - excluding org units from extract and saving chart
Hi,
Is it possible to exclude specific org units from the org chart that is extracted to Nakisa? These (and all subordinate) org units should not be included in the chart which is to be published on the intranet.
Also, what is the easiest way to create a file (e.g. PDF, PowerPoint) of all org units and positions in the structure? I've looked into using the ChartBook functionality but this did not seem to work too well, and there was no option to Save or Print the chart.
We have Nakisa OrgChart 2.1 SP1 running on SAP CE. This is with a staged extract out of SAP ERP which is hosted on Windows and SQL.
Thanks.Thanks Stephen and Luke.
I will look into your comments re: excluding org units from the directory searches etc when next at the customer site.
As for the Chartbook issue - the customer is looking to create a file (e.g. HTML, PDF) of the entire org structure which they can then make available on the intranet. (They currently only have license for a couple of HR users so ESS access is not an option right now). We have looked at using the standard Print/Export options as well as the Chartbook and neither seems to work particularly well....the customer keeps referring back to how easy it is to create a HTML file using OrgPublisher....
What is the recommended and best approach for creating a file which can be published on a company's intranet? (There are about 1000 positions/employees in total so not a huge file).
Hopefully v3.0 is a whole lot easier to use
Thanks, Ron -
FM to identify Org Units Authorised in structural authorisation
Hi experts,
could you please let me know if there is any fm to identify list of all org units authorised by the user.
rgds
gayathriHi Gayathri,
Check for FM -
HR_BW_IS_AUTHORITY
HR_BW_IS_AUTHORITY_HIERARCHY
Regards,
Malathi V -
Error with Recursive Evaluation Path in PD Profile
Dear Experts,
Im facing an issue using a recursive evaluation path inside a PD profile (transaction OOSP). My scenario is that a Central Person (CP) object is linked by 2 Person (P) objects. I want the PD profile to give access to 2 Person (P) objects as long as I have access to either 1 of the Person (P) object. I have an evaluation path that is created using transaction OOAW as follows:
10 P A 209 * CP
20 CP B 209 * P
The problem that Im encountering is that the P object goes through a recursive loop during the evaluation path, i.e. the 2 P objects that are evaluated as output gets passed in as inputs again and go into a loop continuously. Is there a way to resolve this recursive issue or other alternative resolution that could meet my requirements? Thanks.Use field "Function Module" of table T77PR. You can program what you want yourself. Use function module RH_STRUC_GET to get the CP from the P, and then again RH_STRUC_GET to get the P from the CP. Add the resultings P to the output parameter. Press F1 on the field to see how the FB should look like.
Maybe you are looking for
-
Error While Creating a Characteristics inCT04
Hi Guru's, I have created a characteristic VC_Color in CT04 and enter the relevant values and tried to save the characteristic i got an popup as below, Do You Want to Check Use in Configurations?, due to this popup i cant able to proceed furhter als
-
So while I'm going through manuals etc, I figured I'd post here in case I can't find my answer in other places. I have a Sony CCD-TRV68 Hi-8 camera and a Canon ZR70mc digital camera. I've transferred from the hi8 to the dv through an s-video cable be
-
DRM coded books, problem with Adobe ID
Hello I have registered my new cell phone for Adobe ID but I can not open DRM coded books when they are copied from Digital Edition to my new device (Android cellular phone, Aldiko app). My Adobe ID was previously registered for I think totally five
-
No Action Until Image Loads, Please
Hi; For some reason the squares of color that are supposed to load behind the image that acts as a mask load first, momentarily showing while the image loads, which looks bad. Hre is the code: package import flash.display.Sprite; import flash
-
IChat Refuses To Vid/Screen Share
Date/Time: 2008-05-24 23:10:40.508 -0700 OS Version: 10.5.2 (Build 9C7010) Report Version: 4 iChat Connection Log: 2008-05-24 23:09:56 -0700: AVChat started with ID 466388131. 2008-05-24 23:09:56 -0700: bosoxnationx7: State change from AVChatNoState