Ansicht
Dokumentation

BC430_CHECK_INCLUDE - Check Include and Append Structures

BC430_CHECK_INCLUDE - Check Include and Append Structures

General Data in Customer Master   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Checks whether a structure matches its template and whether it is included or appended in a table. The function module is part of the software for the training course BC430 (ABAP Dictionary).

The following comments pertain to using the function module within the training course BC430.

Input parameters:

  • T_INCLUDE: Name of the participant's Include structure or append structure.
  • M_INCLUDE: Template that is to be compared with T_INCLUDE. For every field in M_INCLUDE there must be a field in T_INCLUDE with the same data type and the same length.
  • T_TAB: Name of the table in which T_INCLUDE is included or appended.
  • INC_TYPE: Type (INCLUDE or APPEND) of T_INCLUDE.

Exceptions:

  • T_INC_NOT_EXIST: The participant's include or append is not available.
  • T_INC_NOT_ACTIVE: The participant's include or append is available but not active.
  • M_INC_NOT_ACTIVE: Template for the include or append is not active. This indicates that the environment used for the exercises has not been set up correctly.
  • T_TAB_NOT_ACTIVE: The participant's table is not active.
  • SYSTEM_INCONSISTENT: Error in the Dictionary interfaces (DDIF_TABL_GET). This exception should never occur.

Results in the ERRORS table:

The results of the comparison are written to the ERRORS table. If ERRORS remains blank, the include or append has been defined and included (or appended) correctly.

Otherwise the name of the participant's include or append is stored in ERRORS-TABNAME and the cause of the error is stored in ERRORS-ERRORS:

  • FIELD_STR: The field structure of T_INCLUDE is not compatible with the template, M_INCLUDE. That is, there is a field in M_INCLUDE that does not have a corresponding field in T_INCLUDE with the same data type and field length.
  • SHOULD_BE_INCLUDE: T_INCLUDE is another Dictionary object, not a structure.
  • SHOULD_BE_APPEND: T_INCLUDE is not an append structure.
  • NOT_INCLUDED: T_INCLUDE is not included in or appended to T_TAB.

To compare the structures T_INCLUDE and M_INCLUDE, the system executes the function module BC430_COMP_AND_FILL. (FILL is set to 'N'). The errors that this function module reports are stored in the TEMP_ERRORS table. To interpret these errors, refer to the documentation on BC430_COMP_AND_FILL.

Example

Notes

The function module can only be used for training purposes.

Further information

The documentation on the report BC430_CHECK.





Parameters

ERRORS
INC_TYPE
M_INCLUDE
TEMP_ERRORS
T_INCLUDE
T_TAB

Exceptions

M_INC_NOT_ACTIVE
SYSTEM_INCONSISTENT
T_INC_NOT_ACTIVE
T_INC_NOT_EXIST
T_TAB_NOT_ACTIVE

Function Group

BC430

Vendor Master (General Section)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 3372 Date: 20240523 Time: 170456     sap01-206 ( 75 ms )