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 column text

Former Member
0 Likes
1,803

Dear Experts,

in alv report for column texts,

PERFORM fcat using '1' 'KUNNR' 'customer number for the company XXXXXXXXX'.

in ouput it's displaying up to some characters like 'customer number'.

i need full text in ouput.

any inputs....

Thanks and Regards,

Thirukumaran. R

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,522

Hi Rajendran,

Chk this.. it works according to the requirement..


DATA: i_fieldcat TYPE slis_t_fieldcat_alv.
DATA: line_fieldcat TYPE slis_fieldcat_alv.

clear line_fieldcat.
line_fieldcat-fieldname = 'WS_CHAR'.
line_fieldcat-reptext_ddic
= 'Test Field 1234567890123456789012345678901234567890'. " tkes max 55 characters
line_fieldcat-outputlen = '50'. " You can specify the width of a column
APPEND line_fieldcat TO i_fieldcat. " column.

Regards.

Dear Experts,

in alv report for column texts,

PERFORM fcat using '1' 'KUNNR' 'customer number for the company XXXXXXXXX'.

in ouput it's displaying up to some characters like 'customer number'.

i need full text in ouput.

any inputs....

Thanks and Regards,

Thirukumaran. R

9 REPLIES 9
Read only

viquar_iqbal
Active Contributor
0 Likes
1,522

Hi

You need to check the variable lenght in FORM using.......var1 var2 var3

see if the value is coming in the form or not in debugging... if not then change the variable length.

Thanks

Viquar Iqbal

Read only

0 Likes
1,522

hi i have checked in debugging mode, there also it's coming up to some characters only, i need full text to be displayed in ouputt.

Thanks and Regards,

Thirukumaran. R

Read only

0 Likes
1,522

hi i have changed to seltext_l there up to 30 characters are displaying..... i need more characters in ouput.

Thanks and Regards,

Thirukumaran. R

Read only

0 Likes
1,522

Hi,

You can use seltext_l. This can hold upto 40 characters.

Read only

Former Member
0 Likes
1,522

Hi,

Use in you field cat 'SELTEXT_L'

WA_FCAT-SELTEXT_L = 'Vendor Name for an example'.

Thanks,

Krishna

Read only

Former Member
0 Likes
1,522

Hi,

use this field catalog seltext_l (long field label)

for example:

X_FIELDCAT-SELTEXT_M = 'the name u want'.

with regards,

Mamta Kumari

Read only

Former Member
0 Likes
1,522

HI,

Try with the following options..

data: i_fieldcat type slis_t_fieldcat_alv.

data: line_fieldcat type slis_fieldcat_alv.

line_fieldcat-fieldname = ' '.

line_fieldname-ddictxt = 'L'.

line_fieldname-reptext_ddic-FIELDNAME = ' '.

line_fieldname-reptext_ddic-REPTEXT = 'customer number for the company XXXXXXXXX'.

append line_fieldcat to i_fieldcat.

hope it helps.....

Regards.

Read only

Former Member
0 Likes
1,523

Hi Rajendran,

Chk this.. it works according to the requirement..


DATA: i_fieldcat TYPE slis_t_fieldcat_alv.
DATA: line_fieldcat TYPE slis_fieldcat_alv.

clear line_fieldcat.
line_fieldcat-fieldname = 'WS_CHAR'.
line_fieldcat-reptext_ddic
= 'Test Field 1234567890123456789012345678901234567890'. " tkes max 55 characters
line_fieldcat-outputlen = '50'. " You can specify the width of a column
APPEND line_fieldcat TO i_fieldcat. " column.

Regards.

Read only

Former Member
0 Likes
1,522

Hi,

Move space to fieldcat-optimize_width parameter.

Regards,

Raghavendra