SAP Function SRM_DOCUMENT_DELETE - SRM: Set Document Attributes

Parameter Reference Type Length Default Optional Text
DOCUMENTCLASS BAPISRMDOC-DOCCLASS C 10 Location of Document
DOC_CONTEXT BAPIDOCCONTEXT u 64 X Access Context: RMS ID and SPS ID
DO_COMMIT BAPISRMDOC-BOOLEAN C 1 X 'X': Commit after Changing Attribute
OBJECTID BAPISRMDOC-GUID C 32 Internal Document ID
VERSION BAPISRMDOC-VERSION I 4 0 X Physical Version Number
WHOLE_DOCUMENT BAPISRMDOC-BOOLEAN C 1 'X': All Versions; ' ': Only Specified Version

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548 Return Parameter

Exception Text
DOC_NOT_FOUND Document Not Found
INTERNAL_ERROR Internal Error
NOT_AUTHORIZED No Authorization
PARAMETER_ERROR Parameter error
YET_LOCKED Document locked by other user

Functionality
Deletes a logical version by specifying thecorresponding physical version,or deletes the entire document