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 is a multiple line field?

820


Why do we use Abstract classes give an example from your project?

1134


Can we use transfer dataset to transfer data in internal table ?

1906


I am uploading 100 records out of which say 59th record has error so what will happen if I am using synchronous or asynchronous method of bdc? Can we update the database using local update mode how? : abap bdc

3102


What is buffering allowed but switched off?

1094


What are the uses of table pool or table cluster.

743


What are the events in screen programming?

896


How do you work with semi colon se[arated files in BDC ?

1722


What is an update type with reference to a match code id?

785


How do you use structures in the abap programs?

836


What are local objects?

836


What is alv programming in abap? When is this grid used in abap? : abap hr

952


What is the tcode to create indexes?

820


How can we handle table control in bdc? : abap bdc

838


can any one answer these questions 1)How do you convert non-character field to character field? 2)How do you work with semi colon separated files? 3)why cant we use normal function module for data transfer? 4)what is the structure of CTU-PARAMS? 5)can we use transfer dataset to transfer data in internal table?

1805