Sort statement?

Answer Posted / shreeshail diggi

This statement sorts an internal table itab. As standard,
numeric and byte-type components are sorted by their value
and character-type components according to their binary
representation code page). Textual sorting of character-
type components is performed using the addition AS TEXT.

Syntax
SORT itab [STABLE]
{ { [ASCENDING|DESCENDING]
[AS TEXT]
[BY {comp1 [ASCENDING|DESCENDING] [AS TEXT]}
{comp2 [ASCENDING|DESCENDING] [AS TEXT]}
... ] }
| { [BY (otab)] } }.

Thank's and Regards,
Shreeshail Diggi
SAP Technical Consultant Infinite India

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are system fields for secondary lists?

607


How to convert normal function module to bapi?

1518


When a program is created and need to be transported to prodn does selection texts always go with it? If not how do you make sure? Can you change the cts entries? How do you do it?

568


Can you print decimals in type n?

565


What are the parameters used in each function?

597






Did you use buffering?

594


What is a sequence of event-triggered in report?

628


Some Realtime Objects on Bdc.

2425


What is modularization and its benefits?

595


What is the first thing you do after vendor setup is complete?

883


What are the functional areas? User groups? And how does abap/4 query work in relation to these?

602


What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?

601


What is time constraint ? : abap hr

692


How can we upload a text file having delimiters in to legacy system?

595


How we can retrieve data using secondary index. Explain with simple example?

610