Если надо искать все ТН к CP в абапе то вот...
Поиск всех связок P к CP
Code:
call method cl_hrcce_person_info_reader=>get_instance
importing
person_info_reader = lo_person_info_reader.
check lo_person_info_reader is bound.
refresh lt_pernr_text_tab.
call method lo_person_info_reader->read_pernr_text_tab
exporting
pernr = iv_pernr
begda = sy-datum
importing
text_tab = lt_pernr_text_tab.
Все P по конкретному CP
Code:
CALL METHOD if_hrcce_person_info_reader~read_pernr_text_by_personid
EXPORTING
personid = l_personid
begda = begda
no_gap = no_gap
IMPORTING
text_tab = text_tab.