Tuesday, March 11, 2014
Use function module HRHAP_TEMPLATE_OF_DOCUMENT_GET to get the Template ID for the given appraisal document Id.

Method 1.

    call function 'HRHAP_TEMPLATE_OF_DOCUMENT_GET'
      exporting
        plan_version = plvar
        appraisal_id = ls_appraisal_id-appraisal_id
      importing
        template_id  = lv_template_id
      exceptions
        not_found    = 1.

Method 2.

If you have T_BODY_ELEMENTS internal table, first record of the table is Template ID.
READ TABLE t_body_elements INTO s_body_elements INDEX 1. 
IF sy-subrc EQ 0. 
 lv_template_id = s_body_elements-element_id.
ENDIF.

0 comments:

Post a Comment

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.