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

Screen programing ..

Former Member
0 Likes
506

I have a report using table control which is common for 3 roles present on the system...for ex <b>admin</b> , <b>emp</b> , <b>mang</b> all three acessing same report screen no <b>0004</b>.

when this screen is called how to go back to the role which has called this report...here i am using three seperate push buttons to each of roles making impractical....i need help in this regards.....

shud i use class concept ?? experts help mee

4 REPLIES 4
Read only

Former Member
0 Likes
479

Why don't you use IMPORT and EXPORT??? That way you can have the value of the role inside a variable and don't loose it's value -;)

Greetings,

Blag.

Read only

Former Member
0 Likes
479

first u check whether the user belongs to admin or emp or mang. Now use only one push button and write code as checking user status...if admin leave to admin screen etc....

Read only

rahulkavuri
Active Contributor
0 Likes
479

hi u need to change the PF-Status for this one accordingly

Export the SY-REPID which indicates the current program into the memory..

syntac

EXPORT SY-REPID TO MEMORY ID 'PGMNAME'.

Now when defining the PF-Status for the screen 0004 import the PGMNAME and accordingly edit the behavior of the program, i.e going back to the program which called it

Award points if found helpful

Read only

0 Likes
479

Hi it gives same program name as i have created these screens of the roles under same program name. Moreover the subcreen 0002 is the same for every role though it is embedded in different tab srtips of role.

ADMIN TAB strip -


> 0001 0002 0003

Emp TAB strip -


> 0004 0002 0005

mang TAB strip -


> 0006 0002 0007

report for screen 0002 -


> 0008

as shown same screen number 0002 embedded in different tab strips access the report.

This is scenario......