2007 Feb 27 6:55 AM
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.
2007 Feb 27 6:57 AM
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.
2007 Feb 27 7:01 AM
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.
2007 Feb 27 7:16 AM
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 .
2007 Feb 27 7:16 AM
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 .
2007 Feb 27 8:39 AM
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