SAP Function SDOK_PHIO_DELETE - Delete a Physical Document

Parameter Reference Type Length Default Optional Text
CLIENT SYST-MANDT C 3 SY-MANDT X Client
OBJECT_ID SDOKOBJECT u 42 BOR Key for the Object

Exception Text
EXCEPTION_IN_EXIT Exception in Application Exit
NOT_ALLOWED Object Cannot Be Deleted
NOT_AUTHORIZED No Authorization
NOT_EXISTING Object Does Not Exist

Functionality
This function module deletes a physical document, along with all itsattributes and relationships.
A document can be deleted only if it is not a partner in a stand-alonerelationship or a relationship that does not belong to the currentdocument.
Also, the document may not be currently checked out or reserved byanother user.