<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: RAP Create button still enabled after disabling the f... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/14072653#M4910233</link>
    <description>I struggled with the same requirement, conditionally hide the Create button. I did not manage to do this, but got something which works the same. By using method get_global_features() you can conditionally say that the user is not authorized, and block him/her from creating an new entry.</description>
    <pubDate>Thu, 10 Apr 2025 14:21:22 GMT</pubDate>
    <dc:creator>d_schuitemaker62</dc:creator>
    <dc:date>2025-04-10T14:21:22Z</dc:date>
    <item>
      <title>RAP Create button still enabled after disabling the feature</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaq-p/13733494</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created global feature with intention to disable CREATE action - it all works fine but instead of hiding cerate button it is still enabled and when i click it i get popup saying that create action is disabled - any advice on how to disable/hide the create button ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SAPUI5 Version is 1.96.1&lt;BR /&gt;Here is my implementation of get global features:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt; METHOD get_global_features.
    DATA lv_allowed_create TYPE boole_d.

    lv_allowed_create = zcl_qm_claim=&amp;gt;get_global_create_allowed( ).
    IF lv_allowed_create = abap_false.

      result-%create =  if_abap_behv=&amp;gt;fc-o-disabled.
    ENDIF.
    result-%update = if_abap_behv=&amp;gt;fc-o-enabled.
  ENDMETHOD.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I discovered thet get_global_features method is not called... my behaviour is defined like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;unmanaged implementation in class zbp_qm_claims_qmel unique;
with draft;
define behavior for ZQM_CLAIMS_QMEL
draft table zqm_qmel_draft
late numbering
lock master
total etag aedat
authorization master ( instance, global )
etag master aedat

{

  create ( features : global );
  update ( features : global );

  association _qmma { with draft; create; }

  field ( readonly ) qmnum, qmart;

  //COSTS
  field ( features : instance ) zzestimated, zzagreedsup, zzagreedmill,
  zzestimated_cur, zzagreedmill_cur, zzfinstatsup, zzfinstatmill,
  zzcrdbnote, zzcrnote, txt04;
  draft action Edit;

  determination setInitialValues on modify { create; }

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;what do I do wrong ?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 16:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaq-p/13733494</guid>
      <dc:creator>jacek_zebrowski3</dc:creator>
      <dc:date>2024-06-19T16:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13748067#M4835195</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;try using the annotation&amp;nbsp;&lt;SPAN&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1445379"&gt;@ui&lt;/a&gt;.createHidden: true to hide the create button in addition to using global feature control to disable the operation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This annotation is an entity annotation, that means in CDS view it goes above&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;define view entity...&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;and in metadata extension, above&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;annotate view xxx with { ..&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Jessie&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 20:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13748067#M4835195</guid>
      <dc:creator>JessieCheah</dc:creator>
      <dc:date>2024-07-01T20:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13748553#M4835247</link>
      <description>Im sorry but above anotation is used to hide create button on table = not on global actions area</description>
      <pubDate>Tue, 02 Jul 2024 08:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13748553#M4835247</guid>
      <dc:creator>jacek_zebrowski3</dc:creator>
      <dc:date>2024-07-02T08:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13748785#M4835272</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;May I ask what do you mean by 'global action area'?&lt;/P&gt;&lt;P&gt;The annotation I mentioned (plus 2 others for Update and Delete) are used specifically to hide the standard CUD operations buttons, which are&lt;BR /&gt;- the create and delete that you see either at the List Report or if in the Object Page, at the tables&lt;BR /&gt;- and the update and delete at the top of the Object Page&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Jessie&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 11:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13748785#M4835272</guid>
      <dc:creator>JessieCheah</dc:creator>
      <dc:date>2024-07-02T11:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13749974#M4835424</link>
      <description>Well &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1445379"&gt;@ui&lt;/a&gt;.createHidden: true is not avaliable as annotation on entity level - what ABAP version should i have to use it ?</description>
      <pubDate>Wed, 03 Jul 2024 09:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13749974#M4835424</guid>
      <dc:creator>jacek_zebrowski3</dc:creator>
      <dc:date>2024-07-03T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13752528#M4835788</link>
      <description>&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1445379"&gt;@ui&lt;/a&gt;.createHidden should be available from ABAP Cloud release 2302 and S/4 HANA OP 2023. If you say you are getting a syntax error when trying to use the annotation, you are probably on an older release. Unfortunately there is no other workaround from RAP or ABAP CDS at the moment, as this behavior is controlled by Fiori Elements, perhaps you could open a ticket with FE and they may have suggestions.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Jessie&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 09:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13752528#M4835788</guid>
      <dc:creator>JessieCheah</dc:creator>
      <dc:date>2024-07-05T09:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the feature</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13877244#M4885481</link>
      <description>I have the same issue. delete its working as expected. But for create get_global_features is not getting called...</description>
      <pubDate>Wed, 25 Sep 2024 11:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13877244#M4885481</guid>
      <dc:creator>TylerFincham</dc:creator>
      <dc:date>2024-09-25T11:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13877247#M4885483</link>
      <description>this annotation indeed hides the create button. But it doesn't help triggering the get_global_features so we can control it dynamically.</description>
      <pubDate>Wed, 25 Sep 2024 11:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/13877247#M4885483</guid>
      <dc:creator>TylerFincham</dc:creator>
      <dc:date>2024-09-25T11:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/14072653#M4910233</link>
      <description>I struggled with the same requirement, conditionally hide the Create button. I did not manage to do this, but got something which works the same. By using method get_global_features() you can conditionally say that the user is not authorized, and block him/her from creating an new entry.</description>
      <pubDate>Thu, 10 Apr 2025 14:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/14072653#M4910233</guid>
      <dc:creator>d_schuitemaker62</dc:creator>
      <dc:date>2025-04-10T14:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/14072657#M4910234</link>
      <description>To do this, do the following:</description>
      <pubDate>Thu, 10 Apr 2025 14:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/14072657#M4910234</guid>
      <dc:creator>d_schuitemaker62</dc:creator>
      <dc:date>2025-04-10T14:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/14072661#M4910235</link>
      <description>To do this, do the following: 1. Define create in your behaviour definition as: create ( features : global ); 2. Define this method in the Local Types part of your implementation class like this: METHODS get_global_features FOR GLOBAL FEATURES IMPORTING REQUEST requested_features FOR MissionNeeds RESULT result. 3. Implement like this: result-%create = COND #( WHEN sy-subrc = 0 THEN if_abap_behv=&amp;gt;auth-allowed ELSE if_abap_behv=&amp;gt;auth-unauthorized ).</description>
      <pubDate>Thu, 10 Apr 2025 14:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/14072661#M4910235</guid>
      <dc:creator>d_schuitemaker62</dc:creator>
      <dc:date>2025-04-10T14:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Create button still enabled after disabling the f...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/14072666#M4910236</link>
      <description>This way, you can block the creation of an entry. Of course it would be better if you could make the button visible, but since RAP works with entities and here there is no entity I can understand that this is not easy to implement in RAP Fiori for SAP. In my opinion, this approach comes the closest to the desired behaviour.</description>
      <pubDate>Thu, 10 Apr 2025 14:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-create-button-still-enabled-after-disabling-the-feature/qaa-p/14072666#M4910236</guid>
      <dc:creator>d_schuitemaker62</dc:creator>
      <dc:date>2025-04-10T14:26:50Z</dc:date>
    </item>
  </channel>
</rss>

