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

Problem in alv output

Former Member
0 Likes
627

Hi All,

For one my reports i used alv grid display as output.

Correct output is coming but the problem is when i press the refresh button the output valus getting duplicated.

For eg :

My output before i press refresh button is

A B C

25 abc xyz

When i press the refresh button the output is changes to

A B C

25 abc xyz

25 abc xyz

here new line added with same entries when i press refresh.I f i again press refresh then one more line added with same entries.

Please let me know what is the problem and suggest me the solution for this.

Thanks a lot.

Hi All,

For one my reports i used alv grid display as output.

Correct output is coming but the problem is when i press the refresh button the output valus getting duplicated.

For eg :

My output before i press refresh button is

A B C

25 abc xyz

When i press the refresh button the output is changes to

A B C

25 abc xyz

25 abc xyz

here new line added with same entries when i press refresh.I f i again press refresh then one more line added with same entries.

Please let me know what is the problem and suggest me the solution for this.

Thanks a lot.

5 REPLIES 5
Read only

Former Member
0 Likes
597

HI Shweta,

Probably you are building up your internal table for output in PBO. As Refresh will trigger PBO again this piece of program is triggered again.

Regards,

John.

Read only

Former Member
0 Likes
597

Hi,

Hae u cretaed the ALV by checking whether it is INITIAL.

DATA  :  w_grid  TYPE REF TO CL_GUI_ALV_GRID,
 IF w_grid IS INITIAL.

creating custom container instance
  
ENDIF.

This will oslve ur problem, or else when u click on the row also it will generate dupliactes.

Reward if this helps.

Read only

raviprakash
Product and Topic Expert
Product and Topic Expert
0 Likes
597

Hi Shweta,

Please if possible attach the code, coz. only then it would be possible to see where the fault is and fix it :).

Regards,

Ravi .

Read only

raviprakash
Product and Topic Expert
Product and Topic Expert
0 Likes
597

Hi Shweta,

Please if possible attach the code, coz. only then it would be possible to see where the fault is and fix it :).

Regards,

Ravi .

Read only

Former Member
0 Likes
597

Hello,

Check the entries in the internal table.Probably entries in your internal table are getting duplicated.Or before refreshing,you can write:"delete adjacent duplicates..." .

Also check if you are creating the alv instance only when it is initial or not.

Regards,

Beejal

**reward if this helps