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

Wrong column heading in ALV output

Former Member
0 Likes
906

Hii,

The column heading in ALV output is coming wrong. The heading enterd by me is not taken else it takes heading from data element in DDIC. I want to display heading entered by me and not of data element.

I am using field catalog as given :

wa_fclog-fieldname = 'LICENSE'.

wa_fclog-tabname = 'IT_FINAL'.

wa_fclog-seltext_s = 'License'.

wa_fclog-outputlen = 8.

wa_fclog-col_pos = 1.

wa_fclog-edit = 'X'.

wa_fclog-ref_fieldname = 'LICENSE'.

wa_fclog-ref_tabname = 'ZLICENSE'.

APPEND wa_fclog TO it_fclog.

CLEAR wa_fclog.

For this the ALV heading is taking the text from data element for license field rather than 'License'...

I want to use ref_fieldaname and ref_tabname for help on ALV output screen.. Tell me then how can i get my own heading..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
846

Hi,

Use in this way,

wa_fclog-fieldname = 'LICENSE'.

wa_fclog-tabname = 'IT_FINAL'.

wa_fclog-seltext_s = 'License'.

wa_fclog-seltext_m = 'License'. "Add this too

wa_fclog-seltext_l = 'License'. "Add this too

wa_fclog-outputlen = 8.

wa_fclog-col_pos = 1.

wa_fclog-edit = 'X'.

wa_fclog-ref_fieldname = 'LICENSE'.

wa_fclog-ref_tabname = 'ZLICENSE'.

APPEND wa_fclog TO it_fclog.

CLEAR wa_fclog.

This should solve your problem without affecting anything else.

Hii,

The column heading in ALV output is coming wrong. The heading enterd by me is not taken else it takes heading from data element in DDIC. I want to display heading entered by me and not of data element.

I am using field catalog as given :

wa_fclog-fieldname = 'LICENSE'.

wa_fclog-tabname = 'IT_FINAL'.

wa_fclog-seltext_s = 'License'.

wa_fclog-outputlen = 8.

wa_fclog-col_pos = 1.

wa_fclog-edit = 'X'.

wa_fclog-ref_fieldname = 'LICENSE'.

wa_fclog-ref_tabname = 'ZLICENSE'.

APPEND wa_fclog TO it_fclog.

CLEAR wa_fclog.

For this the ALV heading is taking the text from data element for license field rather than 'License'...

I want to use ref_fieldaname and ref_tabname for help on ALV output screen.. Tell me then how can i get my own heading..

5 REPLIES 5
Read only

sarbajitm
Contributor
0 Likes
846

wa_fclog-fieldname = 'LICENSE'.

wa_fclog-tabname = 'IT_FINAL'.

wa_fclog-seltext_m = 'License'. " make this change

wa_fclog-outputlen = 8.

wa_fclog-col_pos = 1.

wa_fclog-edit = 'X'.

wa_fclog-ref_fieldname = 'LICENSE'.

wa_fclog-ref_tabname = 'ZLICENSE'.

APPEND wa_fclog TO it_fclog.

CLEAR wa_fclog.

please make the change as mentioned above and run your program one more time.

Thanks

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
846

hi,

wa_fclog-fieldname = 'LICENSE'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_M = 'License'.   "-----> Replace 'S' with 'M'
wa_fclog-outputlen = 8.
wa_fclog-col_pos = 1.
wa_fclog-edit = 'X'.
' Comment these two wa_fclog-ref_fieldname,  wa_fclog-ref_tabname  
* wa_fclog-ref_fieldname = 'LICENSE'.
* wa_fclog-ref_tabname = 'ZLICENSE'.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.

Thanks & REgards

Read only

0 Likes
846

No....I want to use ref_fieldaname and ref_tabname for help on ALV output screen.. Tell me then how can i get my own heading using these two fields also.. Is there any field in fclog to switch off the text coming from DDIC...

Read only

0 Likes
846

hi,

wa_fclog-fieldname = 'LICENSE'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_M = 'License'.   "-----> Replace 'S' with 'M'
wa_fclog-outputlen = 8.
wa_fclog-col_pos = 1.
wa_fclog-edit = 'X'.
 wa_fclog-ref_fieldname = 'LICENSE'.  " uncomment and see
 wa_fclog-ref_tabname = 'ZLICENSE'.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.

'It working for me

Read only

Former Member
0 Likes
847

Hi,

Use in this way,

wa_fclog-fieldname = 'LICENSE'.

wa_fclog-tabname = 'IT_FINAL'.

wa_fclog-seltext_s = 'License'.

wa_fclog-seltext_m = 'License'. "Add this too

wa_fclog-seltext_l = 'License'. "Add this too

wa_fclog-outputlen = 8.

wa_fclog-col_pos = 1.

wa_fclog-edit = 'X'.

wa_fclog-ref_fieldname = 'LICENSE'.

wa_fclog-ref_tabname = 'ZLICENSE'.

APPEND wa_fclog TO it_fclog.

CLEAR wa_fclog.

This should solve your problem without affecting anything else.