07-21-2009 8:25 AM
Hi Folks,
Have a look at the below scenario and please come up with your vaulable comments n corrections.
My program is using a splitter container, with 3 ALV grids and one ALV tree control.
In the selection screen there are four check boxes for each of the ALV's. The container is split into so many columns and one row, based on the user selecting the check boxes, and those ALV's are placed in that space.
Now, if any of these internal tables is empty, then a message should be thrown next to each of those grids.
Currently, the report is throwing the message in the status bar.
Any clue?
Thanks in advance.
SrIhArI
07-21-2009 10:00 AM
Hi,
All the messages thrown by the MESSAGE statement appears in the status bar (except the Information type ). So in case you are displaying any message by using the Message statement , you dont have any control over its position.
To put the message , near to the grid / control ; you will be requiring a pop up screen. You can call the screen with this syntax CALL SCREEN 8888 starting at X,Y.
You can get these values by calling the GET_LEFT method of the CL_GUI_CONTAINER ( say for the grid1 which is Row 1, Col 1). And then you can call you screen starting at that position.
There are FMs for throwing POP ups, you can use any one of them, like POPUP_TO_CONFIRM.
Hope it helps.
07-22-2009 6:56 AM
The requirement is to show the message next to each of the grids.. no other way??? I am trying to find out some way to tackle this strange requirement.. any OUT OF THE BOX thinking???
07-22-2009 7:08 AM
if a information message is OK with you then you can call POPUP_TO_INFORM for each portion which comes with addition of specifying the position where the message will be popped up.