HCM Programming

Get employee ID

DATA(employee_api) = cl_hcmfab_employee_api=>get_instance( ).
DATA(pernr) = employee_api->get_employeenumber_from_user( ). "Scenario, where one user has 1 employment (1 employee ID assigned)
"To retrieve employee IDs for multiple employment
DATA(pernrs) = employee_api->get_assignments( pernr ).
Read More