‎2008 Mar 12 7:33 AM
hi all,
I have simple issue in alv grid,
I have designed an alv grid, by default it has scroll bars.
when i scroll the alv grid, the last executed status message (ie in pai) is executed on every page and the message shows in
the status bar on every scroll...
how can i avoid this .
thanks and regards
Jose
‎2008 Mar 12 7:38 AM
Hi Jijo,
Declare a flag variable ..
DATA: GV_FLAG TYPE C.
then put this folowing pseudo code and it will work..
IF GV_FLAG IS INITAL.
MESSAGE 'XSYZ'.
GV_FLAG = 'X'.
ENDIF.
Then what it will do is the status message when it is displayed for first time the Flag is set to ''X' and as the flag is set once the code will not execute again to show the message.
Regards,
Raghav
‎2008 Mar 12 7:38 AM
Hi Jijo,
Declare a flag variable ..
DATA: GV_FLAG TYPE C.
then put this folowing pseudo code and it will work..
IF GV_FLAG IS INITAL.
MESSAGE 'XSYZ'.
GV_FLAG = 'X'.
ENDIF.
Then what it will do is the status message when it is displayed for first time the Flag is set to ''X' and as the flag is set once the code will not execute again to show the message.
Regards,
Raghav
‎2008 Mar 12 7:51 AM
hi,
actually i put a break point on that message, but the statement is executing only once, not all every scrolls
but the status message shows every scrolls.
your code wont work because the message statement doesnt work everytime.
regards
jose
‎2010 Mar 01 8:05 AM
Hi Jose,
I got the same error, can you share the solution? (your question is answered)
Thanks
Sinh