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

Hide Null Quantities on alv

Former Member
0 Likes
1,041

Any idea how to hide null quantities, that is donot display the 000,0000.0000 in the grid?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
955

You have the option

no_zero = 'X' for the Fieldcatalog.

Please use that

Any idea how to hide null quantities, that is donot display the 000,0000.0000 in the grid?

6 REPLIES 6
Read only

Former Member
0 Likes
956

You have the option

no_zero = 'X' for the Fieldcatalog.

Please use that

Read only

Former Member
0 Likes
955

Hi!

Move the Particular field into a character type field and then display it...in that case the zeros won't get displayed when the value is null as the initial value for the character type data is Spaces rather than zeros.

Regards.

Read only

Former Member
0 Likes
955

either set no_zero = 'X' in field catalog or make the field of type string.. and before passing check the value is initial or not. if its initial do not pass it.

Read only

0 Likes
955

dear

Pls check this code snippet

<

s_field-col_pos = 5.

s_field-fieldname = 'WBS_ELEMENT'.

s_field-reptext = 'WBS ELEMENT'.

s_field-outputlen = 30.

s_field-edit = 'X'.

s_field-no_zero = 'X'.

APPEND s_field TO t_field.

CLEAR s_field.

>

Thanks and regards

suresh kumar kollapuri

Read only

0 Likes
955

if your query got solution please close this thread

Suresh kumar Kollapuri

Read only

Former Member
0 Likes
955

Use this setting in the field catalog


wa_fieldcat-no_zero = 'X'.

Regards,

Vikranth