SAP CAMA_CLASS_MAINTAIN_DEP Function Module for Maintain local dependencies for class
CAMA_CLASS_MAINTAIN_DEP is a standard cama class maintain dep SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain local dependencies 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 cama class maintain dep FM, simply by entering the name CAMA_CLASS_MAINTAIN_DEP into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACLM
Program Name: SAPLCACLM
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CAMA_CLASS_MAINTAIN_DEP 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 'CAMA_CLASS_MAINTAIN_DEP'"Maintain local dependencies for class.
EXPORTING
CLASS = "Class
CLASS_TYPE = "Class type
DEPENDENCY_DATA = "Basic data of dependency
* PROC_ORDER = "Sort sequence for procedures
* DELETE_FLAG = ' ' "Deletion indicator
* CHANGE_NO = ' ' "Change number
* KEY_DATE = SY-DATUM "Valid-From Date
TABLES
* DESCRIPTION = "Dependency description
* SOURCE = "Source code
* DOCUMENTATION = "Dependency documentation
EXCEPTIONS
ERROR = 1 WARNING = 2
IMPORTING Parameters details for CAMA_CLASS_MAINTAIN_DEP
CLASS - Class
Data type: CAPIPARMS-CLASSOptional: No
Call by Reference: No ( called with pass by value option)
CLASS_TYPE - Class type
Data type: CAPIPARMS-CLASS_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
DEPENDENCY_DATA - Basic data of dependency
Data type: DEPDATOptional: No
Call by Reference: No ( called with pass by value option)
PROC_ORDER - Sort sequence for procedures
Data type: CAPIPARMS-PROC_ORDEROptional: Yes
Call by Reference: No ( called with pass by value option)
DELETE_FLAG - Deletion indicator
Data type: CAPIFLAG-FLLKENZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_NO - Change number
Data type: CAPIPARMS-CHANGE_NODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_DATE - Valid-From Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CAMA_CLASS_MAINTAIN_DEP
DESCRIPTION - Dependency description
Data type: DEPDESCROptional: Yes
Call by Reference: No ( called with pass by value option)
SOURCE - Source code
Data type: DEPSOURCEOptional: Yes
Call by Reference: No ( called with pass by value option)
DOCUMENTATION - Dependency documentation
Data type: DOC_LANGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR - Exit processing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WARNING -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CAMA_CLASS_MAINTAIN_DEP 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 CAPIPARMS-CLASS, " | |||
| lv_error | TYPE CAPIPARMS, " | |||
| lt_description | TYPE STANDARD TABLE OF DEPDESCR, " | |||
| lt_source | TYPE STANDARD TABLE OF DEPSOURCE, " | |||
| lv_warning | TYPE DEPSOURCE, " | |||
| lv_class_type | TYPE CAPIPARMS-CLASS_TYPE, " | |||
| lt_documentation | TYPE STANDARD TABLE OF DOC_LANG, " | |||
| lv_dependency_data | TYPE DEPDAT, " | |||
| lv_proc_order | TYPE CAPIPARMS-PROC_ORDER, " | |||
| lv_delete_flag | TYPE CAPIFLAG-FLLKENZ, " SPACE | |||
| lv_change_no | TYPE CAPIPARMS-CHANGE_NO, " SPACE | |||
| lv_key_date | TYPE SY-DATUM. " SY-DATUM |
|   CALL FUNCTION 'CAMA_CLASS_MAINTAIN_DEP' "Maintain local dependencies for class |
| EXPORTING | ||
| CLASS | = lv_class | |
| CLASS_TYPE | = lv_class_type | |
| DEPENDENCY_DATA | = lv_dependency_data | |
| PROC_ORDER | = lv_proc_order | |
| DELETE_FLAG | = lv_delete_flag | |
| CHANGE_NO | = lv_change_no | |
| KEY_DATE | = lv_key_date | |
| TABLES | ||
| DESCRIPTION | = lt_description | |
| SOURCE | = lt_source | |
| DOCUMENTATION | = lt_documentation | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| WARNING = 2 | ||
| . " CAMA_CLASS_MAINTAIN_DEP | ||
ABAP code using 7.40 inline data declarations to call FM CAMA_CLASS_MAINTAIN_DEP
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 CAPIPARMS INTO @DATA(ld_class). | ||||
| "SELECT single CLASS_TYPE FROM CAPIPARMS INTO @DATA(ld_class_type). | ||||
| "SELECT single PROC_ORDER FROM CAPIPARMS INTO @DATA(ld_proc_order). | ||||
| "SELECT single FLLKENZ FROM CAPIFLAG INTO @DATA(ld_delete_flag). | ||||
| DATA(ld_delete_flag) | = ' '. | |||
| "SELECT single CHANGE_NO FROM CAPIPARMS INTO @DATA(ld_change_no). | ||||
| DATA(ld_change_no) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_key_date). | ||||
| DATA(ld_key_date) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects