07-04-2007 4:13 AM
hi,
i added a button with fcode DISP in list screen, which has function to show alv grid data with standard alv gui status. but after press &F03 (BACK) and DISP again, the alv show my internal table aside with the formar one, for example if i press BACK and DISP three times, it shows three tables. how to show the table just once ??
my code structure is like
at user-command.
case sy-ucomm.
when 'DISP'.
perform display_data.
form display_data.
call function 'REUSE_ALV_GRID_DISPLAY'
.....
thank you!!
07-04-2007 4:25 AM
Zhang kun,
For each time of your button press the internal table is getting updated with the same data.It means put some condition before the appending process of internal table OR put this internal table data appending procedure under the event which will not fire every button press.
If you are selecting and appending the data under the event
AT SELECTION-SCREEN OUTPUT. it will fire for every transaction.So
It is better if you paste your internal table appending logic with event name.
Don't forget to reward if useful.
07-04-2007 4:20 AM
07-04-2007 4:25 AM
Zhang kun,
For each time of your button press the internal table is getting updated with the same data.It means put some condition before the appending process of internal table OR put this internal table data appending procedure under the event which will not fire every button press.
If you are selecting and appending the data under the event
AT SELECTION-SCREEN OUTPUT. it will fire for every transaction.So
It is better if you paste your internal table appending logic with event name.
Don't forget to reward if useful.