2010 Oct 27 6:26 AM
Hi folks,
I am using Reuse_ALV_list_display along with structure. In the structure for Menge field display i want BLANK space when quantity is ZERO. Im getting 0.000 or 0 for ZERO, i want blank space to be displayed instead of zeros...I dont know what data element i can give so that in my structure i maintain MENGE field instead of quan datatype.
Thanks.
2010 Oct 27 7:35 AM
For this u ll have to use char type....
but when there is some value u ll have to typecast that value from quantity to char....
Hi folks,
I am using Reuse_ALV_list_display along with structure. In the structure for Menge field display i want BLANK space when quantity is ZERO. Im getting 0.000 or 0 for ZERO, i want blank space to be displayed instead of zeros...I dont know what data element i can give so that in my structure i maintain MENGE field instead of quan datatype.
Thanks.
2010 Oct 27 7:35 AM
For this u ll have to use char type....
but when there is some value u ll have to typecast that value from quantity to char....
2010 Dec 07 4:05 AM
2010 Dec 07 4:58 AM
Hi!
Did you use fieldcat ?
If you use fieldcat. Do as following:
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_STRUCTURE_NAME = 'SPFLI'
CHANGING
CT_FIELDCAT = GT_FIELDCAT.
LOOP AT GT_FIELDCAT INTO GS_FIELDCAT .
CASE GS_FIELDCAT-FIELDNAME .
WHEN 'CARRID'.
(Some properties was set here)
GS_FIELDCAT-NO_ZERO = 'X'. " Example
END CASE.
END LOOP.
Then Zero field will display as blank.
Thanks & Regard!
huandv