Application Development and Automation 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: 
Read only

Multiple screen navigation with same button click.

0 Likes
954

Hi everyone,

I have created login screen in MPP which consists of user name, password and one login(Push button) and i have created another two screens one is " recruiter screen" and another one is "management screen" and i have created two tables in SE11 one consisting of recruiter details and another one consisting of management details.

Here my requirement is in login screen when i enter recruiter details, it should fetch the details from recruiter table and should give access to recruiter screen and if i enter management details it should fetch the data from management table and it should give access to management screen.Can anyone please guide me to do this.

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
721

What is your difficulty?

Read only

RaymondGiuseppi
Active Contributor
721

Look like some basic dynpro handling and coding (case, call screen, module, leave to screen 0 and some select) so where are you exactly stuck? (Did you look at your course material or some demo program from SAP with a transaction such as DWDM)

Read only

mh97
Contributor
721

Sounds like you should have two different security roles, or same role with different activity values. Either way when user enters their info on login screen, your program should check the authorization to determine if they are recruiter or management. Then the program calls the appropriate screen and loads the data from the recruiter table or the management table.

Alternative to PFCG roles you could use a z table to map userid to recruiter or management role for this transaction. But following the standard security model is usually best.

Does that help?

Read only

DoanManhQuynh
Active Contributor
0 Likes
721

Solution is based on how do you valid user login and the detail of your database table. one solution is create a flag field to mark a person is recruiter or manager then in the validation of the login screen you also read that flag, after that just a simple CALL SCREEN. the other way is create 2 roles in tcode PFCG, assign user and use authorization check in your screen.