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

Sorting problem in ALV Report ( + and - Value sorting)

former_member242166
Participant
0 Likes
986

Hi ABAP experts,

I have one ALV Report . In that Report i Have one column Named 'Days'.  In that days column contains both positive and Negative Value.  When i choose filter on that column and select value as 0 to 10 .  The Output shows negative value also.

Example :

The days column contains the value like 0, 2,4, -4, -6, -20, -11, 10

When i choose 0 to 10 in filter.

The output contains:

0, 2, 4, -4, -6, and 10 Only.     &   -11, -20 Is not coming.

But i dont want -4, -6 value also. I dont want negative value. when i choose 0 to 10.

Why this negative value is coming. What is the problem. Please help me friends.

Thanks and Regards,

Linganathan.K

4 REPLIES 4
Read only

Former Member
0 Likes
657

What is the type of field 'DAYS'? It seems to be issue with the data type.

Read only

0 Likes
657

Dear Soumyasanto Sen,

The data type of DAYS is char.

Thanks and Regards,

Linganathan.K

Read only

0 Likes
657

Please use some numeric data type. Signed value couldn't be recognized in char type.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
657

As already written, use numeric type (here integer) else you will have to manage the adjustment of character an the sort order between numbers, space and minus sign "-"...

Regards,

Raymond