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

ALV Report, integer field

Former Member
0 Likes
936

Hi all,

I am developing an ALV report. in this report i have an quantity field( integer).

I want to display blank if there is no quantity for a particular record. but since it is an integer field it is showing 0 instead of blank.

Can any one tell me how i can solve this issue.

Regards,

Mukund parekh

1 ACCEPTED SOLUTION
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
715

hi

try like this

Wa_fieldcat-no_zero = 'X'

Thanks & Regards

5 REPLIES 5
Read only

Former Member
0 Likes
715

Hi,

After data retrieval ,Use the Character datatype in field catalogue instead of refering DDIC datatype.

Regards,

Nandha

Read only

Former Member
0 Likes
715

You can do one thing.

Take a field of type STRING. And assign the value in that field and then display the String field.

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
716

hi

try like this

Wa_fieldcat-no_zero = 'X'

Thanks & Regards

Read only

Former Member
0 Likes
715

Not possible. And if you convert it to string/character, you won't be able to summarize the data.

Edit : Sorry my bad. Yes try with no_zero = 'X'.

regards,

Advait

Edited by: Advait Gode on Nov 6, 2008 1:38 PM

Read only

MarcinPciak
Active Contributor
0 Likes
715

You can also set NO_ZERO flag of corresponding field in the field catalog. It will skip all initival values in this column then.