Fonction SAP BAPI_ABSENCE_SIMULATECREATION - Simulation: Create absence

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ABSENCEHOURS BAPIP2001-STDAZ P 4 X Absence hours
ABSENCETYPE BAPIP2001-AWART C 4 Attendance or absence type
EMPLOYEENUMBER BAPIP2001-PERNR N 8 Personnel number
END BAPIP2001-ENDUZ T 6 X End time
START BAPIP2001-BEGUZ T 6 X Start time
VALIDITYBEGIN BAPIP2001-BEGDA D 8 Valid from date
VALIDITYEND BAPIP2001-ENDDA D 8 Valid to date

Paramètre Reférence Type Long. Description
EMPLOYEENUMBER BAPIP2001-PERNR N 8 Personnel number
LOCKINDICATOR BAPIP2001-SPRPS C 1 Lock indicator for HR master record
OBJECTID BAPIP2001-OBJPS C 2 Object identification
RECORDNUMBER BAPIP2001-SEQNR N 3 Number of Infotype Record
RETURN BAPIRETURN1 u 470 Structure for return code
SUBTYPE BAPIP2001-SUBTY C 4
VALIDITYBEGIN BAPIP2001-BEGDA D 8 Valid from date
VALIDITYEND BAPIP2001-ENDDA D 8 Valid to date

Functionality
Using this method, the process of creating an Absences infotyperecord (2001) can be simulated.
All required consistency checks are carried out; the record is notwritten to the database, however.

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.

Description
For information on the meaning of the personnel number, please see thecorresponding data element documentation: Personnelnumber.

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

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 an infotype record withthe same key, please see the relevant data element documentation:Number of infotype record with same key.

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 subtype, please see the relevantdata element documentation: Subtype.

    Description
    This parameter specifies the valid from date of the infotype record.

    Description
    For information on the meaning of the absence hours, please see therelevant data 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 absence or attendance type,please see the corresponding data element documentation:Absence or attendance type.

    Description
    For information on the meaning of the personnel number, please see thecorresponding data element documentation: Personnelnumber.

    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
    If an entry is made in the ABSENCEHOURS parameter, the START and ENDparameters are filled automatically based on the Customizing settingsfor Time Management.

    Description
    This parameter specifies the valid from date of the infotype record.