SAP Function Modules

SUSR_CHECK_LOGON_DATA SAP Function module







SUSR_CHECK_LOGON_DATA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SUSR_CHECK_LOGON_DATA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SUSO
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM SUSR_CHECK_LOGON_DATA - SUSR CHECK LOGON DATA





CALL FUNCTION 'SUSR_CHECK_LOGON_DATA' "
  EXPORTING
    auth_method =               " xuauthmethod  Authentication Method (Password / X.509 / ...)
*   userid =                    " xubname       User name in user master record
*   aliasname =                 " usalias       Internet User Alias
*   password =                  " xubcode       User password
*   auth_data =                 " string
*   extid_type =                " extid_type    External ID Type
*   language =                  " laiso         Language According to ISO 639
*   use_new_exception = 0       " iboolean
  IMPORTING
    ticket =                    " string        Logon Ticket
    user_id =                   " xubname       User name in user master record
    pwdstate =                  " xupwdstate    Status of the User Password (Values: -2/-1/0/1/2, see Docu)
    pwd_change_sso =            " xupwdchgsso
    allow_pwd_deletion =        " boole_d
  EXCEPTIONS
    USER_OR_PASSWORD_INCORRECT = 1  "
    USER_LOCKED = 2             "
    USER_OUTSIDE_VALIDITY = 3   "
    USER_REQUIRES_SNC_LOGON = 4  "
    PASSWORD_ATTEMPTS_LIMITED = 5  "
    PASSWORD_LOGON_DISABLED = 6  "
    USER_HAS_NO_PASSWORD = 7    "
    INITIALPASSWORD_EXPIRED = 8  "
    PRODUCTIVE_PASSWORD_EXPIRED = 9  "
    AUTH_METHOD_REQUIRES_SNC = 10  "
    TICKET_LOGON_DISABLED = 11  "
    TICKET_ENCODING_ERROR = 12  "
    TICKET_ISSUER_NOT_VERIFIED = 13  "
    TICKET_ISSUER_NOT_TRUSTED = 14  "
    TICKET_EXPIRED = 15         "
    X509_LOGON_DISABLED = 16    "
    X509_ENCODING_ERROR = 17    "
    NO_USERID_FOR_ALIASNAME = 18  "
    EXTID_LOGON_DISABLED = 19   "
    NO_MAPPING_FOUND = 20       "
    MAPPING_AMBIGUOUS = 21      "
    INTERNAL_ERROR = 22         "
    AUTH_METHOD_NOT_SUPPORTED = 23  "
    LOGON_DATA_INCOMPLETE = 24  "
    .  "  SUSR_CHECK_LOGON_DATA

ABAP code example for Function Module SUSR_CHECK_LOGON_DATA





The ABAP code below is a full code listing to execute function module SUSR_CHECK_LOGON_DATA including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_ticket  TYPE STRING ,
ld_user_id  TYPE XUBNAME ,
ld_pwdstate  TYPE XUPWDSTATE ,
ld_pwd_change_sso  TYPE XUPWDCHGSSO ,
ld_allow_pwd_deletion  TYPE BOOLE_D .

DATA(ld_auth_method) = 'Check type of data required'.
DATA(ld_userid) = 'Check type of data required'.
DATA(ld_aliasname) = 'Check type of data required'.
DATA(ld_password) = 'Check type of data required'.
DATA(ld_auth_data) = 'Check type of data required'.
DATA(ld_extid_type) = 'Check type of data required'.
DATA(ld_language) = 'Check type of data required'.
DATA(ld_use_new_exception) = 'Check type of data required'. . CALL FUNCTION 'SUSR_CHECK_LOGON_DATA' EXPORTING auth_method = ld_auth_method * userid = ld_userid * aliasname = ld_aliasname * password = ld_password * auth_data = ld_auth_data * extid_type = ld_extid_type * language = ld_language * use_new_exception = ld_use_new_exception IMPORTING ticket = ld_ticket user_id = ld_user_id pwdstate = ld_pwdstate pwd_change_sso = ld_pwd_change_sso allow_pwd_deletion = ld_allow_pwd_deletion EXCEPTIONS USER_OR_PASSWORD_INCORRECT = 1 USER_LOCKED = 2 USER_OUTSIDE_VALIDITY = 3 USER_REQUIRES_SNC_LOGON = 4 PASSWORD_ATTEMPTS_LIMITED = 5 PASSWORD_LOGON_DISABLED = 6 USER_HAS_NO_PASSWORD = 7 INITIALPASSWORD_EXPIRED = 8 PRODUCTIVE_PASSWORD_EXPIRED = 9 AUTH_METHOD_REQUIRES_SNC = 10 TICKET_LOGON_DISABLED = 11 TICKET_ENCODING_ERROR = 12 TICKET_ISSUER_NOT_VERIFIED = 13 TICKET_ISSUER_NOT_TRUSTED = 14 TICKET_EXPIRED = 15 X509_LOGON_DISABLED = 16 X509_ENCODING_ERROR = 17 NO_USERID_FOR_ALIASNAME = 18 EXTID_LOGON_DISABLED = 19 NO_MAPPING_FOUND = 20 MAPPING_AMBIGUOUS = 21 INTERNAL_ERROR = 22 AUTH_METHOD_NOT_SUPPORTED = 23 LOGON_DATA_INCOMPLETE = 24 . " SUSR_CHECK_LOGON_DATA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 13. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 14. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 15. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 16. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 17. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 18. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 19. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 20. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 21. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 22. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 23. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 24. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ticket  TYPE STRING ,
ld_auth_method  TYPE XUAUTHMETHOD ,
ld_user_id  TYPE XUBNAME ,
ld_userid  TYPE XUBNAME ,
ld_pwdstate  TYPE XUPWDSTATE ,
ld_aliasname  TYPE USALIAS ,
ld_pwd_change_sso  TYPE XUPWDCHGSSO ,
ld_password  TYPE XUBCODE ,
ld_allow_pwd_deletion  TYPE BOOLE_D ,
ld_auth_data  TYPE STRING ,
ld_extid_type  TYPE EXTID_TYPE ,
ld_language  TYPE LAISO ,
ld_use_new_exception  TYPE IBOOLEAN .

ld_auth_method = 'Check type of data required'.
ld_userid = 'Check type of data required'.
ld_aliasname = 'Check type of data required'.
ld_password = 'Check type of data required'.
ld_auth_data = 'Check type of data required'.
ld_extid_type = 'Check type of data required'.
ld_language = 'Check type of data required'.
ld_use_new_exception = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SUSR_CHECK_LOGON_DATA or its description.