Skip to Content
0
P D
Apr 27, 2022 at 11:06 AM

How to remove edit button from Object Page ( Developed using Fiori Elements and RAP )

858 Views

Hello Experts,

I have developed a Fiori App( List Report - Object Page ) using Fiori Elements and ABAP RAP Programming. I do not want the user to edit or delete any of the created instances.

managed implementation in class zbp_c_etn_entered_info unique;
strict;

define behavior for ZC_ETN_ENTERED_INFO alias etn_info
persistent table ztsdb
lock master
early numbering
authorization master ( instance )
//etag master <field_name>
{

   field ( readonly ) Counter, Status , StatusDescription, ProjectJira , Ticket, TicketText,
                      WorkLogID  , UnitOb , UnitConsulting , UnitAdditionalCosts ;
   field ( mandatory : create  )  WorkDate , ConsultingDocument , MessageText ;


  create;
  update;
  // delete;

<br>

I was able to remove the 'Delete' button just by commenting

image.png

But I cannot remove the update button since I have determinations with Modify Entity with Update fields .

Ex.

 MODIFY ENTITIES OF zc_etn_entered_info IN LOCAL MODE
        ENTITY etn_info
        UPDATE SET FIELDS WITH VALUE #( FOR xxx IN lt_xxxx
                                      ( %key = xxx-%key
                                        Status = '10' "
                                        %control  = VALUE #( XXX = if_abap_behv=>mk-on )<br>

If I remove the Update command then it will throw runtime errors.

So long story short, How can i remove edit button from the object page ?

image.png

Attachments

image.png (827 B)
image.png (11.5 kB)