SAP BAPI_APPRAISAL_MODEL_GETDETAIL Function Module for Read appraisal model









BAPI_APPRAISAL_MODEL_GETDETAIL is a standard bapi appraisal model getdetail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read appraisal model processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for bapi appraisal model getdetail FM, simply by entering the name BAPI_APPRAISAL_MODEL_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: RH_APPRAISAL_MODEL_BAPI
Program Name: SAPLRH_APPRAISAL_MODEL_BAPI
Main Program:
Appliation area: H
Release date: 09-Aug-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_APPRAISAL_MODEL_GETDETAIL pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'BAPI_APPRAISAL_MODEL_GETDETAIL'"Read appraisal model
EXPORTING
PLAN_VERSION = "Plan version
APPRAISAL_MODEL_ID = "Appraisal model ID
* KEY_DATE = SY-DATUM "Key date

IMPORTING
NAME = "Name of appraisal model
RETURN = "Return
FORM_ID = "Appraisal form ID
FORM_TEXT = "Name of form of appraisal
KIND_ID = "Appraisal type ID
KIND_TEXT = "Name of appraisal type
APPRAISERS_ROLE = "Appraisers
APPRAISEES_ROLE = "Appraisees
START_DATE = "Start date
END_DATE = "End date

TABLES
* ALLOWED_APPRAISER_TYPES = "Possible appraisers
* ALLOWED_APPRAISEE_TYPES = "Possible appraisees
* APPRAISAL_DATA = "BAPI Structure: Appraisal (Rating)
.



IMPORTING Parameters details for BAPI_APPRAISAL_MODEL_GETDETAIL

PLAN_VERSION - Plan version

Data type: BAPIAPMHEAD-PLAN_VERSION
Optional: No
Call by Reference: No ( called with pass by value option)

APPRAISAL_MODEL_ID - Appraisal model ID

Data type: BAPIAPMHEAD-ID
Optional: No
Call by Reference: No ( called with pass by value option)

KEY_DATE - Key date

Data type: BAPIEVALUATION-KEY_DATE
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_APPRAISAL_MODEL_GETDETAIL

NAME - Name of appraisal model

Data type: BAPIAPMHEAD-NAME
Optional: No
Call by Reference: No ( called with pass by value option)

RETURN - Return

Data type: BAPIRETURN1
Optional: No
Call by Reference: No ( called with pass by value option)

FORM_ID - Appraisal form ID

Data type: BAPIAPMHEAD-FORM_ID
Optional: No
Call by Reference: No ( called with pass by value option)

FORM_TEXT - Name of form of appraisal

Data type: BAPIAPMHEAD-FORM_TEXT
Optional: No
Call by Reference: No ( called with pass by value option)

KIND_ID - Appraisal type ID

Data type: BAPIAPMHEAD-KIND_ID
Optional: No
Call by Reference: No ( called with pass by value option)

KIND_TEXT - Name of appraisal type

Data type: BAPIAPMHEAD-KIND_TEXT
Optional: No
Call by Reference: No ( called with pass by value option)

APPRAISERS_ROLE - Appraisers

Data type: BAPIAPMHEAD-APPRAISER_ROLE
Optional: No
Call by Reference: No ( called with pass by value option)

APPRAISEES_ROLE - Appraisees

Data type: BAPIAPMHEAD-APPRAISEE_ROLE
Optional: No
Call by Reference: No ( called with pass by value option)

START_DATE - Start date

Data type: BAPIAPMHEAD-START_DATE
Optional: No
Call by Reference: No ( called with pass by value option)

END_DATE - End date

Data type: BAPIAPMHEAD-END_DATE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_APPRAISAL_MODEL_GETDETAIL

ALLOWED_APPRAISER_TYPES - Possible appraisers

Data type: HROTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALLOWED_APPRAISEE_TYPES - Possible appraisees

Data type: HROTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

APPRAISAL_DATA - BAPI Structure: Appraisal (Rating)

Data type: BAPIAPPDATA
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_APPRAISAL_MODEL_GETDETAIL Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_name  TYPE BAPIAPMHEAD-NAME, "   
lv_plan_version  TYPE BAPIAPMHEAD-PLAN_VERSION, "   
lt_allowed_appraiser_types  TYPE STANDARD TABLE OF HROTYPE, "   
lv_return  TYPE BAPIRETURN1, "   
lv_form_id  TYPE BAPIAPMHEAD-FORM_ID, "   
lv_appraisal_model_id  TYPE BAPIAPMHEAD-ID, "   
lt_allowed_appraisee_types  TYPE STANDARD TABLE OF HROTYPE, "   
lv_key_date  TYPE BAPIEVALUATION-KEY_DATE, "   SY-DATUM
lv_form_text  TYPE BAPIAPMHEAD-FORM_TEXT, "   
lt_appraisal_data  TYPE STANDARD TABLE OF BAPIAPPDATA, "   
lv_kind_id  TYPE BAPIAPMHEAD-KIND_ID, "   
lv_kind_text  TYPE BAPIAPMHEAD-KIND_TEXT, "   
lv_appraisers_role  TYPE BAPIAPMHEAD-APPRAISER_ROLE, "   
lv_appraisees_role  TYPE BAPIAPMHEAD-APPRAISEE_ROLE, "   
lv_start_date  TYPE BAPIAPMHEAD-START_DATE, "   
lv_end_date  TYPE BAPIAPMHEAD-END_DATE. "   

  CALL FUNCTION 'BAPI_APPRAISAL_MODEL_GETDETAIL'  "Read appraisal model
    EXPORTING
         PLAN_VERSION = lv_plan_version
         APPRAISAL_MODEL_ID = lv_appraisal_model_id
         KEY_DATE = lv_key_date
    IMPORTING
         NAME = lv_name
         RETURN = lv_return
         FORM_ID = lv_form_id
         FORM_TEXT = lv_form_text
         KIND_ID = lv_kind_id
         KIND_TEXT = lv_kind_text
         APPRAISERS_ROLE = lv_appraisers_role
         APPRAISEES_ROLE = lv_appraisees_role
         START_DATE = lv_start_date
         END_DATE = lv_end_date
    TABLES
         ALLOWED_APPRAISER_TYPES = lt_allowed_appraiser_types
         ALLOWED_APPRAISEE_TYPES = lt_allowed_appraisee_types
         APPRAISAL_DATA = lt_appraisal_data
. " BAPI_APPRAISAL_MODEL_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_APPRAISAL_MODEL_GETDETAIL

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single NAME FROM BAPIAPMHEAD INTO @DATA(ld_name).
 
"SELECT single PLAN_VERSION FROM BAPIAPMHEAD INTO @DATA(ld_plan_version).
 
 
 
"SELECT single FORM_ID FROM BAPIAPMHEAD INTO @DATA(ld_form_id).
 
"SELECT single ID FROM BAPIAPMHEAD INTO @DATA(ld_appraisal_model_id).
 
 
"SELECT single KEY_DATE FROM BAPIEVALUATION INTO @DATA(ld_key_date).
DATA(ld_key_date) = SY-DATUM.
 
"SELECT single FORM_TEXT FROM BAPIAPMHEAD INTO @DATA(ld_form_text).
 
 
"SELECT single KIND_ID FROM BAPIAPMHEAD INTO @DATA(ld_kind_id).
 
"SELECT single KIND_TEXT FROM BAPIAPMHEAD INTO @DATA(ld_kind_text).
 
"SELECT single APPRAISER_ROLE FROM BAPIAPMHEAD INTO @DATA(ld_appraisers_role).
 
"SELECT single APPRAISEE_ROLE FROM BAPIAPMHEAD INTO @DATA(ld_appraisees_role).
 
"SELECT single START_DATE FROM BAPIAPMHEAD INTO @DATA(ld_start_date).
 
"SELECT single END_DATE FROM BAPIAPMHEAD INTO @DATA(ld_end_date).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!