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

why show internal table multi-style ?

Former Member
0 Likes
469

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!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
438

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.

2 REPLIES 2
Read only

Former Member
0 Likes
438

hi,

i know it's because i haven't refresh fieldcatalog.

Read only

Former Member
0 Likes
439

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.