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_Doubt?

Former Member
0 Likes
605

Hi.

I have an ALV report in which I am showing lights based on some conditions ,on the very first column of my list.

Is there any way I can change the light from first column to say 6th or any other column. in ALV?

Thank You

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
581

hi,

chk this.

ls_fieldcatalog-fieldname = 'ICON'.

ls_fieldcatalog-tabname = 'INT_CRB'.

ls_fieldcatalog-datatype = 'CHAR'.

<b> ls_fieldcatalog-col_pos = 6.</b>

ls_fieldcatalog-intlen = '4'.

ls_fieldcatalog-reptext = 'Status'.

ls_fieldcatalog-coltext = 'Status'.

ls_fieldcatalog-seltext = 'Status'.

ls_fieldcatalog-tooltip = 'Status'.

  • ls_fieldcatalog-key = 'X'.

APPEND ls_fieldcatalog TO lt_fieldcatalog.

CLEAR ls_fieldcatalog.

so by using <b>ls_fieldcatalog-col_pos</b> u can change the display position of all the columns

rgsd

anver

Message was edited by: Anversha s

Hi.

I have an ALV report in which I am showing lights based on some conditions ,on the very first column of my list.

Is there any way I can change the light from first column to say 6th or any other column. in ALV?

Thank You

5 REPLIES 5
Read only

anversha_s
Active Contributor
0 Likes
582

hi,

chk this.

ls_fieldcatalog-fieldname = 'ICON'.

ls_fieldcatalog-tabname = 'INT_CRB'.

ls_fieldcatalog-datatype = 'CHAR'.

<b> ls_fieldcatalog-col_pos = 6.</b>

ls_fieldcatalog-intlen = '4'.

ls_fieldcatalog-reptext = 'Status'.

ls_fieldcatalog-coltext = 'Status'.

ls_fieldcatalog-seltext = 'Status'.

ls_fieldcatalog-tooltip = 'Status'.

  • ls_fieldcatalog-key = 'X'.

APPEND ls_fieldcatalog TO lt_fieldcatalog.

CLEAR ls_fieldcatalog.

so by using <b>ls_fieldcatalog-col_pos</b> u can change the display position of all the columns

rgsd

anver

Message was edited by: Anversha s

Read only

Former Member
0 Likes
581
Read only

anversha_s
Active Contributor
0 Likes
581

hi,

what happened.

it didn solve ur issue..still some pblem.

rgds

anver

Read only

0 Likes
581

Man!..

I gave u points...

I Cant understand what else you want?

Read only

0 Likes
581

hey subhash,

i didn mean anything.

what i asked is, if there is some pblm in this issue,

kindly post it thats all.

cool ok..

regds

anver