Fonction SAP BAPI_STUDENT_ENQUEUE - Method: Lock Student

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
OBJECTID BAPISTUDENTOBJ-OBJID N 8 Object ID
PLANVERSION BAPISTUDENTOBJ-PLVAR C 2 X Plan Version

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return Messages

Description
This method is used to lock the student.

Hints
The following parameters are mandatory:

  • Import parameter OBJECTID

  • To lock the student, you must transfer the object ID of the student.
    • Export parameter RETURN

    • The return messages of the method are returned in the export parameterRETURN.
      For more information, read the parameter and data element

      Description
      INCLUDE BAPI_KEYFIELD
      For more information, see object ID.

      Description
      INCLUDE BAPI_KEYFIELD

      Description
      This table contains the return messages from the method call.

      Range
      TYPE,,ID,,Number,,Message
      E ,,5A ,,053,,No allowed object type found
      E ,,5W ,,300,,No active plan version exists
      E ,,MC ,,600,,System error occurred during lock management
      E ,,MC ,,601,,Object requested is currently
      ,,,,,, locked by user &
      E ,,MC ,,602,,The requested object is locked
      ,,,,,, by another transaction
      E ,,MC ,,603,,Lock table overflow
      E ,,HRPIQ000,,003,,Maintain an active plan version
      E ,,HRPIQ000,,032,,Object & & & was not found
      E ,,HRPIQ000,,380,,Object is not in PLOG format
      ,,,,,, (object ID NUMC 8)
      S ,,HRPIQ000,,378,,Object & & & was locked