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

Former Member
0 Likes
1,411

Hi All,

I need to generate an ALV report, but the lines should be listed sometimes with zeros (when the value is zero) and sometimes with blanks. I have another column to check if it should list blank or zero.

Follow an example:

" " this line it should list 'Value' field with the BLANKS

0,00 this line it should list 'Value' field with the ZEROS

Thanks in advance,

Janete

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,132

Decalre the field of type character and add some logic in your code.

I dont think that the built in functionalities will not help you in such conditions.

6 REPLIES 6
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,133

Decalre the field of type character and add some logic in your code.

I dont think that the built in functionalities will not help you in such conditions.

Read only

Former Member
0 Likes
1,132

Janete Okuma ,

Add a simple logic in the code to find out what is stored in the field VALUE.

For ex:

If value is initial.

move space to value.

elseif value CO '0'.

move c_zero to value.

else.

  • dont change the contents

endif.

Regards,

Vikram.M

Read only

Former Member
0 Likes
1,132

Hi Janete Okuma ,

You can handel your requirement in code logic , while filling the internal table.

You need to decide the condition for decision and use IF statement.

Hope this resolves your issue.

Read only

Former Member
0 Likes
1,132

hi ,

For field '' '' & '0' you can check ....at the time of filling the data into internal table

if field is initial  or field EQ '0'.
else .
append in internal table.
 endif.

regards

Gaurav

Read only

0 Likes
1,132

We use Crystal Reports since a couple of years now with satisfaction. Only one question:

We want to show all projects with hours (also zero) but we can see only the projects where hours are been booked.

It makes sense but we must manually check the projects where hours have been booked but perhaps must be booked (sorry for my bad grammatical English)

Is there a code/formula where we can also see the projects where the hours supposed to be u201C0u201D (zero).

Kind regards,

Ivonne

Read only

Former Member
0 Likes
1,132

This issue has not been solved yet.

Maybe I have not explained correctly. It is an ALV report, similar to FC10 with several levels (tree).

I am using NO_ZERO, but it is necessary to print space in header levels and zero in detail levels.

The problem is that with NO_ZERO detail lines are printed with space.

And I can´t create this column as a character, because this column should be summarized.

Anyway, thanks everybody.