<?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: Dynamic authorization object call in a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-authorization-object-call-in-a-program/m-p/7361468#M1541902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will have to distinguish the calls according to parameter number, i.e. you should pass the number of fields as n_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Form authority_check using auth_obj id1 field1 id2 field2 id3 field3 ... n_id.
  case n_id.
    when 1.
      AUTHORITY-CHECK OBJECT auth_obj
        ID id1 FIELD field1.
    when 2.
      AUTHORITY-CHECK OBJECT auth_obj
        ID id1 FIELD field1
        ID id2 FIELD field2.
...
    endcase.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Oct 2010 15:49:01 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2010-10-09T15:49:01Z</dc:date>
    <item>
      <title>Dynamic authorization object call in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-authorization-object-call-in-a-program/m-p/7361466#M1541900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where i have to call the authorization object dynamically for a authorization check irrespective of how many fields the authorization object has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help how can we make it dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;auth_obj  = test_auth.      "test auth has 2 filds for auth check.&lt;/P&gt;&lt;P&gt;Perform authority_check using auth_obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;auth_obj = test_auth1.     "test_auth1 has 4 fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform authority_check using test_auh1.&lt;/P&gt;&lt;P&gt;Form authority_check using auth_obj.&lt;/P&gt;&lt;P&gt;    AUTHORITY-CHECK OBJECT auth_obj&lt;/P&gt;&lt;P&gt;             FOR USER sy-uname&lt;/P&gt;&lt;P&gt;             ID 'ACTVT' FIELD '01'&lt;/P&gt;&lt;P&gt;             ID 'AUTH_FIELD' FIELD 'field name will be passed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how can we achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 15:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-authorization-object-call-in-a-program/m-p/7361466#M1541900</guid>
      <dc:creator>styrolution_accenture</dc:creator>
      <dc:date>2010-10-08T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic authorization object call in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-authorization-object-call-in-a-program/m-p/7361467#M1541901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the perform at the runtime in a separate include (which should be already created and added to your main program) and then call it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Oct 2010 04:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-authorization-object-call-in-a-program/m-p/7361467#M1541901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-09T04:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic authorization object call in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-authorization-object-call-in-a-program/m-p/7361468#M1541902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will have to distinguish the calls according to parameter number, i.e. you should pass the number of fields as n_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Form authority_check using auth_obj id1 field1 id2 field2 id3 field3 ... n_id.
  case n_id.
    when 1.
      AUTHORITY-CHECK OBJECT auth_obj
        ID id1 FIELD field1.
    when 2.
      AUTHORITY-CHECK OBJECT auth_obj
        ID id1 FIELD field1
        ID id2 FIELD field2.
...
    endcase.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Oct 2010 15:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-authorization-object-call-in-a-program/m-p/7361468#M1541902</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-10-09T15:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic authorization object call in a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-authorization-object-call-in-a-program/m-p/7361469#M1541903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another approach possible, you can use AUTHORITY-CHECK one time with maximum of 10 fields and fill only some of them, only that fields would be checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find a complete example here: &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.kerum.pl/infodepot/00043"&gt;http://www.kerum.pl/infodepot/00043&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 15:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-authorization-object-call-in-a-program/m-p/7361469#M1541903</guid>
      <dc:creator>krzysztof_murkowski2</dc:creator>
      <dc:date>2015-04-16T15:29:53Z</dc:date>
    </item>
  </channel>
</rss>

