SAP ABAP Class CL_SALV_RANGE_TOOLS (tools for handling index range tables (see documentation))
Hierarchy
SAP_UI (Software Component) User Interface Technology
   BC-WD-CMP-ATS (Application Component) ABAP Table/Tree Services
     SALV_ST_PUB (Package) ALV Services for Tables: Public API
Properties
Class CL_SALV_RANGE_TOOLS  
Short Description tools for handling index range tables (see documentation)    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SALV_ST_PUB   ALV Services for Tables: Public API 
Created 20100727   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_SALV_RANGE_TOOLS has no interface implemented.
Friends
Class CL_SALV_RANGE_TOOLS has no friend class.
Attributes
Class CL_SALV_RANGE_TOOLS has no attribute.
Methods
# Method Level Visibility Method type Description Created on
1 ADD_INDEX_TO_RANGE_TAB Static method Public Method 20120327
2 ADD_TO_RANGE_TAB Static method Public Method calculates the union of two ranges 20110406
3 APPLY_MAP_TO_INDEX Static method Public Method 20120709
4 APPLY_MAP_TO_INDEXES Static method Public Method 20120709
5 APPLY_MAP_TO_RANGES Static method Public Method 20120709
6 CHECK_RANGE_MAP_CONSISTENCY Static method Public Method Checks if a range map is consistent (see documentation) 20110412
7 CHECK_RANGE_TAB_NORMALIZED Static method Public Method Checks if a range table is normalized (see documentation) 20101108
8 CONVERT_INDEXES_TO_RANGES Static method Public Method Converts table of indexes into range table 20100727
9 CONVERT_RANGES_TO_INDEXES Static method Public Method Converts range table into table of indexes 20101108
10 COUNT_SIZE_OF_RANGE_TAB Static method Public Method Determines the number of indexes in a range table 20101108
11 INVERT_RANGE_TAB Static method Public Method Calculates the complement of a give range table 20110406
12 IS_INDEX_IN_RANGE_TAB Static method Public Method 20120217
13 SORT_AND_MERGE_ADJACENT_RANGES Static method Public Method 20120327
14 SUBTRACT_FROM_RANGE_TAB Static method Public Method calculates the difference between two ranges 20110406
Events
Class CL_SALV_RANGE_TOOLS has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 YS_INDEX_RANGE Public Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YS_RANGE 20120709
2 YS_RANGE_MAP Public Type reference (TYPE) IF_SALV_ITAB_CHANGE_LOG=>YS_RANGE_MAP 20120709
3 YT_INDEX Public Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_ROW_INDEX 20120709
4 YT_INDEX_RANGE Public Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE 20120709
5 YT_RANGE_MAP Public Type reference (TYPE) IF_SALV_ITAB_CHANGE_LOG=>YT_RANGE_MAP 20120709
6 Y_INDEX Public Type reference (TYPE) IF_SALV_SERVICE_TYPES=>Y_ROW_INDEX Index of Internal Tables 20100727
Method Signatures

Method ADD_INDEX_TO_RANGE_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_NORMALIZED_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE 20120327
2 Importing I_INDEX Call by reference Type reference (TYPE) Y_INDEX 20120327
# Exception Resumable Description Created on
1 CX_SALV_ILLEGAL_RANGE_TABLE 20120327

Method ADD_TO_RANGE_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_NORMALIZED_RANGE_B Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE range table to be added and receiving result 20110406
2 Importing IT_NORMALIZED_RANGE_A Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE range table to be added 20110406
# Exception Resumable Description Created on
1 CX_SALV_ILLEGAL_RANGE_TABLE 20110406

Method APPLY_MAP_TO_INDEX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_RANGE_MOVE_MAP Call by reference Type reference (TYPE) IF_SALV_ITAB_CHANGE_LOG=>YT_RANGE_MAP 20120711
2 Changing X_INDEX Call by reference Type reference (TYPE) I 20120711

Method APPLY_MAP_TO_INDEX on class CL_SALV_RANGE_TOOLS has no exception.

Method APPLY_MAP_TO_INDEXES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_RANGE_MOVE_MAP Call by reference Type reference (TYPE) IF_SALV_ITAB_CHANGE_LOG=>YT_RANGE_MAP 20120711
2 Changing XT_INDEX Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_ROW_INDEX 20120711

Method APPLY_MAP_TO_INDEXES on class CL_SALV_RANGE_TOOLS has no exception.

Method APPLY_MAP_TO_RANGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_RANGE_MOVE_MAP Call by reference Type reference (TYPE) IF_SALV_ITAB_CHANGE_LOG=>YT_RANGE_MAP 20120711
2 Changing XT_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE 20120711

Method APPLY_MAP_TO_RANGES on class CL_SALV_RANGE_TOOLS has no exception.

Method CHECK_RANGE_MAP_CONSISTENCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_DELETED_NORMALIZED Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE 20110412
2 Importing IT_INSERTED_NORMALIZED Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE 20110412
3 Importing IT_RANGE_MAP Call by reference Type reference (TYPE) IF_SALV_ITAB_CHANGE_LOG=>YT_RANGE_MAP 20110412
4 Importing I_MAXIMUM_INDEX Call by reference Type reference (TYPE) Y_INDEX maximum possible table index 20110412
# Exception Resumable Description Created on
1 CX_SALV_ILLEGAL_RANGE_MAP 20110412

Method CHECK_RANGE_TAB_NORMALIZED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE range table to be checked 20101108
2 Importing I_MAXIMUM_INDEX Call by reference Type reference (TYPE) Y_INDEX -1 maximum possible table index 20110412
# Exception Resumable Description Created on
1 CX_SALV_ILLEGAL_RANGE_TABLE Illegal values in range table 20101108

Method CONVERT_INDEXES_TO_RANGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE 20100728
2 Importing IT_SORTED_INDEX Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_ROW_INDEX must be sorted ascending 20100728
# Exception Resumable Description Created on
1 CX_SALV_INDEX_TABLE_NOT_SORTED 20100727

Method CONVERT_RANGES_TO_INDEXES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_SORTED_INDEX Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_ROW_INDEX 20101108
2 Importing IT_NORMALIZED_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE 20101108
# Exception Resumable Description Created on
1 CX_SALV_ILLEGAL_RANGE_TABLE Illegal values in range table 20110406

Method COUNT_SIZE_OF_RANGE_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_NORMALIZED_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE range table 20101108
2 Returning R_COUNT Value transfer Type reference (TYPE) SYTABIX number of indexes in it_range 20101108
# Exception Resumable Description Created on
1 CX_SALV_ILLEGAL_RANGE_TABLE Illegal values in range table 20110406

Method INVERT_RANGE_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_INVERTED_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE inverted range table 20110406
2 Importing IT_NORMALIZED_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE range table to be inverted 20110406
3 Importing I_MAXIMUM_INDEX Call by reference Type reference (TYPE) Y_INDEX maximum possible table index 20110406
# Exception Resumable Description Created on
1 CX_SALV_ILLEGAL_RANGE_TABLE 20110406

Method IS_INDEX_IN_RANGE_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_NORMALIZED_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE 20120217
2 Importing I_INDEX Value transfer Type reference (TYPE) Y_INDEX 20120217
3 Returning R_IS_IN_RANGE Value transfer Type reference (TYPE) ABAP_BOOL 20120217

Method IS_INDEX_IN_RANGE_TAB on class CL_SALV_RANGE_TOOLS has no exception.

Method SORT_AND_MERGE_ADJACENT_RANGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_RANGE Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE 20120327
# Exception Resumable Description Created on
1 CX_SALV_ILLEGAL_RANGE_TABLE 20120327

Method SUBTRACT_FROM_RANGE_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_NORMALIZED_RANGE_B Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE range table to be subtracted from 20110406
2 Importing IT_NORMALIZED_RANGE_A Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_RANGE range table to be subtracted 20110406
# Exception Resumable Description Created on
1 CX_SALV_ILLEGAL_RANGE_TABLE 20110406
History
Last changed by/on SAP  20130531 
SAP Release Created in 703