Page tree
Skip to end of metadata
Go to start of metadata

Find out which "Input Template" values are available while creating "Simulation" or "Snapshot"-Version for "Global" or "Local" Versions.

 
Customizing

You define the possible forms that version numbers can take in Project Management in customizing in "Project Management > Structure > Define Permitted Version Numbers". If you create snapshots or simulations, the name must correspond to one of the input templates you define here.

This is the meaning of the available settings in this customizing activity:

Flag "To Be Archived"

  • If you set the indicator, the system checks when you archive projects whether project versions exist for these projects. If versions do exist and if the version names match the current input template, the system also archives the project versions.
  • If you do not set this indicator, you can delete the project versions for this version; when you delete projects, the project versions that belong to them are also deleted without being archived.

Dropdown field "Usage for Version"

  • Global versions can only be managed by users that have the appropriate authorization for the CPRO_VSHDR authorization object. This authorization object enables you to specify the exact usage of versions throughout your enterprise.
  • Local versions can be created by any project administrator and can be used for your own evaluation purposes.

 

Below you can find some breakpoints which can be used to start the analyze when Project Version Administration is called:


Load all Version Input Templates which are defined in customizing from table cgpl_vrsn_def:

CL_CGPL_VERS_HDR_PERSISTENCY
LOAD_VRSN_HDR_DEF

 

Depending on the selection of the version type "Simulation" or "Snapshot" the available mask-datas are loaded:

CL_DPR_UI_LOG_VRSN_HDR
GET_MASK_IDS
CALL METHOD cl_dpr_api_services=>vrsn_hdr_get_masks
    ...

 

CL_DPR_API_SERVICES
VRSN_HDR_GET_MASKS
/Get Version header mask definitions
  lt_version_header_def = lr_version_header_defs->get_vrsn_hdr_defs_by_usage(
                            iv_version_type  = lv_version_type
                            iv_version_usage = lv_version_usage ).

 

Depending on the version-type (SIM or SNP) and on the version-usage (1-Global or 2-Local) the Input Templates are selected:

CL_CGPL_VERSION_HEADER_DEFS
GET_VRSN_HDR_DEFS_BY_USAGE
LOOP AT mt_header INTO ls_header.
    IF iv_version_type  = ls_header-ref->ms_attributes-version_type AND
       iv_version_usage = ls_header-ref->ms_attributes-version_usage.
      IF iv_without_system_defs = cgplc_con_yes.
        CHECK ls_header-version NP '0*'.
      ENDIF.
      APPEND ls_header-ref TO rt_version_header_def.
    ENDIF.
  ENDLOOP. 

 

 

Back

 

  • No labels