2007 May 10 12:39 PM
Hi,
I have an issue related with ALV Grid display.
In the report displayed suppose, consider that thr r some columns in which for a particular row there r null values. the requirement is that they should not be displayed in that row itself. only the row having not null values will be displayed for each row.
plz suggest some idea.
2007 May 10 12:43 PM
Hi,
while filling the data into internal which u r going to show in grid.select the records which will not contain null values in that perticular columns.
rgds,
bharat.
Hi,
I have an issue related with ALV Grid display.
In the report displayed suppose, consider that thr r some columns in which for a particular row there r null values. the requirement is that they should not be displayed in that row itself. only the row having not null values will be displayed for each row.
plz suggest some idea.
2007 May 10 12:43 PM
Hi,
while filling the data into internal which u r going to show in grid.select the records which will not contain null values in that perticular columns.
rgds,
bharat.
2007 May 10 12:45 PM
Hi
while filling the data into internal which u r going to show in grid.select the records which will not contain null values in that perticular columns
Use Is Initial condition for validations.
Regards,
Sreeram
2007 May 10 12:45 PM
before calling FM u have to put like this
delete itab where col1 eq space and col2 eq space.
then
call FM.
Regards
prabhu
2007 May 10 12:49 PM
hi,
sort the internal table and delete it before passing it to REUSE_ALV_GRID_DISPLAY.
sort itab.
ex- delete itab where filed1 = ' ' and filed2 = ' '.
2007 May 10 2:14 PM
hi,
try this.
if sy-index NE 0 or sy-index NE null.
d_fieldcat_wa-fieldname = 'MATNR'.
d_fieldcat_wa-seltext_l = 'material number'.
d_fieldcat_wa-col_pos = 1.
append d_fieldcat_wa to d_fieldcat.
clear d_fieldcat_wa.
d_fieldcat_wa-fieldname = 'ERDAT'.
d_fieldcat_wa-seltext_l = 'created date'.
d_fieldcat_wa-col_pos = 2.
append d_fieldcat_wa to d_fieldcat.
clear d_fieldcat_wa.
endif.
data : gd_repid like sy-repid.
gd_repid = sy-repid.
call function reuse_alv_grid_display.
exporting.
programme = gd_repid.
fieldcat = d_fieldcat.
importing.
t_outtab = itab.
exceptions.
reward with points if helpful.