cancel
Showing results for 
Search instead for 
Did you mean: 

appraisal doc for emplyees direct

Former Member
0 Kudos

Hi Friends can any body pls share any sample report for creating Appraisail doc for given

pernr ( employee number ) or personel area or personel subarea?

it shd not go via Org unit iinstead something whihc give direct realtion for employee and appraisal doc

Need your help regarding this pls

any information will be useful for me and will be rewareded .

Thanks

Meeta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Meeta,

Have mailed you the sample code . Let me know if you need any further help .

Regards,

Binoj

Former Member
0 Kudos

Hi Binoj,

Could you send me the code , for same actually its urgent client needed today only.

Regards:

Ranjan

Answers (8)

Answers (8)

Former Member
0 Kudos

ok

Former Member
0 Kudos

Hi Meeta,

You can use the relationship A002 ( from position to position ) to find the appraiser from appraisee.

Regards

Binoj

Former Member
0 Kudos

Hi Binoj-

Txs for helping me One thing i found in provided sample code the appraiser employee also coming via

file as input only but in my requirment i will get only appraisee and i need the code which search for its appraiser up to top level in org unit that's the only part left if you could pls guide me on this too my problem will resolve.

Regards

Meeta Nair

Former Member
0 Kudos

Hi Binoj-

Pls send me code for this include also INCLUDE zpcnstiprep_top which is there in your sample code,

Sure will let u know after this if i face any problem.

you are basically technical or functional ?

Regards

Meeta Nair

Former Member
0 Kudos

Hi Binoj-

Thanks for your big help but on my screen only appraisee will be there my prog has to find its appraiser and then pass in this FM how can i do that is there any FM which can help doing this ?

also could you pls provide little more detail code as this FM is little tricky to fill am not getting like its so many othere parameters how to fill ? you can send here Other wise ( smeetanair at msn com )

Points i have already rewared and will provide fully once this issue will close pls ,

CALL FUNCTION 'HRHAP_TEMPLATE_GET_DETAIL'

EXPORTING

plan_version = c_01

template_id = p_appid

IMPORTING

s_appraisal_id = GV_APP_ID

s_header_texts = gwa_s_header_texts

s_header_status = gwa_s_header_status

t_header_add_data = gt_t_header_add_data

s_header_display = gwa_s_header_display

t_buttons = gt_t_buttons

t_body_columns = gt_t_body_columns

t_body_elements = gt_t_body_elements

t_body_element_descr = gt_t_body_element_descr

t_body_element_buttons = gt_t_body_element_buttons

t_body_cells = gt_t_body_cells

t_body_cell_val_values = gt_t_body_cell_val_values

t_body_cell_val_ranges = gt_t_body_cell_val_ranges

t_body_cell_val_c_like = gt_t_body_cell_val_c_like

t_body_cell_val_descr = gt_t_body_cell_val_descr

t_body_cell_notes = gt_t_body_cell_notes

Regards

Meeta Nair

Former Member
0 Kudos

hello ,

Check the sample code below

p_appid = template id

  • Append data of appraiser

REFRESH gt_t_header_appraiser.

gwa_s_header_appraiser-plan_version = c_01.

gwa_s_header_appraiser-type = c_p.

gwa_s_header_appraiser-id = appraiserid

APPEND gwa_s_header_appraiser TO gt_t_header_appraiser.

CLEAR gwa_s_header_appraiser.

  • Append data of appraisee

REFRESH gt_t_header_appraisee.

gwa_s_header_appraisee-plan_version = c_01.

gwa_s_header_appraisee-type = c_p.

gwa_s_header_appraisee-id = appraiseeid

APPEND gwa_s_header_appraisee TO gt_t_header_appraisee.

CLEAR gwa_s_header_appraisee.

  • Dates

gwa_s_header_dates-ap_start_date = begindate.

gwa_s_header_dates-ap_end_date = enddate.

  • Get the details of the Appraisal Template

CALL FUNCTION 'HRHAP_TEMPLATE_GET_DETAIL'

EXPORTING

plan_version = c_01

template_id = p_appid

IMPORTING

s_appraisal_id = GV_APP_ID

s_header_texts = gwa_s_header_texts

s_header_status = gwa_s_header_status

t_header_add_data = gt_t_header_add_data

s_header_display = gwa_s_header_display

t_buttons = gt_t_buttons

t_body_columns = gt_t_body_columns

t_body_elements = gt_t_body_elements

t_body_element_descr = gt_t_body_element_descr

t_body_element_buttons = gt_t_body_element_buttons

t_body_cells = gt_t_body_cells

t_body_cell_val_values = gt_t_body_cell_val_values

t_body_cell_val_ranges = gt_t_body_cell_val_ranges

t_body_cell_val_c_like = gt_t_body_cell_val_c_like

t_body_cell_val_descr = gt_t_body_cell_val_descr

t_body_cell_notes = gt_t_body_cell_notes

s_return = gwa_s_return

CHANGING

s_doc_processing = gwa_s_doc_processing

t_header_appraiser = gt_t_header_appraiser

t_header_appraisee = gt_t_header_appraisee

t_header_part_appraisers = gt_t_header_part_appraisers

t_header_others = gt_t_header_others

s_header_dates = gwa_s_header_dates.

  • To Create new appraisal document

  • use HRHAP_DOCUMENT_CREATE or HRHAP_DOCUMENT_SAVE

CALL FUNCTION 'HRHAP_DOCUMENT_SAVE'

EXPORTING

plan_version = c_01

t_header_appraiser = gt_t_header_appraiser

t_header_appraisee = gt_t_header_appraisee

t_header_others = gt_t_header_others

s_header_texts = gwa_s_header_texts

s_header_dates = gwa_s_header_dates

s_header_status = gwa_s_header_status

s_header_display = gwa_s_header_display

t_body_columns = gt_t_body_columns

t_body_elements = gt_t_body_elements

t_body_cells = gt_t_body_cells

vtask = c_d

IMPORTING

s_return = gwa_s_return

CHANGING

s_appraisal_id = gwa_s_appraisal_id

s_doc_processing = gwa_s_doc_processing

t_header_part_appraisers = gt_t_header_part_appraisers

t_body_cell_notes = gt_t_body_cell_notes

t_status_notes = gt_t_status_notes.

Regards ,

Binoj

Former Member
0 Kudos

Hi Txs for your help,

But could you pls share any sample report using these FM which can help me to start,

Regards

Meeta

Former Member
0 Kudos

Hi,

You can use the function module HRHAP_TEMPLATE_GET_DETAIL to get template details using template id and appraisee id and then you can use function module HRHAP_DOCUMENT_CREATE for creating a document.