SAP CLAP_DDB_SAVE_CLASSIFICATION Function Module for Classification API: save classification data









CLAP_DDB_SAVE_CLASSIFICATION is a standard clap ddb save classification SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Classification API: save classification data 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 clap ddb save classification FM, simply by entering the name CLAP_DDB_SAVE_CLASSIFICATION 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 CLAP_DDB_SAVE_CLASSIFICATION 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 'CLAP_DDB_SAVE_CLASSIFICATION'"Classification API: save classification data
EXPORTING
* WITH_COMMIT = 'X' "X : Commit work executed
* I_WAIT = ' ' "
* I_NO_UPD_TASK = ' ' "
* I_UPD_CALL_DIRECT = ' ' "
* I_NO_CHECK = ' ' "

IMPORTING
UPDATFLAG = "X : Commit work in the application

EXCEPTIONS
REKURSIV = 1 KLART_LOCKED = 2 SYSTEM_FAILURE = 3
.




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 CLAP_DDB_SAVE_CLASSIFICATION

WITH_COMMIT - X : Commit work executed

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

I_WAIT -

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

I_NO_UPD_TASK -

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

I_UPD_CALL_DIRECT -

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

I_NO_CHECK -

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

EXPORTING Parameters details for CLAP_DDB_SAVE_CLASSIFICATION

UPDATFLAG - X : Commit work in the application

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

EXCEPTIONS details

REKURSIV - Allocation causes recursiveness

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

KLART_LOCKED - Class type is already locked for recursiveness check

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

SYSTEM_FAILURE - System lock error

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

Copy and paste ABAP code example for CLAP_DDB_SAVE_CLASSIFICATION 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_rekursiv  TYPE STRING, "   
lv_updatflag  TYPE RMCLF-KREUZ, "   
lv_with_commit  TYPE RMCLF-KREUZ, "   'X'
lv_i_wait  TYPE RMCLF-KREUZ, "   SPACE
lv_klart_locked  TYPE RMCLF, "   
lv_i_no_upd_task  TYPE RMCLF-KREUZ, "   SPACE
lv_system_failure  TYPE RMCLF, "   
lv_i_upd_call_direct  TYPE RMCLF-KREUZ, "   SPACE
lv_i_no_check  TYPE RMCLF-KREUZ. "   SPACE

  CALL FUNCTION 'CLAP_DDB_SAVE_CLASSIFICATION'  "Classification API: save classification data
    EXPORTING
         WITH_COMMIT = lv_with_commit
         I_WAIT = lv_i_wait
         I_NO_UPD_TASK = lv_i_no_upd_task
         I_UPD_CALL_DIRECT = lv_i_upd_call_direct
         I_NO_CHECK = lv_i_no_check
    IMPORTING
         UPDATFLAG = lv_updatflag
    EXCEPTIONS
        REKURSIV = 1
        KLART_LOCKED = 2
        SYSTEM_FAILURE = 3
. " CLAP_DDB_SAVE_CLASSIFICATION




ABAP code using 7.40 inline data declarations to call FM CLAP_DDB_SAVE_CLASSIFICATION

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 KREUZ FROM RMCLF INTO @DATA(ld_updatflag).
 
"SELECT single KREUZ FROM RMCLF INTO @DATA(ld_with_commit).
DATA(ld_with_commit) = 'X'.
 
"SELECT single KREUZ FROM RMCLF INTO @DATA(ld_i_wait).
DATA(ld_i_wait) = ' '.
 
 
"SELECT single KREUZ FROM RMCLF INTO @DATA(ld_i_no_upd_task).
DATA(ld_i_no_upd_task) = ' '.
 
 
"SELECT single KREUZ FROM RMCLF INTO @DATA(ld_i_upd_call_direct).
DATA(ld_i_upd_call_direct) = ' '.
 
"SELECT single KREUZ FROM RMCLF INTO @DATA(ld_i_no_check).
DATA(ld_i_no_check) = ' '.
 


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!