Fonction SAP BAPI_MEDDOC_ENQUEUE - IS-H*MED: Lock Document

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOCUMENTNUMBER BAPIMEDDOC_DATA-DOCUMENTNUMBER C 25 Document Number
DOCUMENTPART BAPIMEDDOC_DATA-DOCUMENTPART C 3 Document Part
DOCUMENTTYPE BAPIMEDDOC_DATA-DOCUMENTTYPE C 3 Document Type
DOCUMENTVERSION BAPIMEDDOC_DATA-DOCUMENTVERSION C 2 Document Version

Paramètre Reférence Type Long. Description
WORST_RETURNED_MSGTY BAPINALL-WORSTRETMSG C 1 Most Severe Message Type

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

Functionality
This method locks a medical document for further editing.
A writing lock (exclusive lock) is set. This lock remains until it iscanceled. You can use this to avoid simultaneous access to the documentby other users. Other users will not be able to edit or read it untilyou cancel the lock. A lock is only required if you want to change adocument.
If you use BAPI_MEDDOC_ENQUEUE to set a block, then you must useBAPI_MEDDOC_DEQUEUE after executing your actions to cancel the lock.
When creating a document, you do not need to lock it, since thedocument key is unknown.

Notes
If the document number (DOCUMENTNUMBER) is blank, the system will notterminate the lock and no error message will appear.
INCLUDE NBAPI_WORST_RETURNED_MSGTY
INCLUDE N2BAPI_DOCUMENTNUMBER
INCLUDE N2BAPI_DOCUMENTPART
INCLUDE N2BAPI_DOCUMENTTYPE
INCLUDE N2BAPI_DOCUMENTVERSION

Description
INCLUDE BAPI_RET

Value range
The following error messages can appear:
INCLUDE N2BAPI_RETS_MEDDOC_ENQUEUE