09-20-2013 3:34 PM
i have an internal table with only one field of type char.
when i display it in alv list...i am not getting any output...only a blank screen.
however my itab when looped and written normally gives the output..
pls advise me on this matter..
09-20-2013 4:47 PM
Hi,
Without the code, its tough to comment !!
Still, you may check the field catalog and call to alb list ,etc on first hand ..
Thanks,
Sam
09-20-2013 7:19 PM
09-21-2013 4:18 AM
Hello Shruti.
Check this sample code for your reference and analyse.
DATA: begin of itab OCCURS 0,
field(1),
end of itab.
DATA: fcat type slis_t_fieldcat_alv WITH HEADER LINE,
layout type slis_layout_alv.
itab-field = 'A'.
append itab.
CLEAR : fcat[].
CLEAR:fcat.
fcat-fieldname = 'FIELD'.
fcat-seltext_m = 'SAMPLE'.
append fcat.
layout-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
IS_LAYOUT = layout
IT_FIELDCAT = fcat[]
TABLES
T_OUTTAB = itab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
Regards.
09-21-2013 4:25 AM
thanks all..its done..i had to just create a field catalogue as i was using a structure and hence had to specify the field..:)
09-21-2013 4:40 AM
Hi Shruti Prab,
Good... Then close this thread as marking you comment as answered.