<?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: Authority Check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3585876#M863429</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;Since its a module pool.create a new module in in PBO and put ur code in that module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is add LOAD-OF-PROGRAM. in main program(after ur includes) and put ur code there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Arjun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arjun Puthuruthy on Mar 25, 2008 11:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 06:07:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T06:07:55Z</dc:date>
    <item>
      <title>Authority Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3585874#M863427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello gurus,&lt;/P&gt;&lt;P&gt;    My requirement is, In Production Staging area, The operator executes the custom transaction on the RF gun. The program checks the user&amp;#146;s authorizations to execute the program. It does so by using function module AUTHORITY_CHECK_TCODE (Authority check for the transactions).&lt;/P&gt;&lt;P&gt;    I am new to this Authority check, Can anyone help me how to do this..&lt;/P&gt;&lt;P&gt;   I am doing this coding in Module pool programming,&lt;/P&gt;&lt;P&gt;    code is,&lt;/P&gt;&lt;P&gt;  DATA : TCODE TYPE TSTC-TCODE.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'AUTHORITY_CHECK_TCODE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    tcode         = tcode&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OK            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_OK        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS        = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i done this in include program of main.. but the error that i am getting is this " STATEMENT IS NOT ACCESSIBLE". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz Help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points assured..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 05:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3585874#M863427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T05:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3585875#M863428</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;if u get this error any where press the change button in error display part then it will direct u to one line.just before that line place START-OF-SELECTION statement ur problem will be solved.this is for  letting the statements after form...endform,module...endmodule,...accessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 06:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3585875#M863428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T06:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3585876#M863429</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;Since its a module pool.create a new module in in PBO and put ur code in that module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is add LOAD-OF-PROGRAM. in main program(after ur includes) and put ur code there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Arjun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arjun Puthuruthy on Mar 25, 2008 11:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 06:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3585876#M863429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T06:07:55Z</dc:date>
    </item>
  </channel>
</rss>

