<?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 Behaviour Implementation get_*_features/get_*_aut... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215811#M4926147</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/61"&gt;@Marian_Zeis&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/488953"&gt;@BjoernSchulz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I know what the structure in general is for.&lt;/P&gt;&lt;P&gt;The question is for feature and authorization specifically. Would a message from here really show up on the UI? If yes, is this eg for feature really sensible?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Wolfgang&lt;/P&gt;</description>
    <pubDate>Fri, 12 Sep 2025 12:25:52 GMT</pubDate>
    <dc:creator>WRoeckelein</dc:creator>
    <dc:date>2025-09-12T12:25:52Z</dc:date>
    <item>
      <title>RAP Behaviour Implementation get_*_features/get_*_authorization : Should reported really get filled?</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaq-p/14215003</link>
      <description>&lt;P&gt;Hi RAP'lers,&lt;/P&gt;&lt;P&gt;the RAP Behaviour Implementation methods &lt;SPAN&gt;get_global_features, get_global_authorizations, get_instance_features, get_instance_authorizations have a changing parameter reported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it really needed to fill this parameter? What is expected in this parameters? Where/when are they shown to the user in a Fiori Elements App?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If they should get filled, what would be the best approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The implementation eg in&amp;nbsp;bp_demo_unmanaged_root_draft does not seem to be a sensible approach to me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for some hints here,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Wolfgang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 15:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaq-p/14215003</guid>
      <dc:creator>WRoeckelein</dc:creator>
      <dc:date>2025-09-11T15:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Behaviour Implementation get_*_features/get_*_aut...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215090#M4926034</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;reported is only needed for the communication to Fiori elements.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/488953"&gt;@BjoernSchulz&lt;/a&gt;&amp;nbsp;has some examples here:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://software-heroes.com/en/blog/abap-rap-messages" target="_blank"&gt;https://software-heroes.com/en/blog/abap-rap-messages&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 18:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215090#M4926034</guid>
      <dc:creator>Marian_Zeis</dc:creator>
      <dc:date>2025-09-11T18:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Behaviour Implementation get_*_features/get_*_aut...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215470#M4926109</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/3438"&gt;@WRoeckelein&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as Marian mentioned, is the reported structure to handle messages to the UI, in a case you have some errors in the logic. You have to fill %MSG with a single message oder %OTHERS with more messages, if there is some generic stuff happening and you have more than one message.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Björn&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 08:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215470#M4926109</guid>
      <dc:creator>BjoernSchulz</dc:creator>
      <dc:date>2025-09-12T08:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Behaviour Implementation get_*_features/get_*_aut...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215811#M4926147</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/61"&gt;@Marian_Zeis&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/488953"&gt;@BjoernSchulz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I know what the structure in general is for.&lt;/P&gt;&lt;P&gt;The question is for feature and authorization specifically. Would a message from here really show up on the UI? If yes, is this eg for feature really sensible?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Wolfgang&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 12:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215811#M4926147</guid>
      <dc:creator>WRoeckelein</dc:creator>
      <dc:date>2025-09-12T12:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Behaviour Implementation get_*_features/get_*_aut...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215895#M4926160</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/3438"&gt;@WRoeckelein&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Have tested it in the system. Wenn you load the List Report and Object Page the method is called, but nothing happens. Wenn I click Edit the message from get_global_authorizations is coming up and I can decide, if I want to proceed or stop editing. So it seem to work in "special" cases.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BjoernSchulz_0-1757685007216.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/313607i1FC3141EBA14DD67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BjoernSchulz_0-1757685007216.png" alt="BjoernSchulz_0-1757685007216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 13:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215895#M4926160</guid>
      <dc:creator>BjoernSchulz</dc:creator>
      <dc:date>2025-09-12T13:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Behaviour Implementation get_*_features/get_*_aut...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215905#M4926163</link>
      <description>&lt;P&gt;If the &lt;STRONG&gt;Travel&lt;/STRONG&gt; is open → Delete button is active.&lt;/P&gt;&lt;P&gt;If the &lt;STRONG&gt;Travel&lt;/STRONG&gt; is cancelled → Delete button is greyed out, Update button also greyed out.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;No messages are shown&lt;/STRONG&gt; — just proper enablement/disablement.&lt;/P&gt;&lt;P&gt;CLASS zbp_travel DEFINITION PUBLIC FINAL CREATE PROTECTED.&lt;BR /&gt;PUBLIC SECTION.&lt;BR /&gt;INTERFACES if_abap_behv_impl.&lt;BR /&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;CLASS zbp_travel IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD get_instance_features.&lt;BR /&gt;LOOP AT keys ASSIGNING FIELD-SYMBOL(&amp;lt;ls_key&amp;gt;).&lt;/P&gt;&lt;P&gt;" Read status of the current Travel instance&lt;BR /&gt;SELECT SINGLE status&lt;BR /&gt;FROM ztravel&lt;BR /&gt;WHERE travel_id = @&amp;lt;ls_key&amp;gt;-travel_id&lt;BR /&gt;INTO &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1407137"&gt;@DATA&lt;/a&gt;(lv_status).&lt;/P&gt;&lt;P&gt;" Prepare feature result&lt;BR /&gt;APPEND VALUE #(&lt;BR /&gt;%tky = &amp;lt;ls_key&amp;gt;-%tky&lt;BR /&gt;%features-%delete =&lt;BR /&gt;COND #( WHEN lv_status = 'O' THEN if_abap_behv=&amp;gt;fc-o-enabled&lt;BR /&gt;ELSE if_abap_behv=&amp;gt;fc-o-disabled )&lt;BR /&gt;%features-%update =&lt;BR /&gt;COND #( WHEN lv_status = 'C' THEN if_abap_behv=&amp;gt;fc-o-disabled&lt;BR /&gt;ELSE if_abap_behv=&amp;gt;fc-o-enabled )&lt;BR /&gt;) TO result.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;" No need to fill reported here!&lt;BR /&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;H3&gt;Scenario&lt;/H3&gt;&lt;P&gt;We still have the &lt;STRONG&gt;Travel&lt;/STRONG&gt; entity.&lt;BR /&gt;We want to control &lt;STRONG&gt;authorizations&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;A user with role &lt;STRONG&gt;TRAVEL_ADMIN&lt;/STRONG&gt; → full access (update + delete).&lt;/P&gt;&lt;P&gt;A user with role &lt;STRONG&gt;TRAVEL_VIEWER&lt;/STRONG&gt; → read-only, no update or delete.&lt;/P&gt;&lt;P&gt;CLASS zbp_travel DEFINITION PUBLIC FINAL CREATE PROTECTED.&lt;BR /&gt;PUBLIC SECTION.&lt;BR /&gt;INTERFACES if_abap_behv_impl.&lt;BR /&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;CLASS zbp_travel IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD get_instance_authorizations.&lt;BR /&gt;LOOP AT keys ASSIGNING FIELD-SYMBOL(&amp;lt;ls_key&amp;gt;).&lt;/P&gt;&lt;P&gt;" Check current user authorization (simplified example)&lt;BR /&gt;DATA(lv_is_admin) = cl_auth_check=&amp;gt;is_user_in_role( iv_role = 'TRAVEL_ADMIN' ).&lt;BR /&gt;DATA(lv_is_viewer) = cl_auth_check=&amp;gt;is_user_in_role( iv_role = 'TRAVEL_VIEWER' ).&lt;/P&gt;&lt;P&gt;" Prepare authorization result&lt;BR /&gt;APPEND VALUE #(&lt;BR /&gt;%tky = &amp;lt;ls_key&amp;gt;-%tky&lt;BR /&gt;%auth-%update =&lt;BR /&gt;COND #( WHEN lv_is_admin = abap_true THEN if_abap_behv=&amp;gt;auth-allowed&lt;BR /&gt;ELSE if_abap_behv=&amp;gt;auth-unauthorized )&lt;BR /&gt;%auth-%delete =&lt;BR /&gt;COND #( WHEN lv_is_admin = abap_true THEN if_abap_behv=&amp;gt;auth-allowed&lt;BR /&gt;ELSE if_abap_behv=&amp;gt;auth-unauthorized )&lt;BR /&gt;) TO result.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;" Again: leave reported empty&lt;BR /&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 14:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14215905#M4926163</guid>
      <dc:creator>Akshath</dc:creator>
      <dc:date>2025-09-12T14:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Behaviour Implementation get_*_features/get_*_aut...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14222420#M4926882</link>
      <description>Hi Marian,thanks for the answer, the linked page only deals with actions and validations and not with get_*_features/get_*_authorization.</description>
      <pubDate>Fri, 19 Sep 2025 12:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14222420#M4926882</guid>
      <dc:creator>WRoeckelein</dc:creator>
      <dc:date>2025-09-19T12:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: RAP Behaviour Implementation get_*_features/get_*_aut...</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14224477#M4927081</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/488953"&gt;@BjoernSchulz&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;thanks, I found now some examples in&amp;nbsp;&lt;SPAN&gt;/dmo/bp_travel_d=&amp;gt;lhc_travel-&amp;gt;get_global_authorizations and -&amp;gt;get_instance_authorizations esp in the latter method I found this code&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;APPEND VALUE #( %tky = travel-%tky
                %msg = NEW /dmo/cm_flight_messages(
                                         textid    = /dmo/cm_flight_messages=&amp;gt;not_authorized_for_agencyid
                                         agency_id = travel-AgencyID
                                         severity  = if_abap_behv_message=&amp;gt;severity-error )
                %element-AgencyID = if_abap_behv=&amp;gt;mk-on
               ) TO reported-travel.&lt;/LI-CODE&gt;&lt;P&gt;which seems to indicate in how to communicate a missing authorization of an authorization object with an authorization Field (AgencyID).&lt;BR /&gt;&lt;BR /&gt;I still would like to read this somewhere more clearer in the documentation, there is some info in&amp;nbsp;&lt;A href="https://help.sap.com/docs/abap-cloud/abap-rap/messages" target="_blank" rel="noopener"&gt;https://help.sap.com/docs/abap-cloud/abap-rap/messages&lt;/A&gt;&amp;nbsp;, %element is used to relate the message to the UI field(s) (this is why even if the authorization check is for the country code of the Agency, the field used in the message is AgencyId, because this a field of Travel), if the problem is in a child, you also have to fill %path to relate the message to the correct parent entity.&lt;/P&gt;&lt;P&gt;There is also some info in&amp;nbsp;&lt;A href="https://help.sap.com/docs/abap-cloud/abap-rap/implementation-contract-feature-control" target="_blank"&gt;https://help.sap.com/docs/abap-cloud/abap-rap/implementation-contract-feature-control&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://help.sap.com/docs/abap-cloud/abap-rap/implementation-contract-authorization-control" target="_blank"&gt;https://help.sap.com/docs/abap-cloud/abap-rap/implementation-contract-authorization-control&lt;/A&gt;&amp;nbsp;however some of the stuff mentioned here is not done in the demos/examples provided by SAP...&lt;BR /&gt;&lt;BR /&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Wolfgang&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 06:59:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-behaviour-implementation-get-features-get-authorization-should-reported/qaa-p/14224477#M4927081</guid>
      <dc:creator>WRoeckelein</dc:creator>
      <dc:date>2025-09-23T06:59:26Z</dc:date>
    </item>
  </channel>
</rss>

