<?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>topic Re: CDS View Authorization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/14074629#M2041587</link>
    <description>&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;I am also facing same issue. Can u please tell me how to solve that issue.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Apr 2025 16:06:36 GMT</pubDate>
    <dc:creator>Shameel</dc:creator>
    <dc:date>2025-04-13T16:06:36Z</dc:date>
    <item>
      <title>CDS View Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317969#M1918899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a simple CDS View in Eclipse which works really great. Now I try to make some auth-checks like descripted in the docu:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_740/en/index.htm?file=abencds_f1_dcl_syntax.htm" title="http://help.sap.com/abapdocu_740/en/index.htm?file=abencds_f1_dcl_syntax.htm"&gt;ABAP Keyword Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have created an DCL Source in Eclipse which looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;@EndUserText.label: 'Auth for Working Place and Ordertype'&lt;/P&gt;
&lt;P&gt;@MappingRole: 'true'&lt;/P&gt;
&lt;P&gt;define role ZR_TC_AUTH {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; grant select on Zpm_Tc_Order&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where ( vaplz,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; auart,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; werks ) = &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aspect pfcg_auth (&amp;nbsp; Z_PM_TC,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ARBPL,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AUFART,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IWERK,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTVT = '31' );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In my Backend i have created a custom auth Object called Z_PM_TC. I have assigned this object in a Userrole. Now if i check my cds view in SE11 or Data Preview in Eclipse I get all the same data like before auth check. So auth check is not triggered. Also in Backend trace (ST01) I can't see that a check for my custom auth-object is done. So do I need to make an other connection between DDL and DCL? Or does it require a higher patchlevel? Our system is 740 SP-Level 009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope somebody know what im doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 12:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317969#M1918899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-07T12:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317970#M1918900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;BR /&gt;do you see any entries "ACMRT_RULES" in your ST01 trace?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for "get all the same data" might originate from the fact, if you assigned the user role to your user, you'll receive the same data as before. Adding the role to your user, you are not restricting the result set, but you get a logical OR with your other authorizations. One example, your user is allowed to see all company codes and you create a DCL, which limits to one specific company code. When executing now, you'll have the logical OR between all and one specific, so "all" will be retrieved. To check if the DCL is actually working, you can e.g. use a dedicated test user with very limited authorizations (which has just the auth to execute the view/report and has the user role attached which you created).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;BR /&gt;&amp;nbsp; Jasmin &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317970#M1918900</guid>
      <dc:creator>jasmin_gruschke</dc:creator>
      <dc:date>2015-10-07T14:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317971#M1918901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jasmin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your fast reply. In my Trace i can't find any entries with "ACMRT_RULES". Here is my trace from my Testuser:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;16:51:20,139 AUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_TCODE&amp;nbsp;&amp;nbsp;&amp;nbsp; RC=0&amp;nbsp; tcode=SE16;TCD=SE16;type=TR;name=SE11;&lt;/P&gt;
&lt;P&gt;16:51:20,139 AUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_TABU_DIS RC=0&amp;nbsp; ACTVT=03;DICBERCLS=;NC=;type=TR;name=SE11;&lt;/P&gt;
&lt;P&gt;16:51:20,145 AUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_ALV_LAYO RC=12 ACTVT=23;type=TR;name=SE11;&lt;/P&gt;
&lt;P&gt;16:51:20,145 AUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_ALV_LAYR RC=12 ACTVT=23;REPORT=/1BCDWB/DB_ZV_TC_ORDER_;HANDLE= ;LOG_GROUP= ;type=TR;name=SE11;&lt;/P&gt;
&lt;P&gt;16:51:20,151 AUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_GUI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RC=12 ACTVT=61;type=TR;name=SE11;&lt;/P&gt;
&lt;P&gt;16:51:20,151 AUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_GUI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RC=12 ACTVT=02;type=TR;name=SE11;&lt;/P&gt;
&lt;P&gt;16:51:20,187 AUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_GUI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RC=12 ACTVT=61;type=TR;name=SE11;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have created a Testuser with very little authorizations. But again the ResultSet is the same. I have also try to include conditions directly in the where clause in the dcl file. Also this conditions wouldn't reconginized by the CDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you have an other idea. If you need more infos please tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317971#M1918901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-07T14:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317972#M1918902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know the DCL logic is not executed while using the data preview (this is only available in later SP's).&lt;/P&gt;&lt;P&gt;Can you please write a small report, call the view via an OpenSQL statement and check again if the DCL is applied?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ingo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 06:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317972#M1918902</guid>
      <dc:creator>IngoBraeuninger</dc:creator>
      <dc:date>2015-10-08T06:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317973#M1918903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ingo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have created a short report and check it again. But also in this report I get all data. I also tried with my testuser with very little authorization. In trace you can see that no auth is checked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;AUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_TCODE&amp;nbsp;&amp;nbsp;&amp;nbsp; RC=0&amp;nbsp; tcode=SA38;TCD=SA38;type=TR;name=SA38;&lt;/P&gt;
&lt;P&gt;AUTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S_PROGRAM&amp;nbsp; RC=0&amp;nbsp; tcode=SA38;P_ACTION=SUBMIT;P_GROUP= ;type=TR;name=SA38;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Did i missed to make a linkage between dcl and ddl? I'm really confused whats missing here. Hope somebody have an idea.&lt;/P&gt;&lt;P&gt;@Ingo do you have worked with DCL and get it working correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 11:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317973#M1918903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-08T11:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317974#M1918904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I find the "solution". The solution is waiting until SP12 is installed at our system. There this Authorization Concept should be available. Thanks all for your help:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 08:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317974#M1918904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-09T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317975#M1918905</link>
      <description>&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;I am also facing same issue. Can u please tell me how to solve that issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/13427672/multidimensional-report.html" target="test_blank"&gt;https://answers.sap.com/questions/13427672/multidimensional-report.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 02:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/11317975#M1918905</guid>
      <dc:creator>former_member447091</dc:creator>
      <dc:date>2021-07-05T02:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View Authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/14074629#M2041587</link>
      <description>&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;I am also facing same issue. Can u please tell me how to solve that issue.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Apr 2025 16:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-authorization/m-p/14074629#M2041587</guid>
      <dc:creator>Shameel</dc:creator>
      <dc:date>2025-04-13T16:06:36Z</dc:date>
    </item>
  </channel>
</rss>

