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

data type in alv grid

Former Member
0 Likes
1,387

Hi,

I have editable field in grid in which I want to put some number. The field type is p decimals 1. If I put there number 5 or 5,0 I got finally value 0,5. To get 5 I must put there 50. I should I do to get correct value, after putting 5 I want to receive 5,0?

Regards

Joanna

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
976

S you are using type P with decimals 1.

Set:

DECIMALS_O = '1'.

Dont use *DECMLFIELD * field.With this if shoulf work.

Regards,

Gurpreet

Thanks Gurpreet, could you tell me which value exactly should bein this field?

J.

4 REPLIES 4
Read only

Former Member
0 Likes
976

Use Field caltlog field.

DECIMALS_O -->Number of decimal places for output

DECMLFIELD -->Field name with DECIMALS specification

Use these field while building field catlog for alv.

Regards,

Gurpreet

Read only

0 Likes
976

Thanks Gurpreet, could you tell me which value exactly should bein this field?

J.

Read only

Former Member
0 Likes
977

S you are using type P with decimals 1.

Set:

DECIMALS_O = '1'.

Dont use *DECMLFIELD * field.With this if shoulf work.

Regards,

Gurpreet

Read only

0 Likes
976

Decimals_o doesn't change anything but use field DECIMALS = '1' in field catolog solved my problem.

Gurpreet, thanks for idea.

regards

Joanna