Application Development 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: 

regarding field length in alv

Former Member
0 Kudos

hi experts,

i have a small doubt in alv.

In fieldcat i have one field called amount and am defining its length 19.

but actual its length in database is 14.when i tried to display the this amount field using reuse_alv_list_display the data in amount field is showing only 14 digits,but i need to display its total length(even if it is greater than database length).........

correct answers rewarded with maximum points????????????

7 REPLIES 7

Former Member
0 Kudos

Hi Maahi,

Can you show your code?

Regards,

Atish

Former Member
0 Kudos

Hi

Check while preparing Fieldcatalog you are giving length 19 to this amount fields .

For this u have a option of output length in fieldcatalog .

Try this .

Hope this helps .

Praveen

Message was edited by:

praveen parasiya

0 Kudos

in filedcatalog

wa_filedfat-outputlen = 19.

if i increase the length in fieldcatalog level whether this length applicable for data and as well as for text of that field.......... or its is applicable to text of field???????

0 Kudos

field length is not in database.......

it is from some user defined structure...

using this structure am try to display the amount.........

0 Kudos

Hi maahi,

It is just the display length. It will not be applicable to data.

Regards,

Atish

naimesh_patel
Active Contributor
0 Kudos

But if the database doesn't contains the values more than 14 digits how will you get the values like that?

Are you doing some calucalation which can lead to more than 14 digits ?

Regards,

Naimesh Patel

Former Member
0 Kudos

I guess that in 19 spaces you have chance to:

3 thousands separators

1 comma for decimals

1 sign

14 digits

Ex: 123.456.789.012,34-

could be...