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: 

field length in alv

Former Member
0 Kudos

hi,

if we increase the length of field using <b>outputlen</b> with fieldcatalog.

if i do it that length is applicable for data as well as for text.......

example:

balance(17).

but with this balance field i want to display amount more than 17 characters....

is it possible with ouputlen option of fieldcatalog........

7 REPLIES 7

naimesh_patel
Active Contributor
0 Kudos

Yes,

You can do it with the OUTPUTLEN.

FCAT-OUTPUTLEN = 25.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Maahi,

OUTPUTLEN just increase the display length. You can not display amount more than 17 characters as the varibale itself can't store that.

Regards,

Atish

0 Kudos

how to solve this problem........

i have to display more than 17 characters.........

is there any solution to handle this suitation...

0 Kudos

Increase the length of the variable itself. It is just simple if the variable is defined to store only 17 characters how can it will store 18 character value. The only way is change the variable defination.

Regards,

Atish

0 Kudos

move that field to some bigger variable. and display that bigger variable.

Say,

data: amt(32) type p decimals 2.

than

itab-amt = itab-balance.
modify Itab

Dispaly itab-AMT instead of the itab-BALANCE.

Regards,

Naimesh Patel

0 Kudos

hi when i tried to display with alv grid display it is displaying.

but i need to use only alv list display...........

0 Kudos

For that BALANCE you need to set the OUTPUTLEN = 25.

Regards,

Naimesh Patel