Skip to Content
0
Former Member
May 19, 2010 at 10:32 PM

Lifecycle Picklist values not showing up

29 Views

Hello,

We are on CRM 7.0. Lifecycle stages ( BP Role Exclusion group values ) are not being displayed in the picklist.

Method : GETV_PARTNERROLE in BP_HEAD/Lifecycle view_

 IF ls_attributes-partnerrole IS INITIAL.
    TRY.
        lr_cuco ?= owner->get_custom_controller( 'BP_HEAD/Lifecycle' ).
      CATCH cx_root.
        RETURN.
    ENDTRY.

    lr_current ?= lr_cuco->typed_context->lifecycle->collection_wrapper->get_current( ).

IF lr_current IS BOUND.
lv_excl_group_ui = lr_current->get_property_as_string( iv_attr_name = 'EXCLUSIONGROUP')
      lv_excl_group = lv_excl_group_ui.
      lv_isinitialstage = lr_current->get_property_as_string( iv_attr_name = 'ISINITIALSTAGE' ).
      IF lv_isinitialstage = abap_true.
        lv_stage = lr_current->get_property_as_string( iv_attr_name = 'STAGE' ).

*       note initial stage. If the current stage has been set to INITIAL in DDLB before
*       the account is saved, the DDLB-content needs to be filled for the initial stage and
*       NOT for the current r.-exclusion group
*       -> note only if defaulted stage shall be considered as initial stage
        gv_stage_note = lv_stage.
      ELSEIF NOT gv_stage_note IS INITIAL.
        lv_stage = gv_stage_note.
      ENDIF.
    ENDIF.
  ELSE.
    lv_stage = ls_attributes-partnerrole.
  ENDIF.

In the code above, lr_current is bound but lv_excl_group_ui returns no value. Without this value, the code beyond cannot return any picklist values ( lt_ddlb ).

I have checked the config and indeed the exclusion group has BP roles assigned to it.

How can i fix this issue?

Thanks a lot,

JD