SAP CACL_CLASS_VALIDATION_MAINT Function Module for









CACL_CLASS_VALIDATION_MAINT is a standard cacl class validation maint 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 cacl class validation maint FM, simply by entering the name CACL_CLASS_VALIDATION_MAINT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CACL
Program Name: SAPLCACL
Main Program: SAPLCACL
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CACL_CLASS_VALIDATION_MAINT 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 'CACL_CLASS_VALIDATION_MAINT'"
EXPORTING
OBJECT_TYPE = "Object ID, such as MARA, EQUI...
CLASS = "Class
CLASS_TYPE = "Class type
LOWER_CLASS = "Sub-class
* CHANGE_NO = "Change number
* I_DATUV = "
* I_NO_DEFAULTS = ' ' "

TABLES
VALIDATION_MAINT = "Table characteristics values

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for CACL_CLASS_VALIDATION_MAINT

OBJECT_TYPE - Object ID, such as MARA, EQUI...

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

CLASS - Class

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

CLASS_TYPE - Class type

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

LOWER_CLASS - Sub-class

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

CHANGE_NO - Change number

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

I_DATUV -

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

I_NO_DEFAULTS -

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

TABLES Parameters details for CACL_CLASS_VALIDATION_MAINT

VALIDATION_MAINT - Table characteristics values

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

EXCEPTIONS details

ERROR - Module terminated with error

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

Copy and paste ABAP code example for CACL_CLASS_VALIDATION_MAINT 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_error  TYPE STRING, "   
lv_object_type  TYPE TCLA-OBTAB, "   
lt_validation_maint  TYPE STANDARD TABLE OF API_AUSP, "   
lv_class  TYPE KLAH-CLASS, "   
lv_class_type  TYPE KSSK-KLART, "   
lv_lower_class  TYPE KLAH-CLASS, "   
lv_change_no  TYPE KSSK-AENNR, "   
lv_i_datuv  TYPE SY-DATUM, "   
lv_i_no_defaults  TYPE RMCLF-KREUZ. "   SPACE

  CALL FUNCTION 'CACL_CLASS_VALIDATION_MAINT'  "
    EXPORTING
         OBJECT_TYPE = lv_object_type
         CLASS = lv_class
         CLASS_TYPE = lv_class_type
         LOWER_CLASS = lv_lower_class
         CHANGE_NO = lv_change_no
         I_DATUV = lv_i_datuv
         I_NO_DEFAULTS = lv_i_no_defaults
    TABLES
         VALIDATION_MAINT = lt_validation_maint
    EXCEPTIONS
        ERROR = 1
. " CACL_CLASS_VALIDATION_MAINT




ABAP code using 7.40 inline data declarations to call FM CACL_CLASS_VALIDATION_MAINT

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 OBTAB FROM TCLA INTO @DATA(ld_object_type).
 
 
"SELECT single CLASS FROM KLAH INTO @DATA(ld_class).
 
"SELECT single KLART FROM KSSK INTO @DATA(ld_class_type).
 
"SELECT single CLASS FROM KLAH INTO @DATA(ld_lower_class).
 
"SELECT single AENNR FROM KSSK INTO @DATA(ld_change_no).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_datuv).
 
"SELECT single KREUZ FROM RMCLF INTO @DATA(ld_i_no_defaults).
DATA(ld_i_no_defaults) = ' '.
 


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!