‎2009 Aug 06 7:55 AM
Dear Experts,
I m working on ALV Report,
User has 3 options : Open item, Clear Item and All item.
ALV output is fine for open and clear item.
but when user choose All item, it displays every column twice.
For reference code is like
IF r_open = 'X'.
PERFORM get_data_open.
PERFORM display_data.
ELSEIF r_clear = 'X'.
PERFORM get_data_cleared.
PERFORM display_data.
ELSEIF r_all = 'X'.
PERFORM get_data_open.
PERFORM display_data.
PERFORM get_data_cleared.
PERFORM display_data.
ENDIF.
Can anyone help me in this.
Regards,
‎2009 Aug 06 7:58 AM
Hi,
The perform diaplay data is called twice. club both in one and ue it.
Thanks
kamath
‎2009 Aug 06 8:07 AM
Hi,
Club Display data Other Wise Dont' fill FILEDCATLOG twise.
Salil ....
‎2009 Aug 06 8:14 AM
Hi ,
IF r_open = 'X'.
PERFORM get_data_open.
ELSEIF r_clear = 'X'.
PERFORM get_data_cleared.
ELSEIF r_all = 'X'.
PERFORM get_data_open.
PERFORM display_data.
PERFORM get_data_cleared.
ENDIF.
PERFORM display_data.
Regards.
‎2009 Aug 06 8:18 AM
Hi,
Make use FM REUSE_ALV_BLOCK_LIST_APPEND'
See example Program .
BALVBT01.
Regards
Saurabh Goel
‎2009 Aug 06 8:19 AM
‎2009 Aug 06 8:26 AM
Hi Maverick,
<li>When you select radiobutton for all, you have clubbed open items and clear items together. that is fine .
But the thing is your building fieldcatalog internal table twice for open items and cleared items.
<li> For both open and cleared items if you have same columns,, you can just do like below
IF r_open = 'X'.
PERFORM get_data_open.
PERFORM display_data.
ELSEIF r_clear = 'X'.
PERFORM get_data_cleared.
PERFORM display_data.
ELSEIF r_all = 'X'.
PERFORM get_data_open.
PERFORM display_data.
PERFORM get_data_cleared.
PERFORM display_data.
ENDIF.
Thanks
Venkat.ODELETE ADJACENT DUPLICATES FROM it_fieldcat COMPARING fieldname.
‎2009 Aug 06 8:42 AM
Hi,
FIELD CATALOGUE is causing this problem.
In the logic for ALL ITEMS, this is getting execute twice somewhere, inside from the subroutines/forms.
regards,
amit m.