Hi,
Try with the below code
wa_appraisee-plvar = '01'.
wa_appraisee-otype = 'P'.
wa_appraisee-sobid = sobid.
APPEND wa_appraisee TO lt_appraisee.
ls_sel_and_or-apper_and_appee = c_true.
ls_sel_with_or_without-sel_display_existing = c_true.
ls_sel_status-ap_status_1 = c_true.
ls_sel_status-ap_status_2 = c_true.
ls_sel_status-ap_status_3 = c_true.
ls_sel_status-ap_status_4 = c_true.
ls_sel_status-ap_status_5 = c_true.
ls_sel_status-ap_status_6 = c_true.
ls_sel_status-ap_status_7 = c_true.
ls_sel_status-ap_status_8 = c_true.
ls_sel_status-ap_status_9 = c_true.
CALL FUNCTION 'HRHAP_DOCUMENT_GET_LIST_XXL'
EXPORTING
add_on_application = ' '
plan_version = '01'
t_templates = lt_templates
t_appraisees = lt_appraisee
s_sel_status = ls_sel_status
s_sel_with_or_without = ls_sel_with_or_without
IMPORTING
t_documents = t_documents
.
Regards,
Jyothi