cancel
Showing results for 
Search instead for 
Did you mean: 

Disable 'Edit' button on Timestamp Assignment block

0 Kudos

Hi Experts ,

I need to make the standard assignment block 'Timstamp' non editable .

Component 'BTDates and View 'BTDATES/DatesOV ' .

Regards,

Shivangi

Accepted Solutions (1)

Accepted Solutions (1)

sumeet_gehlot
Contributor
0 Kudos

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

Answers (0)