how to supress values like 0.0

Question: Hello All, I'm displaying a report in ALV. There I'm getting a values like 0.0, which is type (QUAN/Length:7/Decimal places:1). While I'm building the internal table how to avoid those values which is eq 0. I don't wan to see those ZERO values in ALV. Plz give me a suggestion..Thanks.
_________________
Regards / mfg
Srinu

"Anyone who has never made a mistake has never tried anything new." - Einstein

Answer:
Hi

which type of ALV is it :
Classical LIST ALV
Classical GRID ALV
OOPS ALV ?!?!?!?!

Answer:
Quick answer based on the level of detail would be either don't put those rows in the table in the first place or apply a filter.

Or go and delete the data in the database that has the zero values (no, not really )

Answer:
Hi Adi, Thanks for response. I'm implementing OOPS ALV ( CL_GUI_ALV_GRID ) ...
_________________
Regards / mfg
Srinu

"Anyone who has never made a mistake has never tried anything new." - Einstein

Answer:
Hi ABAPOSAUR, The first option seems to be interesting , Second one is not possible I hope . Can U tell me how to use these filters? Thanks
_________________
Regards / mfg
Srinu

"Anyone who has never made a mistake has never tried anything new." - Einstein

Answer:
Create one more internal table, with all fields same...

Only your concerned field should now be a character field of sufficient lenght.

Now while copying internal table pass blank value when the value is 0.0 or 0.

Make your ALV based on second internal table.

This is how I use to approach this kind of problem. I don't know any better way.

Cheers,
_________________
HCL Technologies
Learn from other's mistake, not your own.

Answer:
don't you declare a field catalog? I usually create my own, since nothing ever matches what the user wants to see...I think I got some of this out of the Delta 4.6 class, or maybe from my 'Controls Technology' book...

DATA: gt_fieldcat TYPE lvc_t_fcat, "field catalog table
wa_fieldcat LIKE LINE OF gt_fieldcat, "single line of above
gs_layout TYPE lvc_s_layo, "Layout table


Now, if you look at the row type LVC_T_FCAT, you'll see that there is a NO_ZERO option.....as part of a robust set of controls that you can set in your program....
......
wa_fieldcat-no_zero = 'X'. "as I recall...haven't done for a while....
......
append wa_fieldcat to gt_fieldcat.

Hope this helps.
_________________
D.

Answer:
Hi Indy_abaper, It is working. I really appreciate U'r great help. Keep it up.
_________________
Regards / mfg
Srinu

"Anyone who has never made a mistake has never tried anything new." - Einstein
Copyright ?2007 - 2008 www.jt77.com