on 08-24-2010 5:16 PM
Hi All,
i will like to test this FM RH_STRUC_GET. i thought it is used to get the position and organizational unit the user is linked to
I proceed as follow:
Se37
i filled:
0type:S
0BJID:persnr.
WEGID:A008
Flag:?
PLVAR:01
Begda:24.08.2010
ENDA:24.08.2010
TDEPTH (What does that mean?):?:?
TFLAG (What does that mean?):?:?
TVFLAG (What does that mean?):?:?
Authority Check (What does that mean?):?:?
Text_Buffer-fille (What does that mean?):?:?
Buffer_Mode (What does that mean?):?
Could anyone help?
Thanks
gilo
Use the below criteria to get Position assigned to a person
OTYPE -- P
OBJID -- Personnel Number
WEGID -- B008
PLVAR -- 01
Begda:24.08.2010
ENDA:24.08.2010
TDEPTH -- 0
Use the below criteria to get Org unit assigned to a position
OTYPE -- S
OBJID -- Use position number retrieved above
WEGID -- A003
PLVAR -- 01
Begda:24.08.2010
ENDA:24.08.2010
TDEPTH -- 0
Remaining fields are not required to fill.
Swapna
Edited by: Swapna on Aug 24, 2010 7:23 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gilo,
Please check this example :
DATA: IOBJEC LIKE OBJEC OCCURS 0 WITH HEADER LINE,
ISWHACTOR LIKE SWHACTOR OCCURS 0 WITH HEADER LINE,
ISTRUC LIKE STRUC OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = 'S'
ACT_OBJID = MGR_POS ---> <Position>
ACT_WEGID = 'ZSPS' -
> Relation
ACT_PLVAR = '01'
ACT_BEGDA = PCHBEGDA
ACT_ENDDA = PCHENDDA
ACT_TDEPTH = 2
TABLES
RESULT_TAB = ISWHACTOR
RESULT_OBJEC = IOBJEC
RESULT_STRUC = ISTRUC
EXCEPTIONS
NO_PLVAR_FOUND = 1
NO_ENTRY_FOUND = 2
OTHERS = 3.
Note : The Variable ACT_TDEPTH denotes -->To indicate how many levels of an organizational structure should be processed in an inquiry/report, enter the appropriate level numberFor example, if the field contains a 3, the system processes three levels of the structure, beginning from the organizational unit you select as the root object, down.
The below fields always used default values unless for special cases.
HRRHAS-TFLAG - is checked if you need to fetch the texts
HRRHAS-VFLAG - is checked if you need to fetch the relation ship information
HRRHAS-AUTHY - is checked if you need to check the authorization
TEXT_BUFFER_FILL - denotes a test run
Remember the Objid is position based on the object type and relation you selected.
Thank you,
Kumar
Edited by: Kumar B on Aug 24, 2010 12:37 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
thank you very much for your valuable input.
II still have some questions. What does these mean?
ACT_OBJID = MGR_POS ---> <Position>
Where to find MGR_POS
ACT_WEGID = 'ZSPS' -
> Relation
According to the basic mgt object S= Position, what is Z for?
ACT_BEGDA = PCHBEGDA
Why PCHBEGDA? PCH is for the database.
Why ISWHACTOR?
Why IOBJEC?
Why ISTRUC?
Thanks
Hi Gilo...
Sorry to confuse you.
I just randomly copied the usage of FM.
Let me make it generic.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = 'S'
ACT_OBJID = <Position>
ACT_WEGID =<Relation>
ACT_PLVAR = '01'
ACT_BEGDA = <BEGDA>
ACT_ENDDA = <ENDDA>
ACT_TDEPTH = 2
TABLES
RESULT_TAB = <Any table of type SWHACTOR>
RESULT_OBJEC = <Any table of type OBJEC>
RESULT_STRUC = <Any table of type STRUC>
EXCEPTIONS
NO_PLVAR_FOUND = 1
NO_ENTRY_FOUND = 2
OTHERS = 3.
And those Result tables are again optional. But they should of specific types .
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.