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

Declare float

flvia_s
Participant
0 Likes
2,248

Hello, experts.

I'm getting the following dumb message error: "g_test must be a character-type field (data type C, N, D, or T)" and g_test type f.

How should I declare this variable? The type f has been used to keep all decimals values.

Thanks in advance.

Flavia

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,099

You should use type P...


g_test TYPE P.

You can add decimals...


g_test TYPE P DECIMALS 5.

Greetings,

Blag.

1 REPLY 1
Read only

Former Member
0 Likes
1,100

You should use type P...


g_test TYPE P.

You can add decimals...


g_test TYPE P DECIMALS 5.

Greetings,

Blag.