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: 

Scientific number's displayment

Former Member
0 Kudos

Hello, there.

Is anybodey fammilier with a FM that removes zeros from Exp. form number (type F), meaning get 1.50000000000000000000000E02 and output 1.5E02 ?

Thanks in advance,

Rebeka

1 ACCEPTED SOLUTION

varma_narayana
Active Contributor
0 Kudos

Hi..

Just try this Logic.. It may help u.

REPORT ZSEL_NEW.

DATA : V_FL TYPE F VALUE '1230.0000'.

DATA : V_CH(30).

WRITE V_FL TO V_CH LEFT-JUSTIFIED.

REPLACE ALL OCCURRENCES OF '0' IN V_CH WITH SPACE.

CONDENSE V_CH NO-GAPS.

WRITE:/ V_CH.

<b>REWARD IF HELPFUL.</b>

1 REPLY 1

varma_narayana
Active Contributor
0 Kudos

Hi..

Just try this Logic.. It may help u.

REPORT ZSEL_NEW.

DATA : V_FL TYPE F VALUE '1230.0000'.

DATA : V_CH(30).

WRITE V_FL TO V_CH LEFT-JUSTIFIED.

REPLACE ALL OCCURRENCES OF '0' IN V_CH WITH SPACE.

CONDENSE V_CH NO-GAPS.

WRITE:/ V_CH.

<b>REWARD IF HELPFUL.</b>