Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Alv grid error

Former Member
0 Likes
569

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

1 ACCEPTED SOLUTION
Read only

former_member182354
Contributor
0 Likes
530

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

3 REPLIES 3
Read only

former_member182354
Contributor
0 Likes
531

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

Read only

0 Likes
530

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

Read only

0 Likes
530

Hi Jose,

I got the same error, can you share the solution? (your question is answered)

Thanks

Sinh