SAP CLFM_CHECK_STRUCTURE Function Module for









CLFM_CHECK_STRUCTURE is a standard clfm check structure 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 clfm check structure FM, simply by entering the name CLFM_CHECK_STRUCTURE 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 CLFM_CHECK_STRUCTURE 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 'CLFM_CHECK_STRUCTURE'"
EXPORTING
CLASSTYPE = "Class type
OCLASS = "Superior class
OCLINT = "Internal superior class
UCLASS = "Subordinate class
UCLINT = "Internal subordinate class
* KEY_DATE = SY-DATUM "Change date
* I_AENNR = "
* I_MAINT_GHCLI = "

TABLES
CHARACTERISTICS = "Allocations and characteristics with inconsistencies

EXCEPTIONS
INKONSISTENT = 1 USED_IN_IPPE = 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 CLFM_CHECK_STRUCTURE

CLASSTYPE - Class type

Data type: KSSK-KLART
Optional: No
Call by Reference: No ( called with pass by value option)

OCLASS - Superior class

Data type: KLAH-CLASS
Optional: No
Call by Reference: No ( called with pass by value option)

OCLINT - Internal superior class

Data type: KLAH-CLINT
Optional: No
Call by Reference: No ( called with pass by value option)

UCLASS - Subordinate class

Data type: KLAH-CLASS
Optional: No
Call by Reference: No ( called with pass by value option)

UCLINT - Internal subordinate class

Data type: KLAH-CLINT
Optional: No
Call by Reference: No ( called with pass by value option)

KEY_DATE - Change date

Data type: RMCLF-DATUV1
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AENNR -

Data type: RMCLF-AENNR1
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MAINT_GHCLI -

Data type: SY-BATCH
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CLFM_CHECK_STRUCTURE

CHARACTERISTICS - Allocations and characteristics with inconsistencies

Data type: CLIAUSP
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INKONSISTENT - Deletion not possible because of inconsistency

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

USED_IN_IPPE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CLFM_CHECK_STRUCTURE 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_classtype  TYPE KSSK-KLART, "   
lv_inkonsistent  TYPE KSSK, "   
lt_characteristics  TYPE STANDARD TABLE OF CLIAUSP, "   
lv_oclass  TYPE KLAH-CLASS, "   
lv_used_in_ippe  TYPE KLAH, "   
lv_oclint  TYPE KLAH-CLINT, "   
lv_uclass  TYPE KLAH-CLASS, "   
lv_uclint  TYPE KLAH-CLINT, "   
lv_key_date  TYPE RMCLF-DATUV1, "   SY-DATUM
lv_i_aennr  TYPE RMCLF-AENNR1, "   
lv_i_maint_ghcli  TYPE SY-BATCH. "   

  CALL FUNCTION 'CLFM_CHECK_STRUCTURE'  "
    EXPORTING
         CLASSTYPE = lv_classtype
         OCLASS = lv_oclass
         OCLINT = lv_oclint
         UCLASS = lv_uclass
         UCLINT = lv_uclint
         KEY_DATE = lv_key_date
         I_AENNR = lv_i_aennr
         I_MAINT_GHCLI = lv_i_maint_ghcli
    TABLES
         CHARACTERISTICS = lt_characteristics
    EXCEPTIONS
        INKONSISTENT = 1
        USED_IN_IPPE = 2
. " CLFM_CHECK_STRUCTURE




ABAP code using 7.40 inline data declarations to call FM CLFM_CHECK_STRUCTURE

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 KLART FROM KSSK INTO @DATA(ld_classtype).
 
 
 
"SELECT single CLASS FROM KLAH INTO @DATA(ld_oclass).
 
 
"SELECT single CLINT FROM KLAH INTO @DATA(ld_oclint).
 
"SELECT single CLASS FROM KLAH INTO @DATA(ld_uclass).
 
"SELECT single CLINT FROM KLAH INTO @DATA(ld_uclint).
 
"SELECT single DATUV1 FROM RMCLF INTO @DATA(ld_key_date).
DATA(ld_key_date) = SY-DATUM.
 
"SELECT single AENNR1 FROM RMCLF INTO @DATA(ld_i_aennr).
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_maint_ghcli).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!