Application Development 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: 

alv list

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Post your code to be able to help you.

Thanks,

Pedro Silva.

karun_prabhu
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

Hi Shruti Prab,

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