Fonction SAP BAPI_ABSENCE_CHANGE - Change absence

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ABSENCEHOURS BAPIP2001-STDAZ P 4 X Absence hours
EMPLOYEENUMBER BAPIP2001-PERNR N 8 Personnel number
END BAPIP2001-ENDUZ T 6 X End time
LOCKINDICATOR BAPIP2001-SPRPS C 1 Lock indicator for HR master record
NOCOMMIT BAPI_STAND-NO_COMMIT C 1 X COMMIT Control at BAPI Interface
OBJECTID BAPIP2001-OBJPS C 2 Object identification
RECORDNUMBER BAPIP2001-SEQNR N 3 Number of Infotype Record
START BAPIP2001-BEGUZ T 6 X Start time
SUBTYPE BAPIP2001-SUBTY C 4 Subtype
VALIDITYBEGIN BAPIP2001-BEGDA D 8 Valid from date
VALIDITYEND BAPIP2001-ENDDA D 8 Valid to date

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Structure for return code


Caution! This API method only changes the Absences infotype (2001). Itshould no longer be used as it can lead to inconsistent time data.
Instead, please use the corresponding 'ManageChange' API method forbusiness object BUS7007.

Functionality
Using this method, an Absences infotype record (2001) can bechanged.

Notes
Messages are returned in the RETURN parameter. The parameterdocumentation contains the return codes and their meanings.
The key fields used by this method are described under the parameters.
This method can only be used if the ENQUEUE method has already beencalled up for the business object EMPLOYEE. For more informationon the ENQUEUE method, please see the documentation on the functionmodule BAPI_EMPLOYEE_ENQUEUE.

Description
Return code of method

Value range
If there is an error, the structure may contain the followinginformation:

  • Message type (field TYPE)

  • Message code (field CODE)

  • Message text (field MESSAGE)

  • If there are no errors, the field string is initial.

    Description
    For information on the meaning of the absence hours, please see thedata element documentation: Absence hours.

    Note
    If an entry is made in the ABSENCEHOURS parameter, the START and ENDparameters are filled automatically based on the Customizing settingsfor Time Management.

    Description
    For information on the meaning of the personnel number, please see thedata element documentation: Personnel number.

    Description
    If an entry is made in the ABSENCEHOURS parameter, the START and ENDparameters are filled automatically based on the Customizing settingsfor Time Management.

    Description
    For information on the meaning of the lock indicator for the HR masterrecord, please see the data element documentation: Lockindicator for HR master record.

    Description
    For information on the meaning of the COMMIT control, please see thecorresponding data element documentation: COMMITcontrol in BAPI interface.

    Description
    For information on the meaning of the object ID, please see thecorresponding data element documentation: Objectidentification.

    Description
    For information on the meaning of the number of the infotype recordwith the same key, see the data element documentation:Number of infotype record with same key.

    Description
    If an entry is made in the ABSENCEHOURS parameter, the START and ENDparameters are filled automatically based on the Customizing settingsfor Time Management.

    Description
    For information on the meaning of the subtype, please see thecorresponding data element documentation: Subtype.