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

alv list

Former Member
0 Likes
916

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

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

5 REPLIES 5
Read only

Former Member
0 Likes
876

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

Read only

Former Member
0 Likes
876

Post your code to be able to help you.

Thanks,

Pedro Silva.

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
876

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.

Read only

Former Member
0 Likes
876

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..:)

Read only

0 Likes
876

Hi Shruti Prab,

Good... Then close this thread as marking you comment as answered.