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

value change

Former Member
0 Likes
580

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
Read only

Former Member
0 Likes
541
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
Read only

Former Member
0 Likes
541

divide that by 100

v_new = 2.75 div 100.

Read only

Former Member
0 Likes
541

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

Read only

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

V1 = VAL / 100.

 WRITE:/ V1.

check this .

Read only

Former Member
0 Likes
541

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