ā2013 Oct 28 5:50 AM
Hello
I have a function group with 4 includes. Inside each include I am creating one selection screen, which gets displayed on screen based on some framework.
The problem is, since the 4 includes are inside the same function group, whenever i put statements such as AT SELECTION-SCREEN OUTPUT in more than 2 of these includes, I get an error message stating
| The event "AT SELECTION-SCREEN OUTPUT " was already specified in the program |
Any help in this regard will be appreciated
thanks and regards
Preeti Gupta
ā2013 Oct 28 5:59 AM
Hi Preeti,
SAP won't allow us to declare the AT SELECTION-SCREEN OUTPUT more than once in a single program or function group.
Better you can declare a single AT SELECTION-SCREEN OUTPUT and use some conditions.
SKR
ā2013 Oct 28 6:04 AM
Hi you create a global include for selection screen use At selection screen events only once in the same include.put validations or if conditions to display on screen according to your framework. Thanks Kamesh
ā2013 Oct 28 6:10 AM
Hi Kamesh
I tried to do that, but during runtime it shows empty area between fields for fields which are there in the select-option, but is not displayed.
This problem happens, when there is a pop-up on the screen.
ā2013 Oct 28 6:13 AM
Can you please put some screen shot and what you are trying to achieve to better understand your problem.
ā2013 Oct 28 6:10 AM
Hi
Since those all includes belong to same Function Group , you cannot have more than one AT SELECTION-SCREEN OUTPUT event to be triggered .
As per my knowlegde , the only way is to go with seperate function groups or In the same AT SELECTION-SCREEN OUTPUT you at to write a logic to make execute different screens based on your requirement. If some expert can really post a soultion on this , even Ill be Enlightened .
Thanks & Regards,
Shiv.
ā2013 Oct 28 6:12 AM
Hi Preeti
You can not have more than one. What you can do is inside here put yours checks based on the framework?
thanks
Nabheet