on 05-19-2010 11:32 PM
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
Not working on it anymore...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can anyone pls help?
I figured its got to do with custom controller.
Very similar code works in another view BP_HEAD/CorpDetails EF but not in BP_HEAD/AccountDetails.
Thanks,
JD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Arun,
When trying to create a new BP, the code needs the value of lv_excl_group to be passed to
CALL METHOD cl_crm_uiu_bp_cust_get=>get_val_for_stage
for fetching lt_ddlb.
Sorry for the confusion.
IF lr_window->gv_account_was_saved IS INITIAL
OR ( gr_ddlb_rltitl_note IS NOT BOUND
AND NOT lr_window->gv_account_was_saved IS INITIAL ).
* indication of following navigational steps, which need
* to be handled separately:
* create Account -> enter stage -> back to OV -> edit page
IF gr_ddlb_rltitl_note IS NOT BOUND
AND NOT lr_window->gv_account_was_saved IS INITIAL.
IF lv_excl_group IS INITIAL
AND NOT lv_stage IS INITIAL.
lv_xall_stages = 'X'. "#EC NOTEXT
ENDIF.
ENDIF.
CREATE OBJECT gr_ddlb_rltitl
EXPORTING
iv_source_type = 'T'.
CALL METHOD cl_crm_uiu_bp_cust_get=>get_val_for_stage
EXPORTING
iv_stage = lv_stage
iv_exclusion_group = lv_excl_group
iv_xall_stages = lv_xall_stages
iv_actvt = cl_crm_bupa_filter_bprole=>gc_actvt_create
RECEIVING
rt_value = lt_ddlb.
* insert initial line as long no stage is maintained
IF ls_attributes-partnerrole IS INITIAL
OR NOT lv_xall_stages IS INITIAL.
APPEND INITIAL LINE TO lt_ddlb.
ENDIF.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.