Ansicht
Dokumentation
BC430_COMP_AND_FILL - Copy Comparison of Table Structures and Data
ROGBILLS - Synchronize billing plans BAL Application Log DocumentationThis documentation is copyright by SAP AG.
Functionality
Compares two tables. This function module is part of the course software for the training course BC430 (ABAP Dictionary).
A table, T_TAB is compared to a model table. The table T_TAB is compatible with M_TAB, if there is a matching field in T_TAB (same key ID, same data type, length, and number of decimal places) for every field in M_TAB. If a combination of key ID, data type, length, and number of decimal places occurs n times in M_TAB, T_TAB must also contain at least n such fields. If the tables are compatible, the fields in M_TAB are assigned to the fields in T_TAB and the data from M_TAB can be copied to the corresponding fields in T_TAB. No error occurs if T_TAB contains additional fields; these fields simply remain initial after the copying has taken place.
The following comments pertain to using the function module within the training course BC430.
Input parameters:
- M_TAB: Name of the predefined table.
- T_TAB: Name of the participant's table.
- FILL: Indicates whether or not the data from M_TAB should be transported to T_TAB.
Exceptions:
T_TAB_NOT_EXIST: The participant's table is not available.
T_TAB_NOT_ACTIVE: The participant's table is not active.
M_TAB_NOT_ACTIVE: Model table is not active. This indicates that the environment used for the exercises has not been set up correctly.
SYSTEM_INCONSISTENT: Error in the Dictionary interfaces (DDIF_TABL_GET). This exception should never occur.
Results in the ERRORS table:
Theresults of the comparison are written to the ERRORS table. If ERRORS remains blank, the participant's table is compatible. Otherwise, the name of the participant's table is stored in ERRORS-TABNAME; the cause of the error is stored in ERRORS-ERROR:
KEY_TOO_SMALL: T_TAB has fewer key fields than M_TAB.
KEY_TOO_BIG: T_TAB has more key fields than M_TAB.
FIELD: At least one of the fields in the table M_TAB has no corresponding field in the table M_TAB. The name of this field is stored in ERRORS-FIELDNAME.
KEY: A key field in the table M_TAB has no corresponding field in the table T_TAB. The name of this field is stored in ERRORS-FIELDNAME.
Notes
This function module can only be used for training purposes.
Further information
Documentation on the Report BC430_CHECK.
Parameters
ERRORSFILL
M_TAB
T_TAB
Exceptions
M_TAB_NOT_ACTIVESYSTEM_INCONSISTENT
T_TAB_NOT_ACTIVE
T_TAB_NOT_EXIST
Function Group
BC430ABAP Short Reference BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 2997 Date: 20240523 Time: 174306 sap01-206 ( 57 ms )