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

SORT problem

Former Member
0 Likes
824

i have field zlbkum in itab

zlbkum like mseg-lbkum (quan 13,3)

i made sort ascending and i have

100

99

88

and in the middle apper 200 why he did not did sort to this

8 REPLIES 8
Read only

Former Member
0 Likes
794

Hi rani,

1. In case of ascending it will sort

88,99,100

2. In case of descedning

100,99,88

3. In which part are u stuck for 200?

regards,

amit m.

Read only

Former Member
0 Likes
794

Hi Rani,

are you sorting only on lbkum. or do you have pre sorted fields.

Regards

vijay

Read only

Former Member
0 Likes
794
as it is number field it will sort accoring to the numbers only

so user CONVERSION_EXIT_ALPHA_INPUT for that

loop at it_lbkum.
  
   CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
   EXPOTING
        input = it_lbkum-lbkum
   importing
        output = it_lbkum-lbkum

 <b>  sort it_lbkum by lbkum</b>

   CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPOTING
        input = it_lbkum-lbkum
   importing
        output = it_lbkum-lbkum

endloop.

Is ur problem solved??

Message was edited by: Sekhar

Read only

FredericGirod
Active Contributor
0 Likes
794

Hi,

could you provide the code of this sort and the definition of the internal table ?

Rgd

Frédéric

Read only

0 Likes
794

SORT lt_lbkum BY lgort ASCENDING matnr ASCENDING.

this is the code

in the table it apear

lgort matnr lbkum

10 11111 10

10 11111 9

10 11111 8

<b>10 11111 15</b>

Read only

0 Likes
794

Hi.

you are not sorting with lbkum. then how it will sort.

include that also in your sort criteria

Regards

vijay

Read only

0 Likes
794

try this

<b>SORT lt_lbkum BY lgort ASCENDING matnr ASCENDING lbkum ascending.</b>

Read only

Former Member
0 Likes
794

HI

GOOD

CAN YOU GIVE SOME MORE CLARIFICATION ABOUT YOUR REQUIREMENT AND I HOPE I CAN GIVE YOU SOME MORE DETAILS AFTER THAT.

THANKS

MRUTYUN