Ansicht
Dokumentation

ABENSORT_STABLE_ABEXA - SORT STABLE ABEXA

ABENSORT_STABLE_ABEXA - SORT STABLE ABEXA

BAL Application Log Documentation   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Sorting Internal Tables

This example demonstrates how internal tables are sorted using SORT itab.

Source Code

Execute

Description

The program sorts a standard table with one key field four times. First, the table is sorted twice by the key field (land) without the STABLE addition. The sort is unstable. The order of lines in which multiple keys appear can change. The same sort is then performed using the STABLE addition. The sort is stable. The lines remain in the same sequence. Then, it is sorted by a sort key defined as land and weight. The general sort order is defined as descending, but for weight it is defined as ascending.






General Material Data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 906 Date: 20240419 Time: 121631     sap01-206 ( 25 ms )