cancel
Showing results for 
Search instead for 
Did you mean: 

Removing the Exponential in smartform

Former Member
0 Kudos

Hi All,

I am having a problem in displaying a field in smartform.

The field is type FLTP length 16.

The field has a value 4.4959556000000000E+07 but I want to display the field as 4.4959556.

How can I do it?

Points will be awarded immediately.

Regards,

Nikhil Mogje

Accepted Solutions (1)

Accepted Solutions (1)

former_member609120
Contributor
0 Kudos

Use this Function Module:

  • -- CONVERTING MITTELWERT TO CHAR BEFORE MOVING.

CALL FUNCTION 'FLTP_CHAR_CONVERSION'

EXPORTING

DECIM = QAMV-STELLEN

INPUT = QAMR-MITTELWERT " Field Name

IMPORTING

FLSTR = V_CHAR.

SHIFT V_CHAR LEFT DELETING LEADING SPACE .

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If tabs spaces are defined in paragraph format and paragraph format is called on line items uses tab in keyboard to set tabs in Smartforms for that particular paragraph.

for decimal field use Paragraph format as right aligned...an in tab just define the spacing between two fields...

Former Member
0 Kudos

HI abhijeet,

I want to remove the exponential sign.

Former Member
0 Kudos

assign the value to type P variable and check

Former Member
0 Kudos

Hi,

Try using &itab-fld(E)&, it may help.

Regards,

Narendra.

Former Member
0 Kudos

Hi

Assign the value to type P and then it will automatically removes the exp

regards

Shiva