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 header row

Former Member
0 Likes
842

HI,

I faced a problem with ALV header row.

some of the header rows does not shows all text ?!

I filled field catalog as

ADD 1 TO col_count.

wa_fieldcat-tabname = 'IT_OUTPUT '.

wa_fieldcat-col_pos = col_count.

wa_fieldcat-fieldname = 'SUMMER'.

wa_fieldcat-outputlen = '22'.

wa_fieldcat-scrtext_l = text-024.

wa_fieldcat-scrtext_m = text-024.

wa_fieldcat-scrtext_s = text-024.

wa_fieldcat-coltext = text-024.

APPEND wa_fieldcat TO gt_fieldcat.

CLEAR wa_fieldcat.

in text-024 I write (Summer Stipend) but in ALV its shows (Summer S) only ?!

even if i translate field symbol to another language it does not shows all text.

Thanks,

HI,

I faced a problem with ALV header row.

some of the header rows does not shows all text ?!

I filled field catalog as

ADD 1 TO col_count.

wa_fieldcat-tabname = 'IT_OUTPUT '.

wa_fieldcat-col_pos = col_count.

wa_fieldcat-fieldname = 'SUMMER'.

wa_fieldcat-outputlen = '22'.

wa_fieldcat-scrtext_l = text-024.

wa_fieldcat-scrtext_m = text-024.

wa_fieldcat-scrtext_s = text-024.

wa_fieldcat-coltext = text-024.

APPEND wa_fieldcat TO gt_fieldcat.

CLEAR wa_fieldcat.

in text-024 I write (Summer Stipend) but in ALV its shows (Summer S) only ?!

even if i translate field symbol to another language it does not shows all text.

Thanks,

6 REPLIES 6
Read only

Former Member
0 Likes
814

Hi,

try this:

WA_FIELDCAT-DDICTXT = 'L'.

Regards, Dieter

Read only

Former Member
0 Likes
814

hii,

this depends on outputlen only and dont put single cots for 22 .

wa_fieldcat2-outputlen = 35.

Read only

Former Member
0 Likes
814

Hi,

This problem occurs due to width of the column.

Either you increase width size, and do not pass 'X' in field 'colwidth_optimize' of Layout.

Pass ddictxt = 'L' in field catalog. ie. : ddictxt(1) type c, " (S)hort (M)iddle (L)ong

Hope this may resolve your problem..

Regards,

Arun Agrawal

Read only

Former Member
0 Likes
814

I tried all what you says but nothing changed ?!!

Read only

0 Likes
814

Hi Saleh,

In the fieldcatalog, only use wa_fieldcat-scrtext_l = text-024. Comment the other two statements i.e.

wa_fieldcat-scrtext_m = text-024 and wa_fieldcat-scrtext_s = text-024. If all statements are specified,

the system displays the column description as per the last statement which is defined. So here the system is

displaying the column description as per wa_fieldcat-scrtext_s = text-024. It is sufficient to use either one of the three fields of the fieldcatalog.

Regards,

Vinod

Read only

Former Member
0 Likes
814

HII,

I find out that problem in Arabic language .

this is my code,

ADD 1 TO col_count.

wa_fieldcat-tabname = 'IT_OUTPUT '.

wa_fieldcat-col_pos = col_count. "1.

wa_fieldcat-fieldname = 'PIP'.

wa_fieldcat-outputlen = '35'.

IF sy-langu = 'E'.

wa_fieldcat-scrtext_l = 'test test test test test test test test'.

ELSEIF sy-langu = 'A'.

wa_fieldcat-scrtext_l = ' مبلغ الشهري للعرض الخاص-1 '.

ENDIF.

APPEND wa_fieldcat TO gt_fieldcat.

the English text is fine but the Arabic text is not shown completely in the ALV Field labe even if I use text simple .