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
723

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
679

HI ,

Whats the type of Field - DAYS u have used in ur program.

Try to use TYPE  P for DAYS Field.It will solve ur problem.

Thanks

Tarak

Read only

former_member184675
Active Participant
0 Likes
679

Hi,

Your days field is probably of type char.

Change it to type INT4 or something numeric.

Best regards,

Andrei

Read only

Former Member
0 Likes
679

This message was moderated.

Read only

Former Member
0 Likes
679

Hi,

     What is the data type you used for storing the days value in the internal table?

Regards,

Athreya