<?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: ABAP Code To Authenticate Users in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997062#M75519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can set up a remote enabled FM that logs on a user anonymously and also passes the userid of the user. You would have to set up the destination in SM59. The FM would then have to look at whatever tables you need to need to verify the user yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2005 16:13:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-27T16:13:02Z</dc:date>
    <item>
      <title>ABAP Code To Authenticate Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997056#M75513</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;How can I code a ABAP program/function which will authenticate a user based only on their user id?  Do not want to use their password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the entire authentication process to happen in the ABAP code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Audrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 23:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997056#M75513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T23:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code To Authenticate Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997057#M75514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to transaction code SE37 and do a search on susr_user*&lt;/P&gt;&lt;P&gt;You may find a function module which may solve your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 23:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997057#M75514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T23:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code To Authenticate Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997058#M75515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your requirement is not clear. The user id of a user running an ABAP will be there in SY-UNAME .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authority checks command AUTHORITY-CHECK automatically checks the authorization of the user running the report.&lt;/P&gt;&lt;P&gt;You can put your security check using above command .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 03:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997058#M75515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T03:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code To Authenticate Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997059#M75516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Audrey,&lt;/P&gt;&lt;P&gt;SAP uses authorization objects for authority checks.&lt;/P&gt;&lt;P&gt;You need to create these objects in SAP and check for the authorizations in ur program for this object you created by using the abap statement authority-check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the auth object can have various parameters, based on which auth is checked. Read sap docu for more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember 2 reward poitns and close this thread if ur Q is answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prash&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 03:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997059#M75516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T03:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code To Authenticate Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997060#M75517</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;To check the authorization of the user of an ABAP program, use the AUTHORITY-CHECK statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT '&amp;lt;object&amp;gt;'&lt;/P&gt;&lt;P&gt;                        ID '&amp;lt;name1&amp;gt;' FIELD &amp;lt;f1&amp;gt; &lt;/P&gt;&lt;P&gt;                        ID '&amp;lt;name2&amp;gt;' FIELD &amp;lt;f2&amp;gt; &lt;/P&gt;&lt;P&gt;                            .............&lt;/P&gt;&lt;P&gt;                        ID '&amp;lt;name10&amp;gt;' FIELD &amp;lt;f10&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;object&amp;gt; is the name of the object that you want to check. You must list the names (&amp;lt;name1&amp;gt;, &amp;lt;name2&amp;gt; ...) of all authorization fields that occur in &amp;lt;object&amp;gt;. You can enter the values &amp;lt;f 1 &amp;gt;, &amp;lt;f 2 &amp;gt;.... for which the authorization is to be checked either as variables or as literals. The AUTHORITY-CHECK statement checks the user&amp;#146;s profile for the listed object, to see whether the user has authorization for all values of &amp;lt;f&amp;gt;. Then, and only then, is SY-SUBRC set to 0. You can avoid checking a field by replacing FIELD &amp;lt;f&amp;gt; with DUMMY. You can only evaluate the result of the authorization check by checking the contents of SY-SUBRC. For a list of the possible return values and further information, see the keyword documentation for the AUTHORITY-CHECK statement. For further general information about the SAP authorization concept, refer to Users and Authorizations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an authorization object called F_SPFLI. It contains the fields ACTVT, NAME, and CITY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM SPFLI.&lt;/P&gt;&lt;P&gt;   AUTHORITY-CHECK OBJECT 'F_SPFLI'&lt;/P&gt;&lt;P&gt;                        ID 'ACTVT'  FIELD '02'&lt;/P&gt;&lt;P&gt;                        ID 'NAME' FIELD SPFLI-CARRID&lt;/P&gt;&lt;P&gt;                        ID 'CITY'   DUMMY.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC NE 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user has the following authorizations for F_SPFLI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACTVT 01-03, NAME AA-LH, CITY none,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the value of SPFLI-CARRID is not between "AA" and "LH", the authorization check terminates the SELECT loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope it helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Ruthra.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 04:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997060#M75517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T04:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code To Authenticate Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997061#M75518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I basically want to the ABAP program to login the user based only on the user name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a custom SSO solution because our 3rd party application doesn't fit into any of the traditional SSO models.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to login a user using ABAP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 15:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997061#M75518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T15:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code To Authenticate Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997062#M75519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can set up a remote enabled FM that logs on a user anonymously and also passes the userid of the user. You would have to set up the destination in SM59. The FM would then have to look at whatever tables you need to need to verify the user yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2005 16:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-to-authenticate-users/m-p/997062#M75519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-27T16:13:02Z</dc:date>
    </item>
  </channel>
</rss>

