Hi Experts,
I have a requirement to get the value of the appraisal ID that is being passed in se19 BADI HRHAP00_SMARTFORMS02 using HRHAP_DOCUMENT_GET_LIST.
I have found this one, but i Dont know where or how did he get the APPRAISAL_ID_REC.
http://scn.sap.com/docs/DOC-48669
Here is my code.
lw_document_id is the input for appraisal ID. Now, in my smartform how can i Get the value of lw_document_id ?
CALL FUNCTION 'HRHAP_DOCUMENT_GET_DETAIL'
EXPORTING
mode = l_mode
plan_version = plan_version
s_appraisal_id = lw_document_id
IMPORTING
s_doc_processing = ls_doc_processing
s_header_texts = ls_header_texts
t_header_appraiser = lt_header_appraiser
t_header_appraisee = lt_header_appraisee
t_header_part_appraiser = lt_header_part_appraiser
t_header_others = lt_header_others
s_header_status = ls_header_status
s_header_dates = ls_header_dates
t_header_add_data = lt_header_add_data
s_header_display = ls_header_display
t_body_columns = lt_body_columns
t_body_elements = lt_body_elements
t_body_element_descr = lt_body_element_descr
t_body_cells = lt_body_cells
t_body_cell_notes = lt_body_cell_notes
t_status_notes = lt_status_notes.