Ansicht
Dokumentation
BC430_INDX_COMP - BC430: Comparison of Two Indexes
General Data in Customer Master ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
Functionality
Compares two indexes. This function module is part of the course software for the course BC430 (ABAP Dictionary).
The following comments pertain to the use of the function module within the BC430 environment. The system compares a predefined index with one created by a course participant during an exercise.
Input parameter:
- M_TAB: Name of the predefined table.
- M_IND: Index ID of the predefined index.
- T_TAB: Name of the participant's table.
- T_IND: Index ID of the participant's index.
Exceptions:
- T_INDX_NOT_ACTIVE: The participant's index is available but not activated.
- T_INDX_NOT_EXIST: The participant's index is not available.
- SYSTEM_INCONSISTENT: Error in the Dictionary interface (DDIF_INDX_GET). This exception should not occur.
- M_INDX_NOT_ACTIVE: The index of the template is not active or not available. This indicates that the course environment has not been set up correctly.
Results returned in the ERRORS table:
The results of the comparison are written to the ERRORS table. If ERRORS is blank, the two indexes match. Otherwise the name of the participant's table is stored in ERRORS-TABNAME; the ID of the participant's index; and the cause of the error is stored in ERRORS-ERROR:
- UNIQUE_FLAG: Flag for unique index does not match.
- DB_STATE: Information for creating the index in the database is different.
- DB_LIST: Both indexes are not unique and should only be created in the specified database. The information about the database systems in which the index is to be created is not identical, however. The selection list and exclusion list of the two indexes will be analyzed to determine the database systems the index is to be created.
- FIELD_NUMBER: The number of fields in the two indexes is not identical.
- WRONG_FIELDS: At least one field in the participant's index is differently typed (data type, length, or number of decimal places) than all the fields in the template index.
- WRONG_ORDER: Both indexes have the same number of fields and the fields of the two indexes can be mapped one-to-one to an identically-typed (data type, length, and number of decimal places) field in the other index. However, this mapping would change the field sequence.
In all cases of error, ERRORS-HINT contains the correct value - that is, the value from the technical settings of the M_TAB table, along with a not on the cause of the error.
Example
Notes
This function module can only be used for training purposes.
Further information
Documentation on the Report BC430_CHECK.
Parameters
ERRORSM_IND
M_TAB
T_IND
T_TAB
Exceptions
M_INDX_NOT_ACTIVESYSTEM_INCONSISTENT
T_INDX_NOT_ACTIVE
T_INDX_NOT_EXIST
Function Group
BC430BAL_S_LOG - Application Log: Log header data Vendor Master (General Section)
This documentation is copyright by SAP AG.
Length: 3481 Date: 20240523 Time: 151939 sap01-206 ( 60 ms )