on 02-10-2016 12:02 PM
Hi Experts ,
I need to make the standard assignment block 'Timstamp' non editable .
Component 'BTDates and View 'BTDATES/DatesOV ' .
Regards,
Shivangi
Hi Shivi,
use this piece of code in set_view_group_context.
METHOD set_view_group_context.
IF iv_first_time EQ abap_true AND
me->view_group_context IS NOT BOUND.
IF iv_parent_context IS INITIAL.
CREATE OBJECT me->view_group_context
TYPE cl_bsp_wd_view_group_context.
ELSE.
me->view_group_context = iv_parent_context.
ENDIF.
ENDIF.
ENDMETHOD.
and
you can use it in do_prepare_output
DATA: lr_entity TYPE REF TO cl_crm_bol_entity.
lr_entity ?= me->typed_cntext>node->collection_wrapper->get_
current( ).
CHECK lr_entity IS BOUND.
CHECK lr_entity->is_change_allowed( ) = abap_true.
lr_entity->lock( ).
IF lr_entity->is_locked( ) = abap_false.
me->view_group_context->reset( ).
ELSE.
me->view_group_context->set_all_display_only( ).
ENDIF.
ENDMETHOD.
Regards,
S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
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.