SAP CLAP_DDB_SHOW_CLASSIFICATION Function Module for Classification API: Maintain Allocations
CLAP_DDB_SHOW_CLASSIFICATION is a standard clap ddb show classification SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Classification API: Maintain Allocations 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 clap ddb show classification FM, simply by entering the name CLAP_DDB_SHOW_CLASSIFICATION 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_SHOW_CLASSIFICATION 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_SHOW_CLASSIFICATION'"Classification API: Maintain Allocations.
EXPORTING
CLASS = "Class
* READONLY_CTMS = ' ' "
OBJECT = "Object
CLASSTYPE = "Class type
* PTABLE = "Physical object table
* OBJECT_EQ_CLASS = ' ' "Object is a class
* WITH_VALUES = 'X' "With value data
* I_LANGU = SY-LANGU "
* I_LOAD_CUSTOMIZING = ' ' "
* I_TABS_ACTIVE = ' ' "
EXCEPTIONS
ALLOCATION_NOT_AVAILABLE = 1 CLASS_NOT_FOUND = 2
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_SHOW_CLASSIFICATION
CLASS - Class
Data type: KLAH-CLASSOptional: No
Call by Reference: No ( called with pass by value option)
READONLY_CTMS -
Data type: RMCLF-KREUZDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT - Object
Data type: KSSK-OBJEKOptional: No
Call by Reference: No ( called with pass by value option)
CLASSTYPE - Class type
Data type: KSSK-KLARTOptional: No
Call by Reference: No ( called with pass by value option)
PTABLE - Physical object table
Data type: TCLAO-OBTABOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT_EQ_CLASS - Object is a class
Data type: RMCLF-KREUZDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_VALUES - With value data
Data type: RMCLF-KREUZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGU -
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LOAD_CUSTOMIZING -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TABS_ACTIVE -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ALLOCATION_NOT_AVAILABLE - No allocations exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CLASS_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLAP_DDB_SHOW_CLASSIFICATION 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_class | TYPE KLAH-CLASS, " | |||
| lv_allocation_not_available | TYPE KLAH, " | |||
| lv_readonly_ctms | TYPE RMCLF-KREUZ, " ' ' | |||
| lv_object | TYPE KSSK-OBJEK, " | |||
| lv_class_not_found | TYPE KSSK, " | |||
| lv_classtype | TYPE KSSK-KLART, " | |||
| lv_ptable | TYPE TCLAO-OBTAB, " | |||
| lv_object_eq_class | TYPE RMCLF-KREUZ, " ' ' | |||
| lv_with_values | TYPE RMCLF-KREUZ, " 'X' | |||
| lv_i_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_i_load_customizing | TYPE SY-BATCH, " SPACE | |||
| lv_i_tabs_active | TYPE SY-BATCH. " SPACE |
|   CALL FUNCTION 'CLAP_DDB_SHOW_CLASSIFICATION' "Classification API: Maintain Allocations |
| EXPORTING | ||
| CLASS | = lv_class | |
| READONLY_CTMS | = lv_readonly_ctms | |
| OBJECT | = lv_object | |
| CLASSTYPE | = lv_classtype | |
| PTABLE | = lv_ptable | |
| OBJECT_EQ_CLASS | = lv_object_eq_class | |
| WITH_VALUES | = lv_with_values | |
| I_LANGU | = lv_i_langu | |
| I_LOAD_CUSTOMIZING | = lv_i_load_customizing | |
| I_TABS_ACTIVE | = lv_i_tabs_active | |
| EXCEPTIONS | ||
| ALLOCATION_NOT_AVAILABLE = 1 | ||
| CLASS_NOT_FOUND = 2 | ||
| . " CLAP_DDB_SHOW_CLASSIFICATION | ||
ABAP code using 7.40 inline data declarations to call FM CLAP_DDB_SHOW_CLASSIFICATION
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 CLASS FROM KLAH INTO @DATA(ld_class). | ||||
| "SELECT single KREUZ FROM RMCLF INTO @DATA(ld_readonly_ctms). | ||||
| DATA(ld_readonly_ctms) | = ' '. | |||
| "SELECT single OBJEK FROM KSSK INTO @DATA(ld_object). | ||||
| "SELECT single KLART FROM KSSK INTO @DATA(ld_classtype). | ||||
| "SELECT single OBTAB FROM TCLAO INTO @DATA(ld_ptable). | ||||
| "SELECT single KREUZ FROM RMCLF INTO @DATA(ld_object_eq_class). | ||||
| DATA(ld_object_eq_class) | = ' '. | |||
| "SELECT single KREUZ FROM RMCLF INTO @DATA(ld_with_values). | ||||
| DATA(ld_with_values) | = 'X'. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_i_langu). | ||||
| DATA(ld_i_langu) | = SY-LANGU. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_load_customizing). | ||||
| DATA(ld_i_load_customizing) | = ' '. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_i_tabs_active). | ||||
| DATA(ld_i_tabs_active) | = ' '. | |||
Search for further information about these or an SAP related objects