SAP Function Modules

BAPI_APPRAISAL_CREATE SAP Function module - Create appraisals







BAPI_APPRAISAL_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_APPRAISAL_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RH_APPRAISAL_BAPI
Released Date: 16.06.1999
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_APPRAISAL_CREATE - BAPI APPRAISAL CREATE





CALL FUNCTION 'BAPI_APPRAISAL_CREATE' "Create appraisals
  EXPORTING
    plan_version =              " bapiappraisal-plan_version  Plan version
    appraisal_model_id =        " bapiappmodel-id  Appraisal model ID
    start_date =                " bapiperiodapp-start_date  Validity start date of appraisal
    end_date =                  " bapiperiodapp-end_date  Validity end date of appraisal
*   text =                      " bapiappraisal-text  Name of appraisal model
*   creation_date = SY-DATUM    " bapiapphead-creation_date  Created On
*   anonymous = ' '             " bapiapphead-anonymous  Anonymous
*   nocommit =                  " bapi_stand-no_commit  COMMIT Control at BAPI Interface
*   appraisalstatus = '02'      " bapiapphead-status  Appraisal status
  IMPORTING
    appraisal_id =              " bapiappraisal-id  Individual or overall appraisal ID
    return =                    " bapireturn1   Return
* TABLES
*   appraisers =                " bapiappraiser  Appraisers
*   appraisees =                " bapiappraisee  Appraisees
    .  "  BAPI_APPRAISAL_CREATE

ABAP code example for Function Module BAPI_APPRAISAL_CREATE





The ABAP code below is a full code listing to execute function module BAPI_APPRAISAL_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_appraisal_id  TYPE BAPIAPPRAISAL-ID ,
ld_return  TYPE BAPIRETURN1 ,
it_appraisers  TYPE STANDARD TABLE OF BAPIAPPRAISER,"TABLES PARAM
wa_appraisers  LIKE LINE OF it_appraisers ,
it_appraisees  TYPE STANDARD TABLE OF BAPIAPPRAISEE,"TABLES PARAM
wa_appraisees  LIKE LINE OF it_appraisees .


DATA(ld_plan_version) = some text here

DATA(ld_appraisal_model_id) = Check type of data required

DATA(ld_start_date) = 20210129

DATA(ld_end_date) = 20210129

DATA(ld_text) = some text here

DATA(ld_creation_date) = 20210129

DATA(ld_anonymous) = some text here

DATA(ld_nocommit) = some text here

DATA(ld_appraisalstatus) = Check type of data required

"populate fields of struture and append to itab
append wa_appraisers to it_appraisers.

"populate fields of struture and append to itab
append wa_appraisees to it_appraisees. . CALL FUNCTION 'BAPI_APPRAISAL_CREATE' EXPORTING plan_version = ld_plan_version appraisal_model_id = ld_appraisal_model_id start_date = ld_start_date end_date = ld_end_date * text = ld_text * creation_date = ld_creation_date * anonymous = ld_anonymous * nocommit = ld_nocommit * appraisalstatus = ld_appraisalstatus IMPORTING appraisal_id = ld_appraisal_id return = ld_return * TABLES * appraisers = it_appraisers * appraisees = it_appraisees . " BAPI_APPRAISAL_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_appraisal_id  TYPE BAPIAPPRAISAL-ID ,
ld_plan_version  TYPE BAPIAPPRAISAL-PLAN_VERSION ,
it_appraisers  TYPE STANDARD TABLE OF BAPIAPPRAISER ,
wa_appraisers  LIKE LINE OF it_appraisers,
ld_return  TYPE BAPIRETURN1 ,
ld_appraisal_model_id  TYPE BAPIAPPMODEL-ID ,
it_appraisees  TYPE STANDARD TABLE OF BAPIAPPRAISEE ,
wa_appraisees  LIKE LINE OF it_appraisees,
ld_start_date  TYPE BAPIPERIODAPP-START_DATE ,
ld_end_date  TYPE BAPIPERIODAPP-END_DATE ,
ld_text  TYPE BAPIAPPRAISAL-TEXT ,
ld_creation_date  TYPE BAPIAPPHEAD-CREATION_DATE ,
ld_anonymous  TYPE BAPIAPPHEAD-ANONYMOUS ,
ld_nocommit  TYPE BAPI_STAND-NO_COMMIT ,
ld_appraisalstatus  TYPE BAPIAPPHEAD-STATUS .


ld_plan_version = some text here

"populate fields of struture and append to itab
append wa_appraisers to it_appraisers.

ld_appraisal_model_id = Check type of data required

"populate fields of struture and append to itab
append wa_appraisees to it_appraisees.

ld_start_date = 20210129

ld_end_date = 20210129

ld_text = some text here

ld_creation_date = 20210129

ld_anonymous = some text here

ld_nocommit = some text here

ld_appraisalstatus = Check type of data required

SAP Documentation for FM BAPI_APPRAISAL_CREATE


You can use this method to create appraisals using an appraisal model. At ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_APPRAISAL_CREATE or its description.