<?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: Authorisation Check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528611#M241799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to loop &amp;lt;b&amp;gt;s_kostl&amp;lt;/b&amp;gt; and pick up each value for authorization check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection-option &amp;lt;b&amp;gt;s_kostl&amp;lt;/b&amp;gt; will have multiple value. &lt;/P&gt;&lt;P&gt;you can loop it&lt;/P&gt;&lt;P&gt;for each value moving to a temp variable.&lt;/P&gt;&lt;P&gt;pass the temp variable to authority check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;TM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2006 05:21:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-07T05:21:19Z</dc:date>
    <item>
      <title>Authorisation Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528609#M241797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_kostl FOR zstruct_kostl-kostl&lt;/P&gt;&lt;P&gt;                 NO-EXTENSION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'K_CSKS'&lt;/P&gt;&lt;P&gt;            ID 'KOKRS' FIELD '*'&lt;/P&gt;&lt;P&gt;            ID 'KOSTL' FIELD s_kostl&lt;/P&gt;&lt;P&gt;            ID 'ACTVT' FIELD '*' .&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID 'ZFI' TYPE 'E' NUMBER 34 WITH s_kostl.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User has given the authorisation to run the cost center 511131311.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is showin the message like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object        K_CSKS     CO-CCA: Cost Center Master&lt;/P&gt;&lt;P&gt;Object class  CO         Controlling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Field     Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Activity&lt;/P&gt;&lt;P&gt;                   *&lt;/P&gt;&lt;P&gt;         Controlling Area&lt;/P&gt;&lt;P&gt;                   *&lt;/P&gt;&lt;P&gt;         Cost Center&lt;/P&gt;&lt;P&gt;                   &amp;lt;b&amp;gt;IEQ0511131&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not allowing the user to xecute this cost center value.&lt;/P&gt;&lt;P&gt;Can I know what the problem will be?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Beena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 05:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528609#M241797</guid>
      <dc:creator>Bema</dc:creator>
      <dc:date>2006-08-07T05:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528610#M241798</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;Have you added 'K_CSKS' to user profile? Before calling the authorization object , use below statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read s_kostl index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'K_CSKS'&lt;/P&gt;&lt;P&gt;ID 'KOKRS' FIELD '*'&lt;/P&gt;&lt;P&gt;ID 'KOSTL' FIELD s_kostl-low&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '*' .&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID 'ZFI' TYPE 'E' NUMBER 34 WITH s_kostl.&lt;/P&gt;&lt;P&gt;ENDIF.&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;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 05:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528610#M241798</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-08-07T05:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528611#M241799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to loop &amp;lt;b&amp;gt;s_kostl&amp;lt;/b&amp;gt; and pick up each value for authorization check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection-option &amp;lt;b&amp;gt;s_kostl&amp;lt;/b&amp;gt; will have multiple value. &lt;/P&gt;&lt;P&gt;you can loop it&lt;/P&gt;&lt;P&gt;for each value moving to a temp variable.&lt;/P&gt;&lt;P&gt;pass the temp variable to authority check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;TM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 05:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528611#M241799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T05:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528612#M241800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;For one value also it is not working.&lt;/P&gt;&lt;P&gt;yes, we have added this in the user profile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 05:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528612#M241800</guid>
      <dc:creator>Bema</dc:creator>
      <dc:date>2006-08-07T05:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528613#M241801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you have specified the check as s_kostl-low as Appana suggested above? &lt;/P&gt;&lt;P&gt;It sounds like the system takes the entire value of the select-option, IEQxxxx, instead of only taking the value xxxx, and that is where the check fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check for s_kostl-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 05:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528613#M241801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T05:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528614#M241802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi beena , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.first u  have to get all the Cost centes which comes for the given range in selection scree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select kokrs kostl from csks into i_kostl where kostl in s_kostl.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2.Then u  have to check like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at i_kostl.
AUTHORITY-CHECK OBJECT 'K_CSKS'
ID 'KOKRS' FIELD '*'
ID 'KOSTL' FIELD i_kostl-kostl.
ID 'ACTVT' FIELD '*' .
IF sy-subrc NE 0.
MESSAGE ID 'ZFI' TYPE 'E' NUMBER 34 WITH i_kostl-kostl.
ENDIF.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 05:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-check/m-p/1528614#M241802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T05:37:14Z</dc:date>
    </item>
  </channel>
</rss>

