Specifying the Key Version Explicitly
There are special commands that can be used if the version information is not contained in the object key, but you still want to provide this information.
Context
You specify the key version explicitly if the version is known but is not an intrinsic part of the object key.
Procedure
Use one of the following macros to specify the key version explicitly:
-
You can include either <CNTN01> or <CNTN02> and <CNTN03>
-
Or simply use the SWC0 macros from theSWC0 type group.
|
<CNTN01>, <CNTN02> + <CNTN03> |
<CNTN01_ SWC> |
|---|---|
|
swc_create_remote_obj_w_vers |
swc0_create_remote_obj_w_vers |
Results
The object key is converted into the version that is supported in the system where the instance is created. The resulting key is used for instantiation. If the creation process fails, SY-SUBRC is set to 1. Otherwise, the value is 0.