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

problem with numeric field

Former Member
0 Likes
875

hi all,

i have defined a field as numaric

c_unrefunded_sum(9) type n value '000000,00'

but it is giving field value '00000000' in the output

i want output as 6 integers 1 comma 2 decimals

thanku all

6 REPLIES 6
Read only

former_member386202
Active Contributor
0 Likes
827

Hi,

Declare that variable as type p with decimals 2

data : lv_var type p decimals 2.

Regards,

Prashant

Read only

Former Member
0 Likes
827

Hi,

Define the fields as packed type with decimals 2.

regards,

Santosh Thorat

Read only

Former Member
0 Likes
827

if u want comma then use char

Message was edited by:

p498863

Read only

Former Member
0 Likes
827

Hi,

Numeric field will not accept special characters (like, comma, dot etc..)

If comma is required, use define field as CHAR.

Read only

Former Member
0 Likes
827

HI,

Declare that particular field with type P decimals 2.

Cheers,

Bujji

Read only

Former Member
0 Likes
827

hi

i have given as packed decimal but it is giving

ouptut as 0.00

but i want out put as 000000,00

thank u all