HR ABAP - Get Employees List Working Under An Organization Unit.
report ztests.
parameters:p_objid type orgeh .
data: pernr_table type HRPERNR occurs 0 with header line .
CALL FUNCTION 'HRCM_ORGSTRC_EMPLOYEE_LIST_GET'
EXPORTING
plvar = '01'
root_otype = 'O'
root_objid = p_objid
begda = '18000101'
endda = '99991231'
TABLES
pernr_table = pernr_table
EXCEPTIONS
NO_ORGSTRUC_FOUND = 1
NO_EMPLOYEES_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 pernr_table.
write:/ pernr_table-PERNR.
endloop.
3 comments:
SAP HR Training Course in Gurgaon
SAP HR Course in Delhi
Best SAP HR training institute in Delhi, APTRON focuses mainly on the best quality training in SAP HR. Our goal is to deliver the students with Quality EAPTRONion and real-time projects. We offer specialized skill-based practical programs in SAP HR course in Delhi. Our SAP HR course is designed for MBA students, working professionals and entrepreneurs to learn and implement the concepts in the real world scenarios.
https://bresdel.com/blogs/184750/Best-Offer-of-SAP-HR-Training-And-Certification-In-Delhi
SAP HR Course in Noida
https://medium.com/@erptrainingnoida/sap-hr-training-institute-in-noida-dae06c5b9773
Post a Comment