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

Former Member
0 Likes
684

Hi,

I am having 3 fields in the screen..When i give numeric values for two fields and when i press the button means it want to display the resultant value after diving the two fields..

Now i gave 3 in one field and 10 in another field..That is 3/10..It want to display 0.3

But it is only displaying 0...How to make the display to be 0.3

any one help with sample code..What data type we want to give it in screen and wht to give in program

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
661

Hi,

Declare that 3rd variable as type P decimals 2.

Rgds,

Bujji

5 REPLIES 5
Read only

Former Member
0 Likes
662

Hi,

Declare that 3rd variable as type P decimals 2.

Rgds,

Bujji

Read only

abdulazeez12
Active Contributor
0 Likes
661

The result field should be of type "P" with decimals say 2.

PARAMETERS: P_RESULT type P Decimals 2.

This will resolve ur issue.

Thanks

Read only

Former Member
0 Likes
661

check your resultant field ..

it should be like ...

Ex :

parameters : p_dat type PAD_AMT7S. and not a numeric

field ..

Read only

Former Member
0 Likes
661

Hi,

Declare your third variable as below:-

PARAMETERS: p_third type P Decimals 2.

Reward if useful.

regards,

preet

Read only

Former Member
0 Likes
661

Thanks for your timely help