Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Zeroes in text file

Hi guys my problem is,

I have a struct which has the foll component of type c(7).

z_rate(7) type c.

I need to download this to a text file in a way that it shows just two decimal places but doesn not condense the rest of the space.

eg

11.00 nextvalNEXTVAL.....and so forth

at the moment the txt file appears like this

11.0000nextvalNEXTVAL.....and so forth

I am passing value to z_rate like this

data:source(4) type p dec 4.

buffer(4) type p dec 2.

buffer = source.

z_rate = buffer.

append struct.

Please advise.

Points assured

Tags:
Former Member
replied

It looks ok.. May be you are not clearing the existing contents of the Z_RATE.

data:source(4) type p dec 4.
buffer(4) type p dec 2.

clear z_rate.
buffer = source.
z_rate = buffer.
append struct.

Regards,

Naimesh Patel

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question