2006 Aug 15 2:30 AM
I created a program that acts like a login, pops a window that's asking for a username and password.
Now I want to make it a function and call it in any program that I want. Then if the credentials are ok I will let them save the changes for example and if not they will be blocked.
How do I do this?
2006 Aug 15 2:57 AM
Hi Adrain,
CReate a FM and define a screen in the FM main program to accept the users logon details.
You can call a screen within a FM.
Take a loook at the FM <b>"SSFH_PASSWORD_PROMPT"</b>
There are many FM for password. DO a F4 in se37 with PASSWORD
Cheers
VJ
Message was edited by: Vijayendra Rao
2006 Aug 15 3:06 AM
VJ,
I already have a program that validates the user, zlogin. I created a customer dbase where I put the user names and password. It's all working except that I want other programs to call the program that I created.
If they are authorized then they can save the changes they make and if not, they will be blocked.
2006 Aug 15 3:08 AM
Adrain,
write a simple FM and try submitting ur program from within this FM.
Cheers
VJ
2006 Aug 15 3:26 AM
2006 Aug 15 6:58 AM
Now how do I crete a pop-up screen in function module? The selection-screen doesn't work.
I should be able to ask for their username and password.
2006 Aug 15 7:00 AM
Hi Adrain,
You will need to create a new screen and create the screen as MODEL DIALOG for popup.
You can check the above FM how they have defined the screen and see how they are calling it.
You will have to write few lines extra to achieve what u want.
Cheers
VJ