SAP ABAP Class CL_SALV_STI_AUNIT_ATS_WITH_GRP (unit tests for grouping features)
Hierarchy
SAP_UI (Software Component) User Interface Technology
   BC-WD-CMP-ATS (Application Component) ABAP Table/Tree Services
     SALV_STI (Package) ALV Services for Tables: iTab Services impl.
Properties
Class CL_SALV_STI_AUNIT_ATS_WITH_GRP  
Short Description unit tests for grouping features    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 5   
Package SALV_STI   ALV Services for Tables: iTab Services impl. 
Created 20120403   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)
2 IF_SALV_SERVICE_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no interface implemented.
Friends
Class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_AFTER Constant Protected Type reference (TYPE) Y_INSERT_DIRECTION 'A' 20120403
2 C_BACKWARD Constant Protected Type reference (TYPE) Y_DIRECTION 'B' 20120403
3 C_BEFORE Constant Protected Type reference (TYPE) Y_INSERT_DIRECTION 'B' 20120403
4 C_FORWARD Constant Protected Type reference (TYPE) Y_DIRECTION 'F' 20120403
5 C_SEPARATOR Constant Protected Type reference (TYPE) CHAR1 '|' 20120403
6 GT_TEST_DATA_FIELD_PATH Static Attribute Protected Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_FIELD_PATH 20120403
7 MO_ATS Instance attribute Protected Object reference (TYPE REF TO) IF_SALV_ITAB_SERVICES ALV UI services for internal tables 20120403
8 MO_GROUPED_VIEW Instance attribute Protected Object reference (TYPE REF TO) IF_SALV_ITAB_VIEW_GROUPED_DATA merged view on results of IF_SALV_ITAB_SERVICES 20120403
9 MTS_COLLAPSED_GROUP Instance attribute Protected Attribute reference (LIKE) MTS_VALID_GROUP_LABEL 20120403
10 MTS_IDX_DELETED Instance attribute Protected Attribute reference (LIKE) MTS_IDX_HIDDEN_BY_COLLAPSE 20120403
11 MTS_IDX_HIDDEN_BY_COLLAPSE Instance attribute Protected See coding 20120403
12 MTS_VALID_GROUP_LABEL Instance attribute Protected See coding 20120403
13 MTS_VISIBLE_GROUP Instance attribute Protected Attribute reference (LIKE) MTS_VALID_GROUP_LABEL 20120403
14 MT_GROUPING_RULE Instance attribute Protected Type reference (TYPE) IF_SALV_SERVICE_TYPES=>YT_GROUPING_RULE 20120403
15 MT_TEST_DATA Instance attribute Protected Type reference (TYPE) YT_TEST_DATA 20120403
16 MT_TEST_DATA_BACK Instance attribute Protected Type reference (TYPE) YT_TEST_DATA 20120403
17 M_FILTER_VARIATION Instance attribute Protected Type reference (TYPE) I 20120403
18 M_MAX_ORIG_POS Instance attribute Protected Type reference (TYPE) SYTABIX Index of Internal Tables 20120403
19 M_RESULT_CREATED Instance attribute Protected Type reference (TYPE) ABAP_BOOL 20120403
20 N Constant Protected Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20120403
21 Y Constant Protected Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20120403
Methods
# Method Level Visibility Method type Description Created on
1 ABORT Instance method Protected Method 20120403
2 ASSERT_DIFFERS Instance method Protected Method 20120403
3 ASSERT_EQUALS Instance method Protected Method 20120403
4 CALC_VALID_GROUP_LABELS Instance method Protected Method 20120403
5 CALC_VISIBLE_GROUPS Instance method Protected Method 20120403
6 CHECK_GROUP_SRC_FIELDS Instance method Protected Method 20120403
7 CLASS_SETUP Static method Private Method 20120403
8 DATA Instance method Protected Method define a single test data record 20120403
9 FAIL Instance method Protected Method 20120403
10 FILTER_VARIATION Instance method Protected Method 20120403
11 FIND_GROUP_IDX Instance method Protected Method 20120403
12 FORGET_RESULT Instance method Protected Method 20120403
13 INIT_RESULT Instance method Protected Method 20120403
14 NEXT_FILTER_VARIATION Instance method Protected Method 20120403
15 SETUP Instance method Private Method 20120403
16 SET_GROUPING_RULES Instance method Protected Method define the grouping rules 20120403
17 TEST_COLLAPSE Instance method Protected Method 20120403
18 TEST_DELETE Instance method Protected Method 20120403
19 TEST_EXPAND Instance method Protected Method 20120403
20 TEST_FIND_DATA Instance method Protected Method 20120403
21 TEST_GROUPING Instance method Protected Method test results of grouping service 20120403
22 TEST_INSERT Instance method Protected Method 20120403
23 TEST_MOVE Instance method Protected Method 20120403
Events
Class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 YS_TEST_DATA Protected See coding 20120403 begin of ys_test_data, "auxiliary fields: orig_pos type sytabix, "original position in mt_test_data exp_group_label type string, "expected group as string, levels separated by ';' filter_match type abap_bool, "should the row match the filter? "test data: l1 type string, l2 type string, end of ys_test_data
2 YT_TEST_DATA Protected See coding 20120403 yt_test_data type standard table of ys_test_data with default key
3 Y_DIRECTION Protected See coding 20120403 Y_DIRECTION type C length 1
4 Y_INSERT_DIRECTION Protected See coding 20120403 y_insert_direction type c length 1
Method Signatures

Method ABORT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing MSG Call by reference Type reference (TYPE) STRING 20120403

Method ABORT on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method ASSERT_DIFFERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ACT Value transfer Type reference (TYPE) ANY 20120403
2 Importing EXP Value transfer Type reference (TYPE) ANY 20120403
3 Importing MSG Call by reference Type reference (TYPE) STRING 20120403

Method ASSERT_DIFFERS on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method ASSERT_EQUALS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ACT Value transfer Type reference (TYPE) ANY 20120403
2 Importing EXP Value transfer Type reference (TYPE) ANY 20120403
3 Importing MSG Call by reference Type reference (TYPE) STRING 20120403

Method ASSERT_EQUALS on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method CALC_VALID_GROUP_LABELS Signature

Method CALC_VALID_GROUP_LABELS on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no parameter.
Method CALC_VALID_GROUP_LABELS on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method CALC_VISIBLE_GROUPS Signature

Method CALC_VISIBLE_GROUPS on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no parameter.
Method CALC_VISIBLE_GROUPS on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method CHECK_GROUP_SRC_FIELDS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_DATA Call by reference Type reference (TYPE) YS_TEST_DATA 20120403
2 Importing I_GROUP_LABEL Call by reference Type reference (TYPE) STRING 20120403
3 Importing I_LEVEL Call by reference Type reference (TYPE) I 20120403

Method CHECK_GROUP_SRC_FIELDS on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method CLASS_SETUP Signature

Method CLASS_SETUP on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no parameter.
Method CLASS_SETUP on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing GROUP Call by reference Type reference (TYPE) STRING 20120403
2 Importing L1 Call by reference Type reference (TYPE) YS_TEST_DATA-L1 20120403
3 Importing L2 Call by reference Type reference (TYPE) YS_TEST_DATA-L2 20120403
4 Importing MATCH_FILTER Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20120403

Method DATA on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method FAIL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing MSG Call by reference Type reference (TYPE) STRING 20120403
2 Importing TOLERABLE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20120403

Method FAIL on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method FILTER_VARIATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_VARIATION_EXISTS Call by reference Type reference (TYPE) ABAP_BOOL 20120403
2 Importing I_VARIATION Call by reference Type reference (TYPE) I 20120403

Method FILTER_VARIATION on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method FIND_GROUP_IDX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_GROUP_LABEL Call by reference Type reference (TYPE) STRING 20120403
2 Returning R_TABIX Value transfer Type reference (TYPE) SYTABIX Index of Internal Tables 20120403

Method FIND_GROUP_IDX on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method FORGET_RESULT Signature

Method FORGET_RESULT on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no parameter.
Method FORGET_RESULT on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method INIT_RESULT Signature

Method INIT_RESULT on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no parameter.
Method INIT_RESULT on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method NEXT_FILTER_VARIATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_VARIATION_EXISTS Value transfer Type reference (TYPE) ABAP_BOOL 20120403

Method NEXT_FILTER_VARIATION on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method SETUP Signature

Method SETUP on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no parameter.
Method SETUP on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method SET_GROUPING_RULES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing GROUP_BY Call by reference Type reference (TYPE) STRING grouping columns separated by ';' 20120403
2 Importing SORT Call by reference Type reference (TYPE) STRING sort orders separated by ';' 20120403

Method SET_GROUPING_RULES on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method TEST_COLLAPSE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_GROUP_LABEL Call by reference Type reference (TYPE) STRING 20120403

Method TEST_COLLAPSE on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method TEST_DELETE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ORIG_POSITIONS Call by reference Type reference (TYPE) STRING 20120403

Method TEST_DELETE on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method TEST_EXPAND Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_GROUP_LABEL Call by reference Type reference (TYPE) STRING 20120403

Method TEST_EXPAND on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method TEST_FIND_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DIRECTION Call by reference Type reference (TYPE) Y_DIRECTION 20120403
2 Importing EXPECT Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>Y_ROW_INDEX Index of Internal Tables 20120403
3 Importing START Call by reference Type reference (TYPE) IF_SALV_SERVICE_TYPES=>Y_ROW_INDEX Index of Internal Tables 20120403

Method TEST_FIND_DATA on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method TEST_GROUPING Signature

Method TEST_GROUPING on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no parameter.
Method TEST_GROUPING on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method TEST_INSERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing EXP_GROUP_LABEL Call by reference Type reference (TYPE) STRING 20120403
2 Importing INSERT Call by reference Type reference (TYPE) Y_INSERT_DIRECTION 20120403
3 Importing LINES Call by reference Type reference (TYPE) STRING 20120403
4 Importing POS Call by reference Type reference (TYPE) I result insert position 20120403
5 Importing SRC_POS_TO_USE Call by reference Type reference (TYPE) I overwrites POS for SET_INSERT_POSITION 20120403

Method TEST_INSERT on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.

Method TEST_MOVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing INSERT Call by reference Type reference (TYPE) Y_INSERT_DIRECTION 20120403
2 Importing LINE_INDEX_FROM Call by reference Type reference (TYPE) I 20120403
3 Importing LINE_INDEX_TO Call by reference Type reference (TYPE) I 20120403

Method TEST_MOVE on class CL_SALV_STI_AUNIT_ATS_WITH_GRP has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 732