‎2006 Dec 21 1:23 PM
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
‎2006 Dec 21 1:32 PM
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.
‎2006 Dec 21 1:35 PM
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....
‎2006 Dec 21 1:36 PM
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
‎2006 Dec 21 2:47 PM
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......