2024 Aug 07 2:38 AM - edited 2024 Aug 07 2:50 AM
Hello Experts,
The things done so far, in an Unmanaged RAP application with draft
In Behavior Implementation, defined update action with features: instance
update ( features: instance );
delete ( features: instance );
In get_instance_features method I disable the update and delete actions when variable lv_import_id is filled and vice versa
Only the Delete buttion is getting disabled (greyed out) but not Edit button when variable lv_import_id is filled with the below code
Can you give me a hint, what might be the issue? Please let me know if you need any more information
LOOP AT keys INTO DATA(key).
APPEND VALUE #(
%tky = key-%tky
%update = COND #( WHEN lv_import_id IS NOT INITIAL
THEN if_abap_behv=>fc-o-disabled
ELSE if_abap_behv=>fc-o-enabled )
%delete = COND #( WHEN lv_import_id IS NOT INITIAL
THEN if_abap_behv=>fc-o-disabled
ELSE if_abap_behv=>fc-o-enabled )
) TO result.
ENDLOOP.
draft action ( features : instance ) Edit;
LOOP AT keys INTO DATA(key).
APPEND VALUE #(
%tky = key-%tky
%action-edit = if_abap_behv=>fc-o-disabled
) TO result.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
10 | |
10 | |
10 | |
8 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.