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: 

space between two coloumns IN ALV

Former Member
0 Kudos

hai,

i want some space between two coloums in the header ..in 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' ...How can we achieve this .any parameter we need to specify in THE FIELDCAT like fcat-outputlen , fcat-col_fix ....ANYWAY THAT IS NOT WORKING...

Regards,

Dev

5 REPLIES 5

former_member386202
Active Contributor
0 Kudos

Hi,

try like this.

wa_layout-colwidth_optimize = 'X'.

Regards,

Prashant

Clemenss
Active Contributor
0 Kudos

Hi Guru,

a possible way to achieve this is to put another column between the columns to be separated. Define it in field catalog (and itab for display) as character with output length as you want.

Regards,

Clemens

Former Member
0 Kudos

Hai Clemens ,

Its is not working i tried it

Former Member
0 Kudos

hi guru

try this

DATA: l_repid TYPE sy-repid.

l_repid = sy-repid.

t_keyinfo-header01 = 'EBELN'.

t_keyinfo-item01 = 'EBELN'.

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

EXPORTING

i_callback_program = l_repid

i_callback_user_command = c_user_command

it_fieldcat = p_t_fieldcat[]

i_default = 'X'

i_tabname_header = 'T_EKKO'

i_tabname_item = 'T_EKPO'

is_keyinfo = t_keyinfo

is_print = p_x_print

TABLES

t_outtab_header = p_t_header[]

t_outtab_item = p_t_item[].

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

regards

kk.

Former Member
0 Kudos

Hi Guru Dev Ji,

Try This Out

Declare this .

DATA: w_lay_out TYPE slis_layout_alv.

Now assign it a value

w_lay_out-no_vline = 'X'.

w_lay_out-no_hline = 'X'.

Check out above 2 assignment which one u want.

If useful kindly reward.

Rohit G