2007 Feb 22 10:18 AM
Hi,
I've made a kind of screen exist in my application. It calls a screen from an other report, but no I want to include a check if the screen exists in that report and if the screen is of the type subscreen. Any ideas on how to do this?
kr,
Björn
Hi,
I've made a kind of screen exist in my application. It calls a screen from an other report, but no I want to include a check if the screen exists in that report and if the screen is of the type subscreen. Any ideas on how to do this?
kr,
Björn
2007 Feb 22 10:37 AM
Hi Bjorn,
Use the statement CALL SUBSCREEN...
Check the value of sy-subrc immediately after this statement.
If the value is non zero, then the subscreen does not exist.
Ravi
2007 Feb 22 10:48 AM
Hi Ravi,
Thank you for your answer.
However I don't think this is possible for different reasons:
1. I don't want to call my subscreen yet
2. I'm using selection-screen tabbed block as subscreen area so I'm not going into PBO or PAI modules and there's the only place to call subscreens I think
kr,
Björn
2007 Feb 22 11:37 AM
I've managed to solve this issue using the function RS_SCREEN_LIST. This function takes as arguments a program name and a screen number. It returns a table with properties of the screen. If the column 'TYPE' of this table equals 'I', then it's a subscreen. It also has an exception 'Screen does'nt exist'.
kr,
Björn
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |