on 12-16-2010 3:49 AM
Hi All,
I am working with HCM implementation ,
In a query there is a need to Show Name of Chief Position of a organisation Unit.
This is very important , any will help me .
Thanks in advance
With Regards
A Venai
Hi,
Check the below code
DATA: it_result_tab TYPE swhactor OCCURS 0 WITH HEADER LINE,
it_result_objec TYPE objec OCCURS 0 WITH HEADER LINE,
it_result_struc TYPE struc OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'O'
act_objid = '30002330'
act_wegid = 'BOSSONLY'
ACT_INT_FLAG =
act_plvar = '01'
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 = it_result_tab
result_objec = it_result_objec
result_struc = it_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.
The internal tables it_result_tab, it_result_objec and it_result_struc contain the chief position information.
Regards,
Velangini Kumar Bandanadham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
CALL FUNCTION 'HRCM_ORGUNIT_MANAGER_GET'
EXPORTING
plvar = lv_plvar '01
otype = gc_otype_o "O
objid = ip_orgeh "org uni number you want the chief for
begda = ip_bedga "start date
endda = ip_endda "end date
path_id = gc_evpath_bossonly "BOSSONLY
TABLES
manager_info_table = ip_org_chief
EXCEPTIONS
path_error = 1
root_error = 2
nothing_found = 3
OTHERS = 4.
Go to Tcode PPSS
and give the evaluation path BOSSONLY and execute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.