Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

API - BAPI , RFC Function module to validate user id and password

Former Member
0 Kudos

Hi,

Can anyone provide me with the function module to validate the username and password of the user of the back end R/3 System.

Best Regards

Sid

1 ACCEPTED SOLUTION

former_member589029
Active Contributor
0 Kudos

Use function module SUSR_CHECK_LOGON_DATA. You need to provide auth_method (P for password check), userid and password.

Be careful when you execute the function in test mode because it converts the input into upper case hence if you have lower case characters in your password it will return with invalid password. If you pass the lower case into the function in a program everything is fine.

Regards,

Michael

3 REPLIES 3

former_member589029
Active Contributor
0 Kudos

Use function module SUSR_CHECK_LOGON_DATA. You need to provide auth_method (P for password check), userid and password.

Be careful when you execute the function in test mode because it converts the input into upper case hence if you have lower case characters in your password it will return with invalid password. If you pass the lower case into the function in a program everything is fine.

Regards,

Michael

0 Kudos

Hi Michael,

It was a great help. The issue is resolved.

Best Regards

Sid

0 Kudos

I am not clear with this. If the password is in Upper Case how to pass in the program.