SAP CLAP_DDB_GET_CLASSTYPES_OBJECT Function Module for
CLAP_DDB_GET_CLASSTYPES_OBJECT is a standard clap ddb get classtypes object SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 clap ddb get classtypes object FM, simply by entering the name CLAP_DDB_GET_CLASSTYPES_OBJECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLFM
Program Name: SAPLCLFM
Main Program: SAPLCLFM
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CLAP_DDB_GET_CLASSTYPES_OBJECT 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 'CLAP_DDB_GET_CLASSTYPES_OBJECT'".
EXPORTING
* SPRAS = SY-LANGU "Language key
OBTAB = "Classifiable object from TCLT
* WITH_TEXT = 'X' "Indicator: read with text
* CLASSTYPE = "Class Type
TABLES
* TYPES = "All class types for object
EXCEPTIONS
NO_CLASSTYPE_FOUND = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCLFM_001 Influences Class and Value Assignment
EXIT_SAPLCLFM_002 Customer Exit for Changing Classification Data Before Saving
EXIT_SAPLCLFM_003 Customer Exit After Check on Assigned Characteristic Values
IMPORTING Parameters details for CLAP_DDB_GET_CLASSTYPES_OBJECT
SPRAS - Language key
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBTAB - Classifiable object from TCLT
Data type: TCLA-OBTABOptional: No
Call by Reference: No ( called with pass by value option)
WITH_TEXT - Indicator: read with text
Data type: RMCLF-KREUZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLASSTYPE - Class Type
Data type: TCLA-KLARTOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CLAP_DDB_GET_CLASSTYPES_OBJECT
TYPES - All class types for object
Data type: API_CLTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_CLASSTYPE_FOUND - No class types found for object
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLAP_DDB_GET_CLASSTYPES_OBJECT 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: | ||||
| lv_spras | TYPE SY-LANGU, " SY-LANGU | |||
| lt_types | TYPE STANDARD TABLE OF API_CLTYPE, " | |||
| lv_no_classtype_found | TYPE API_CLTYPE, " | |||
| lv_obtab | TYPE TCLA-OBTAB, " | |||
| lv_with_text | TYPE RMCLF-KREUZ, " 'X' | |||
| lv_classtype | TYPE TCLA-KLART. " |
|   CALL FUNCTION 'CLAP_DDB_GET_CLASSTYPES_OBJECT' " |
| EXPORTING | ||
| SPRAS | = lv_spras | |
| OBTAB | = lv_obtab | |
| WITH_TEXT | = lv_with_text | |
| CLASSTYPE | = lv_classtype | |
| TABLES | ||
| TYPES | = lt_types | |
| EXCEPTIONS | ||
| NO_CLASSTYPE_FOUND = 1 | ||
| . " CLAP_DDB_GET_CLASSTYPES_OBJECT | ||
ABAP code using 7.40 inline data declarations to call FM CLAP_DDB_GET_CLASSTYPES_OBJECT
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 LANGU FROM SY INTO @DATA(ld_spras). | ||||
| DATA(ld_spras) | = SY-LANGU. | |||
| "SELECT single OBTAB FROM TCLA INTO @DATA(ld_obtab). | ||||
| "SELECT single KREUZ FROM RMCLF INTO @DATA(ld_with_text). | ||||
| DATA(ld_with_text) | = 'X'. | |||
| "SELECT single KLART FROM TCLA INTO @DATA(ld_classtype). | ||||
Search for further information about these or an SAP related objects