Skip to Content
0
Former Member
Dec 08, 2006 at 03:32 PM

move the column in alv display

48 Views

Hi all,

can anyone tell me how to move my 5 column in alv display to second column and second should become 3 and so on.

data : begin of itab occurs 0,

fld1 like zxxx-fld1,

fld1 like zxxx-fld1,

fld2 like zxxx-fld2,

fld3 like zxxx-fld3,

fld4 like zxxx-fld4,

fld5 like zxxx-fld5,

end of itab.

  • fld1, fld2, fld3,fld4 are primary keys in my zxxx table.

even though i declared my internal table as

data : begin of itab occurs 0,

fld1 like zxxx-fld1,

fld1 like zxxx-fld1,

fld5 like zxxx-fld5,

fld2 like zxxx-fld2,

fld3 like zxxx-fld3,

fld4 like zxxx-fld4,

end of itab.

Iam getting the same results.

can one tell me how to achieve this.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_program_name = v_repid

i_internal_tabname = 'itab'

i_inclname = v_repid

CHANGING

ct_fieldcat = t_fieldcatalog.

Thanks