SAP CNV_21510_T52RELID_DEFINED Function Module for Check if given cluster id is defined in table T52RELID
CNV_21510_T52RELID_DEFINED is a standard cnv 21510 t52relid defined SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check if given cluster id is defined in table T52RELID processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for cnv 21510 t52relid defined FM, simply by entering the name CNV_21510_T52RELID_DEFINED into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV_21510_ANALYS_FUNCT
Program Name: SAPLCNV_21510_ANALYS_FUNCT
Main Program: SAPLCNV_21510_ANALYS_FUNCT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CNV_21510_T52RELID_DEFINED pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CNV_21510_T52RELID_DEFINED'"Check if given cluster id is defined in table T52RELID.
EXPORTING
* P_CLUSTER_NAME = "Name of cluster table
* P_RELID = "Area identifier in cluster table
* P_STRUCT = "Table or structure name in cluster
TABLES
* PT_STRUCT = "Structure for internal tables in function gr. HRPAY99_IMPEXP
EXCEPTIONS
NO_TYPENAME = 1 NO_STRUCTURE = 2 STRUCT_NOT_IN_DDIC = 3
IMPORTING Parameters details for CNV_21510_T52RELID_DEFINED
P_CLUSTER_NAME - Name of cluster table
Data type: CNV_INDX_STRUC-CLUSTER_NAMEOptional: Yes
Call by Reference: Yes
P_RELID - Area identifier in cluster table
Data type: CNV_INDX_STRUC-RELIDOptional: Yes
Call by Reference: Yes
P_STRUCT - Table or structure name in cluster
Data type: CNV_INDX_STRUC-TABSTOptional: Yes
Call by Reference: Yes
TABLES Parameters details for CNV_21510_T52RELID_DEFINED
PT_STRUCT - Structure for internal tables in function gr. HRPAY99_IMPEXP
Data type: CNV_INDX_STRUCOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_TYPENAME - No typename for given RELID
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_STRUCTURE - Given structure is not included in definition of typename for this RELID
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STRUCT_NOT_IN_DDIC - Given structure is included in definition of typename but is not def. in DDIC
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CNV_21510_T52RELID_DEFINED Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lt_pt_struct | TYPE STANDARD TABLE OF CNV_INDX_STRUC, " | |||
lv_no_typename | TYPE CNV_INDX_STRUC, " | |||
lv_p_cluster_name | TYPE CNV_INDX_STRUC-CLUSTER_NAME, " | |||
lv_p_relid | TYPE CNV_INDX_STRUC-RELID, " | |||
lv_no_structure | TYPE CNV_INDX_STRUC, " | |||
lv_p_struct | TYPE CNV_INDX_STRUC-TABST, " | |||
lv_struct_not_in_ddic | TYPE CNV_INDX_STRUC. " |
  CALL FUNCTION 'CNV_21510_T52RELID_DEFINED' "Check if given cluster id is defined in table T52RELID |
EXPORTING | ||
P_CLUSTER_NAME | = lv_p_cluster_name | |
P_RELID | = lv_p_relid | |
P_STRUCT | = lv_p_struct | |
TABLES | ||
PT_STRUCT | = lt_pt_struct | |
EXCEPTIONS | ||
NO_TYPENAME = 1 | ||
NO_STRUCTURE = 2 | ||
STRUCT_NOT_IN_DDIC = 3 | ||
. " CNV_21510_T52RELID_DEFINED |
ABAP code using 7.40 inline data declarations to call FM CNV_21510_T52RELID_DEFINED
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single CLUSTER_NAME FROM CNV_INDX_STRUC INTO @DATA(ld_p_cluster_name). | ||||
"SELECT single RELID FROM CNV_INDX_STRUC INTO @DATA(ld_p_relid). | ||||
"SELECT single TABST FROM CNV_INDX_STRUC INTO @DATA(ld_p_struct). | ||||
Search for further information about these or an SAP related objects