SAP BAPI_CLASS_GET_CHARACTERISTICS Function Module for Import Characteristics and Allowed Values for Class
BAPI_CLASS_GET_CHARACTERISTICS is a standard bapi class get characteristics SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Import Characteristics and Allowed Values for Class 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 bapi class get characteristics FM, simply by entering the name BAPI_CLASS_GET_CHARACTERISTICS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLBP
Program Name: SAPLCLBP
Main Program: SAPLCLBP
Appliation area: M
Release date: 17-Apr-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_CLASS_GET_CHARACTERISTICS 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 'BAPI_CLASS_GET_CHARACTERISTICS'"Import Characteristics and Allowed Values for Class.
EXPORTING
CLASSNUM = "Class
CLASSTYPE = "Class Type
* LANGU_ISO = "ISO Language Key
* LANGU_INT = "Internal Language Key
* KEY_DATE = SY-DATUM "Validity Time
* WITH_VALUES = 'X' "Find Allowed Values
IMPORTING
RETURN = "Return Parameters for Messages
TABLES
CHARACTERISTICS = "Chars with Attributes
CHAR_VALUES = "Allowed Values for Characteristics
IMPORTING Parameters details for BAPI_CLASS_GET_CHARACTERISTICS
CLASSNUM - Class
Data type: BAPI_CLASS_KEY-CLASSNUMOptional: No
Call by Reference: No ( called with pass by value option)
CLASSTYPE - Class Type
Data type: BAPI_CLASS_KEY-CLASSTYPEOptional: No
Call by Reference: No ( called with pass by value option)
LANGU_ISO - ISO Language Key
Data type: BAPI_LANGUAGE-LANGUAGE_ISOOptional: Yes
Call by Reference: No ( called with pass by value option)
LANGU_INT - Internal Language Key
Data type: BAPI_LANGUAGE-LANGUAGE_INTOptional: Yes
Call by Reference: No ( called with pass by value option)
KEY_DATE - Validity Time
Data type: BAPI_KEY_DATE-KEY_DATEDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_VALUES - Find Allowed Values
Data type: BAPI_WITH_VALUES-WITH_VALDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_CLASS_GET_CHARACTERISTICS
RETURN - Return Parameters for Messages
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_CLASS_GET_CHARACTERISTICS
CHARACTERISTICS - Chars with Attributes
Data type: BAPI_CHAROptional: No
Call by Reference: No ( called with pass by value option)
CHAR_VALUES - Allowed Values for Characteristics
Data type: BAPI_CHAR_VALUESOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_CLASS_GET_CHARACTERISTICS 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_return | TYPE BAPIRETURN1, " | |||
| lv_classnum | TYPE BAPI_CLASS_KEY-CLASSNUM, " | |||
| lt_characteristics | TYPE STANDARD TABLE OF BAPI_CHAR, " | |||
| lv_classtype | TYPE BAPI_CLASS_KEY-CLASSTYPE, " | |||
| lt_char_values | TYPE STANDARD TABLE OF BAPI_CHAR_VALUES, " | |||
| lv_langu_iso | TYPE BAPI_LANGUAGE-LANGUAGE_ISO, " | |||
| lv_langu_int | TYPE BAPI_LANGUAGE-LANGUAGE_INT, " | |||
| lv_key_date | TYPE BAPI_KEY_DATE-KEY_DATE, " SY-DATUM | |||
| lv_with_values | TYPE BAPI_WITH_VALUES-WITH_VAL. " 'X' |
|   CALL FUNCTION 'BAPI_CLASS_GET_CHARACTERISTICS' "Import Characteristics and Allowed Values for Class |
| EXPORTING | ||
| CLASSNUM | = lv_classnum | |
| CLASSTYPE | = lv_classtype | |
| LANGU_ISO | = lv_langu_iso | |
| LANGU_INT | = lv_langu_int | |
| KEY_DATE | = lv_key_date | |
| WITH_VALUES | = lv_with_values | |
| IMPORTING | ||
| RETURN | = lv_return | |
| TABLES | ||
| CHARACTERISTICS | = lt_characteristics | |
| CHAR_VALUES | = lt_char_values | |
| . " BAPI_CLASS_GET_CHARACTERISTICS | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_CLASS_GET_CHARACTERISTICS
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 CLASSNUM FROM BAPI_CLASS_KEY INTO @DATA(ld_classnum). | ||||
| "SELECT single CLASSTYPE FROM BAPI_CLASS_KEY INTO @DATA(ld_classtype). | ||||
| "SELECT single LANGUAGE_ISO FROM BAPI_LANGUAGE INTO @DATA(ld_langu_iso). | ||||
| "SELECT single LANGUAGE_INT FROM BAPI_LANGUAGE INTO @DATA(ld_langu_int). | ||||
| "SELECT single KEY_DATE FROM BAPI_KEY_DATE INTO @DATA(ld_key_date). | ||||
| DATA(ld_key_date) | = SY-DATUM. | |||
| "SELECT single WITH_VAL FROM BAPI_WITH_VALUES INTO @DATA(ld_with_values). | ||||
| DATA(ld_with_values) | = 'X'. | |||
Search for further information about these or an SAP related objects