2013 Sep 20 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..
Post your code to be able to help you.
Thanks,
Pedro Silva.
2013 Sep 20 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
2013 Sep 20 7:19 PM
2013 Sep 21 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.
2013 Sep 21 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..:)
2013 Sep 21 4:40 AM
Hi Shruti Prab,
Good... Then close this thread as marking you comment as answered.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |