Fonction SAP BAPI_APPRAISAL_STATUS_CHANGE - Change appraisal status

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
APPRAISAL_ID BAPIAPPRAISAL-ID N 8 Appraisal ID
NOCOMMIT BAPI_STAND-NO_COMMIT C 1 X COMMIT Control at BAPI Interface
PLAN_VERSION BAPIAPPRAISAL-PLAN_VERSION C 2 Plan version
STATUS BAPIAPPRAISAL-STATUS N 2 Status of appraisal

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Return
STATUS_TEXT BAPIAPPRAISAL-STATUS_TEXT C 25 Name of status

Functionality
This method changes the status of an appraisal.
The following status transitions are possible:
From status -> To status
1 In preparation -> 2 In process
2 In process -> 3 Completed
3 Completed -> 2 In process
-> 4 Approved
-> 5 Rejected
5 Rejected -> 2 In process

Example
You would use this method if, for example, you want to complete anappraisal once you have rated the appraisee.

Notes
Authorizations
In order to change the status of appraisals, you require authorizationfor the transaction APPTAKEBACK.
Customizing Dependencies
The control parameters of the AppraisalSystem determine whether the status of Completed (andRejected) appraisals can be changed back to In process.
Related Methods
The methods that can be used for the business objectAppraisal include:

  • Read Appraisals

  • Change Appraisals

  • INCLUDE BAPI_RET

    Further information
    For more information on appraisals, refer to the R/3 Library (HumanResources -> Personnel Management -> Personnel Development -> AppraisalSystems -> Appraisal Creation).

    Description
    INCLUDE BAPI_TABLE

    Value range
    Type ID Number Message
    S PQ 600 Successfully completed
    S PQ 603 You do not have authorization to do this
    S PQ 612 Other error
    S PQ 624 No data found for entries made
    S PQ 625 An unexpected error occurred
    S PQ 627 Unable to find an appraisal on the basis of the dataspecified
    S PQ 638 Appraisal data was not saved
    S PQ 639 Enter data in all required entry fields
    S PQ 640 Not all subappraisals have been completed yet
    S PQ 641 Error when completing appraisal
    S PQ 643 Status of appraisal is not 'In process'
    S PQ 644 Status of appraisal is not 'Completed'
    S PQ 645 Status of appraisal is not 'Approved'

    Description
    For information on what this parameter does, refer to the followingdata element documentation:
    Appraisal status text

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    For information on what this parameter does, refer to the followingdata element documentation:
    Appraisal status