SAP Function SDOK_PHIO_CREATE_NEW_VERSION - Create a New Version of a Physical Document

Parameter Reference Type Length Default Optional Text
CLIENT SYST-MANDT C 3 SY-MANDT X Client
NEW_STOR_CAT_REQ SDOKPHIO-STOR_CAT C 10 X Requested Category for New Version
OBJECT_UNIQUE_ID SDOKPHIO-PHIO_ID C 32 X
OLD_OBJECT_ID SDOKOBJECT u 42 BOR Key of Old Object
X_ENQUEUE SYST-DATAR C 1 X Flag for Locking New Document
X_SUPPRESS_PARTNER_CHECK SYST-DATAR C 1 X (Only for Internal Use)

Parameter Reference Type Length Text
NEW_OBJECT_ID SDOKOBJECT u 42 BOR Key of New Object
NEW_STOR_CAT SDOKPHIO-STOR_CAT C 10 Category for New PHIO

Exception Text
BAD_CLASS Object Class Unknown
CHECKED_OUT Object is Reserved or Has Been Checked Out
DUPLICATE_OBJECT_ID Object already exists
ENQUEUE_FAILURE Locking Error
EXCEPTION_IN_EXIT Exception in Application Exit
INITIAL Object is Initial
NOT_AUTHORIZED No Authorization
NOT_EXISTING Object Does Not Exist

Functionality
This function module creates a new content version of a physicaldocument.
A new content version can be created only if the original document isprotected, and if the original is not currently checked out orreserved.
The new version inherits the document class, attributes, and therelationship to the logical document from the original document. Aversion reference relationship is established between the original andthe new version.
After SDOK_PHIO_CREATE_NEW_VERSION has executed successfully, the newdocument version has the status "initial". As long as the document hasthis status, the content of the original is copied to the front-endcomputer when the new version is checked out or downloaded to the filesystem of the front-end computer.