Application Development and Automation 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: 
Read only

MENGE...ALV...STRUCTURE..BLANK

Former Member
0 Likes
715

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
660

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.

3 REPLIES 3
Read only

Former Member
0 Likes
661

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....

Read only

Former Member
0 Likes
660

closed

Read only

Former Member
0 Likes
660

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