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

regarding ALV Grid reports

Former Member
0 Likes
705

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
685

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.

5 REPLIES 5
Read only

Former Member
0 Likes
686

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.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
685

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

Read only

Former Member
0 Likes
685

before calling FM u have to put like this

delete itab where col1 eq space and col2 eq space.

then

call FM.

Regards

prabhu

Read only

Former Member
0 Likes
685

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 = ' '.

Read only

Former Member
0 Likes
685

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.