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

Field Length problem

Former Member
0 Likes
508

Hello Friends,

I have a small issue regarding ALV display o/p.

I have taken a field and assigned a text to it.

But in the o/p instead of the whole length of the text

only half of the text is getting displayed.

I have declared the field as FLAG(50) TYPE C,

and assigning a text somewhere.

If i increase the lenght , then too the o/p doent show the reflected changes.

So please help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
491

Hi,

In ur fieldcat populate the output length field.

CLEAR x_fieldcat.

x_fieldcat-fieldname = 'FLAG'.

x_fieldcat-seltext_l = 'Text' .

<b> x_fieldcat-outputlen = 30.</b>

x_fieldcat-col_pos = 1.

APPEND x_fieldcat TO it_fieldcat.

4 REPLIES 4
Read only

Former Member
0 Likes
491

Hi Shweta,

Using "Break-point" statement, first you check that field value.

Thanks.

Read only

Former Member
0 Likes
491

Hello,

In the feildcatalog of the field give the

<b>Fieldcat-outputlen= 50 </b>

Vasanth

Read only

Former Member
0 Likes
492

Hi,

In ur fieldcat populate the output length field.

CLEAR x_fieldcat.

x_fieldcat-fieldname = 'FLAG'.

x_fieldcat-seltext_l = 'Text' .

<b> x_fieldcat-outputlen = 30.</b>

x_fieldcat-col_pos = 1.

APPEND x_fieldcat TO it_fieldcat.

Read only

0 Likes
491

Thank you friends...