2006 May 09 8:04 AM
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
Hi,
could you provide the code of this sort and the definition of the internal table ?
Rgd
Frédéric
2006 May 09 8:07 AM
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.
2006 May 09 8:08 AM
Hi Rani,
are you sorting only on lbkum. or do you have pre sorted fields.
Regards
vijay
2006 May 09 8:09 AM
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
2006 May 09 8:09 AM
Hi,
could you provide the code of this sort and the definition of the internal table ?
Rgd
Frédéric
2006 May 09 8:11 AM
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>
2006 May 09 8:15 AM
Hi.
you are not sorting with lbkum. then how it will sort.
include that also in your sort criteria
Regards
vijay
2006 May 09 8:16 AM
try this
<b>SORT lt_lbkum BY lgort ASCENDING matnr ASCENDING lbkum ascending.</b>
2006 May 09 8:12 AM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |