FOREIGN_KEY_CHECK SAP Method Foreign Key Verification
Below is documentation, parameters and attributes of ABAP Method FOREIGN_KEY_CHECK within SAP class CL_GUI_ALV_GRID. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_GUI_ALV_GRID into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method FOREIGN_KEY_CHECK can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method FOREIGN_KEY_CHECK
.| Name | Type | Data Type | Description | Default Value |
| I_ROW_ID | Importing | TYPE INT4 | RowID | |
| E_INVALID | Exporting | TYPE CHAR01 | Invalid Flag | |
| CS_WA | Changing | TYPE ANY | Edited Row | |
| CT_CHECK | Changing | TYPE LVC_T_CHCK | Check table | |
| CT_GOOD_CELLS | Changing | TYPE LVC_T_MODI | Cells Formally Modified Correctly | |
| CT_MOD_CELLS | Changing | TYPE LVC_T_MODI | Modified Cells | |
| CT_MSG | Changing | TYPE LVC_T_MSG1 | Messages |
Exceptions of Method FOREIGN_KEY_CHECK
This method does not have any exceptionsExample ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO CL_GUI_ALV_GRID.
DATA: lv_CS_WA TYPE ANY,
lv_CT_CHECK TYPE LVC_T_CHCK,
lv_CT_GOOD_CELLS TYPE LVC_T_MODI,
lv_CT_MOD_CELLS TYPE LVC_T_MODI,
lv_CT_MSG TYPE LVC_T_MSG1,
lv_E_INVALID TYPE CHAR01,
lv_I_ROW_ID TYPE INT4,
lv_other TYPE c.
CALL METHOD lo_class=>FOREIGN_KEY_CHECK(
EXPORTING
I_ROW_ID = lv_I_ROW_ID
IMPORTING
E_INVALID = lv_E_INVALID
CHANGING
CS_WA = lv_CS_WA
CT_CHECK = lv_CT_CHECK
CT_GOOD_CELLS = lv_CT_GOOD_CELLS
CT_MOD_CELLS = lv_CT_MOD_CELLS
CT_MSG = lv_CT_MSG ).
Links to Related Class(s)
CL_GUI_A...Full list of available SAP object classes
Search for further information about these or an SAP related objects