Ansicht
Dokumentation

SOLMAN_CM_REL_CYCLE - BAdI: Define Release Cycle Description

SOLMAN_CM_REL_CYCLE - BAdI: Define Release Cycle Description

ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Use this Business Add-In (BAdI) AI_CM_RELEASE_CYCLE_DESC to define your own cycle descriptions during release cycle creation and to display the release cycle description in the Gantt chart of the release planning tool.

You need development authorization to perform this activity. As a configuration user, you cannot follow the link to BAdI AI_CM_RELEASE_CYCLE_DESC.

The default description pattern is:

+ “Release” +

For example, if the current release number is 1.3.0, the default cycle description is "My Change Control Landscape Release 1.3".

The following methods are available:

  • CREATE_RELEASE_CYCLE_DESC: used to influence the cycle description during release cycle creation.
    Method parameters:
  • IV_RELEASE_COMPONENT - importing - GUID of change control landscape

  • IV_RELEASE_TYPE - importing - Release Type

  • IV_RELEASE_NUMBER - importing - Release Number

  • IV_CRM_GUID (PITONAL) - importing - GUID of release cycle

  • CV_RELEASE_CYCLE_DESC - changing - Default release cycle description

  • SHOW_CYCLE_DESC_IN_CHART: used to display your release cycle description in the Gantt chart of the release planning tool.
    Method parameters:
  • IV_RELEASE_COMPONENT - importing - GUID of change control landscape

  • IV_RELEASE_TYPE - importing - Release Type

  • IV_RELEASE_NUMBER - importing - Release Number

  • IV_CRM_GUID (PITONAL) - importing - GUID of release cycle

  • RV_RESULT - exporting - By default, this is set to False: The Gantt chart displays the standard + < Release Number Short Form>. If you set it to True, the Gantt chart displays the release cycle description as defined during release cycle creation.

This is the standard delivery of the release cycle description:

  CALL METHOD cl_aic_cm_release_api=>convert_rel_num_from_3_to_2

    EXPORTING

      iv_release_component  = iv_release_component

      iv_release_number     = iv_release_number

    IMPORTING

      ev_release_number     = lv_release_number.

  DATA(lo_slan) = cl_slane_api=>new( )->new_read( ).

  APPEND iv_release_component TO lt_slan_ids.

  lo_slan->read_slan_by_id_bulk(

    EXPORTING

      it_slan_ids           = lt_slan_ids

    IMPORTING

      et_slan_header_set    = DATA(lt_slan_header_set)

  ).

  READ TABLE lt_slan_header_set INTO DATA(ls_slan_header_set) INDEX 1.

  IF sy-subrc = 0.

    CONCATENATE ls_slan_header_set-slan_desc 'Release'(001) lv_release_number

      INTO ev_release_cycle_desc SEPARATED BY space.

  ELSE.

    CONCATENATE 'Release'(001) lv_release_number

      INTO ev_release_cycle_desc SEPARATED BY space.

  ENDIF.






Vendor Master (General Section)   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 5256 Date: 20240523 Time: 161407     sap01-206 ( 45 ms )