Application Development 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: 

value change

Former Member
0 Kudos
137

hi expects,

whatever data i am show in output screen i want to change it.

how is it possible?

example : 2.75

i want to convert into 0.0275.

can any body give the code, how to write? it is urgent

thank you

1 ACCEPTED SOLUTION

Former Member
0 Kudos
98
DATA : VAL TYPE P DECIMALS 2.
DATA : V1 TYPE P DECIMALS 4.
VAL = '2.75'.

V1 = VAL / 100.

 WRITE:/ V1.

check this .

4 REPLIES 4

Former Member
0 Kudos
98

divide that by 100

v_new = 2.75 div 100.

Former Member
0 Kudos
98

hey just to confirn whethr do u want to change iton he screen or in your program ...

for anything which needs screen's interaction u hav to use Dialog programming...

but if it is only the selection screen using select options and parameters then u can directly change the data using different Internal Tables....

so watevr the requiement ... go as per tht...

hope this will help

Thanks ,

Ashwani

Former Member
0 Kudos
99
DATA : VAL TYPE P DECIMALS 2.
DATA : V1 TYPE P DECIMALS 4.
VAL = '2.75'.

V1 = VAL / 100.

 WRITE:/ V1.

check this .

Former Member
0 Kudos
98

Hi Rohit,

it depends on the data u want to convert... is it percentage or amount or qty??

if it is amt then u can use WRITE...CURRENCY... to get the data converted..

if it is percentage or some value then u can directly divide it.. by 10... or 100... or 1000...

if it is quantity then again u can use WRITE... UNIT... to get the data converted..

Reward points if helpful