04-20-2017 9:23 AM
Hi all,
I have a module-pool in wich I'am displaying several fields and a tabstrip with several subscreens.
I have a button to check for errors. Right now I'm displaying a popup with the messages like this:
I want to replace this popup by a message area, like in webdynpros.
For that purpose I've created a subscreen for the messages, enlarged the dynpro and displaced all the components downwards.
Like this:
When threre is no messages I'm calling an empty subscreen in this area, so all the other components are displayed above.
But the tabstrip is getting cropped. Showing a scrollbar. I don't know what can be the problem.
In the dynpro there is enough space for all the components.
Do you know what I can do to solve this?
I've tried creating another subscreen to place all the rest of components, but Im getting an error because you cannot call a subscreen from another subscreen.
Thanks in advance.
04-20-2017 11:40 AM
In the subscreen area below the tabstrip, make sure you have set the attribute "vertical resizing" flag.
04-20-2017 10:26 AM
Hi!
I've also faced with such screen behavior few months ago, and I solved it like it was done in the standard ME23N transaction:
You should create one screen with which will have subscreen with message area and one subscreen without it. And If you have no messages, you should substitute the first screen with the second one.
Hope it will be helpful.
Evgeny
04-21-2017 10:16 AM
Hi, thanks for answer.
If there aren't other chances I'll try this workaround.
04-20-2017 10:49 AM
If the area contain a control like an ALV, consider replacing the subscreen area with a docking container?
04-20-2017 11:16 AM
But how to set concrete size in lines of the docking container? It will differ for different screen sizes.
04-20-2017 11:42 AM
You set the size of a docking container via the parameter EXTENSION of the constructor, and you may change it later via the method SET_EXTENSION.
04-21-2017 10:12 AM
Hi,
I've tried using a container, but the components are displayed below the screen with a gap for the container;
I don't see any parameter EXTENSION or method SET_EXTENSION in class cl_gui_custom_container.
I've tried with method set_height but nothing happens.
04-20-2017 11:40 AM
In the subscreen area below the tabstrip, make sure you have set the attribute "vertical resizing" flag.
04-20-2017 8:08 PM
Hi, This was the problem. If I check "vertical resizing" then all the things are displayed ok.
EDIT: Nope, this is not the problem...
It seems that depends on the screen resolution. I have two monitors, my laptop screen and anoother, if I execute the program in my laptop is displayed wrong, but if I move the window to the other monitor then is automatically displayed well...
This didn't happen before adding the subscreen...
04-21-2017 9:57 AM
It seems that depends on the screen resolution. I have two monitors, my laptop screen and another, if I execute the program in my laptop is displayed wrong, but if I move the window to the other monitor then is automatically displayed well...
This didn't happen before adding the subscreen...
04-21-2017 10:21 AM
Hi!
This happened because runtime properties of the screen are set based on the subscreen area size, not a subscreen. So you can use two solutions described above:
1) Docking container with ALV
2) Two main screens with and withot subscreen
04-21-2017 12:07 PM
Ok, solved.
This was really easy... 🙂
I only needed to unckeck the property "vertical resizing" in the subscreen there is whitin the tabstip...