crobvput - Add an Object to a Change Request


This API call adds a single object to an existing change request. An entry is written to the audit trail for both the object and the change request.

Usage:

set ok=$$crobvput^%vcapi(userid,chref,obv,.err)

Inputs:

userid VC/m user ID (derived from host operating system if null)
chref Change request code (must already exist)
obv Object/variant.version of object to be added. If object already belongs to change request, no action will be taken

Outputs:

$$craddobv 1 = Operation succeeded
0 = Operation failed
err Error message if operation failed

Error messages:

vc1010 - Invalid Object xxx/xxx.nnn Object name error
vc1011 - Invalid Object xxx/xxx.nnn Variant name error
vc1012 - Invalid Object xxx/xxx.nnn Version name error
vc1013 - Object xxx/xxx.nnn does not exist
vc1016 - Invalid change request number A null change request code is not permitted
vc1017 - Change request does not exist The change request code supplied does not exist