12-08-2014 2:01 PM
Hi ,
I want to find changed on date for appraisal related Id in HCM how to find that please help.
Regards,
Chaitanya
12-08-2014 2:06 PM
12-11-2014 7:00 AM
You can make use of the below function module. Hope it works. Any queries, kindly do revert back and provide a little more specifications.
CALL FUNCTION 'HRHAP_DOCUMENT_GET_DETAIL' "
EXPORTING
* mode = ' ' " char1 ' '=Display; 'X'=Change
* ui_mode = ' ' " hap_ui_mode User Interface Mode
plan_version = " hap_plan_version Plan Version
s_appraisal_id = " hap_s_appraisal_id Appraisal ID
* administrator = ' ' " hap_administrator Flag: Administrator
* s_display_ui = " hap_s_display_ui 'D' -> Display 'X' -> Change
* no_action_log = ' ' " char1 'X'=Skip Action Log
IMPORTING
s_doc_processing = " hap_s_doc_processing Document: Processing
s_header_texts = " hap_s_header_texts Header - Texts
t_header_appraiser = " hap_t_header_appraiser Header - Appraiser
t_header_appraisee = " hap_t_header_appraisee Header - Appraisee
t_header_part_appraiser = " hap_t_header_part_appraisers Header - Part Appraisers
t_header_others = " hap_t_header_others Header - Others
s_header_status = " hap_s_header_status Header - Status
s_header_dates = " hap_s_header_dates Header - Dates
t_header_add_data = " hap_t_header_add_data Header - Additional Data
s_header_display = " hap_s_header_display Header - Display
t_buttons = " hap_t_buttons Buttons
t_body_columns = " hap_t_body_columns Body - Columns
t_body_elements = " hap_t_body_elements Body - Elements
t_body_element_buttons = " hap_t_body_element_buttons Body - Element Buttons
t_body_element_descr = " hap_t_body_element_descr Body - Element Descriptions
t_body_cells = " hap_t_body_cells Body - Cells
t_body_cell_val_values = " hap_t_body_cell_val_values Body - Cell Value List (Values)
t_body_cell_val_ranges = " hap_t_body_cell_val_ranges OR Body - Cell Value List (Ranges)
t_body_cell_val_c_like = " hap_t_body_cell_val_c_like OR Body - Cell Value List (Character Like)
t_body_cell_val_descr = " hap_t_body_cell_val_descr Body - Cell Value Descriptions
t_body_cell_notes = " hap_t_body_cell_notes Body - Cell Notes
s_return = " bal_s_msg Application Log: Message Data
. " HRHAP_DOCUMENT_GET_DETAIL
12-16-2014 11:48 AM
Hi Chaitanya Duvedi,
Is the solution working?
Regards,
Vinod M S
HR ABAP
12-16-2014 2:20 PM
Hi Chaithnya,
Please find the below code. It works.
DATA :s_doc_processing TYPE hap_s_doc_processing,
t_header_appraiser TYPE hap_t_header_appraiser,
t_header_appraisee TYPE hap_t_header_appraisee,
t_header_part_appraisers TYPE hap_t_header_part_appraisers,
t_header_others TYPE hap_t_header_others,
s_header_texts TYPE hap_s_header_texts,
s_header_dates TYPE hap_s_header_dates,
s_header_status TYPE hap_s_header_status,
s_header_display TYPE hap_s_header_display,
t_body_columns TYPE hap_t_body_columns,
t_body_elements TYPE hap_t_body_elements,
t_body_cells TYPE hap_t_body_cells,
t_body_cell_notes TYPE hap_t_body_cell_notes,
t_status_notes TYPE hap_t_status_note,
it_hrhap_appee2 TYPE hrhap_appee,
s_appraisal_id1 TYPE hap_s_appraisal_id,
s_header_dates1 TYPE hap_s_header_dates.
CALL FUNCTION 'HRHAP_DOCUMENT_GET_DETAIL'
EXPORTING
plan_version = '01'
s_appraisal_id = s_appraisal_id1
IMPORTING
s_doc_processing = s_doc_processing
s_header_texts = s_header_texts
t_header_appraiser = t_header_appraiser
t_header_appraisee = t_header_appraisee
t_header_part_appraiser = t_header_part_appraisers* t_header_others = it_hap_t_header_others* s_header_dates = s_header_dates
s_header_display = s_header_display
t_body_columns = t_body_columns
t_body_elements = t_body_elements
t_body_cells = t_body_cells
t_body_cell_notes = t_body_cell_notes
t_status_notes = t_status_notes.
If you want to change anything then you can use the below function module.
CALL FUNCTION 'HRHAP_DOC_UPDATE_BODY_AND_SAVE'
EXPORTING
plan_version = '01'
CHANGING
s_appraisal_id = s_appraisal_id
s_doc_processing = s_doc_processing
t_header_appraiser = it_hap_t_header_appraiser
t_header_appraisee = it_hap_t_header_appraisee
t_header_part_appraisers = t_header_part_appraisers
t_header_others = it_hap_t_header_others
s_header_texts = s_header_texts
s_header_dates = s_header_dates1
s_header_status = s_header_status
s_header_display = s_header_display
t_body_columns = t_body_columns
t_body_elements = t_body_elements
t_body_cells = t_body_cells
t_body_cell_notes = t_body_cell_notes
t_status_notes = t_status_notes.
Hope it will helps you.
Thanks & Regards,
Sujatha sahu