‎2008 Jun 02 12:30 PM
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
‎2008 Jun 02 12:32 PM
‎2008 Jun 02 12:32 PM
‎2008 Jun 02 12:32 PM
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
‎2008 Jun 02 12:34 PM
check your resultant field ..
it should be like ...
Ex :
parameters : p_dat type PAD_AMT7S. and not a numeric
field ..
‎2008 Jun 02 12:50 PM
Hi,
Declare your third variable as below:-
PARAMETERS: p_third type P Decimals 2.
Reward if useful.
regards,
preet
‎2008 Jun 02 12:53 PM