SAP CACL_CLASS_ALLOCATION_MAINT Function Module for









CACL_CLASS_ALLOCATION_MAINT is a standard cacl class allocation 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 allocation maint FM, simply by entering the name CACL_CLASS_ALLOCATION_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_ALLOCATION_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_ALLOCATION_MAINT'"
EXPORTING
OBJECT_TYPE = "Object ID, such as MARA, EQUI...
* I_NO_DEFAULTS = ' ' "
CLASS = "Class
CLASS_TYPE = "Class type
LOWER_CLASS = "Sub-class
* STATUS = "Classification status
* STANDARD_CLASS = "Standard class indicator
* DELETE_ALLOCATION = "X = Delete classification
* CHANGE_NO = "Change number
* I_DATUV = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for CACL_CLASS_ALLOCATION_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)

I_NO_DEFAULTS -

Data type: RMCLF-KREUZ
Default: SPACE
Optional: Yes
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)

STATUS - Classification status

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

STANDARD_CLASS - Standard class indicator

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

DELETE_ALLOCATION - X = Delete classification

Data type: KSSK_COM-CHANGE_FLG
Optional: Yes
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)

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_ALLOCATION_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, "   
lv_i_no_defaults  TYPE RMCLF-KREUZ, "   SPACE
lv_class  TYPE KLAH-CLASS, "   
lv_class_type  TYPE KSSK-KLART, "   
lv_lower_class  TYPE KLAH-CLASS, "   
lv_status  TYPE KSSK-STATU, "   
lv_standard_class  TYPE KSSK-STDCL, "   
lv_delete_allocation  TYPE KSSK_COM-CHANGE_FLG, "   
lv_change_no  TYPE KSSK-AENNR, "   
lv_i_datuv  TYPE SY-DATUM. "   

  CALL FUNCTION 'CACL_CLASS_ALLOCATION_MAINT'  "
    EXPORTING
         OBJECT_TYPE = lv_object_type
         I_NO_DEFAULTS = lv_i_no_defaults
         CLASS = lv_class
         CLASS_TYPE = lv_class_type
         LOWER_CLASS = lv_lower_class
         STATUS = lv_status
         STANDARD_CLASS = lv_standard_class
         DELETE_ALLOCATION = lv_delete_allocation
         CHANGE_NO = lv_change_no
         I_DATUV = lv_i_datuv
    EXCEPTIONS
        ERROR = 1
. " CACL_CLASS_ALLOCATION_MAINT




ABAP code using 7.40 inline data declarations to call FM CACL_CLASS_ALLOCATION_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 KREUZ FROM RMCLF INTO @DATA(ld_i_no_defaults).
DATA(ld_i_no_defaults) = ' '.
 
"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 STATU FROM KSSK INTO @DATA(ld_status).
 
"SELECT single STDCL FROM KSSK INTO @DATA(ld_standard_class).
 
"SELECT single CHANGE_FLG FROM KSSK_COM INTO @DATA(ld_delete_allocation).
 
"SELECT single AENNR FROM KSSK INTO @DATA(ld_change_no).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_datuv).
 


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!