SAP CLFM_SELECT_AUSP Function Module for Classification: read AUSP









CLFM_SELECT_AUSP is a standard clfm select ausp 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: read AUSP 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 clfm select ausp FM, simply by entering the name CLFM_SELECT_AUSP 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_SELECT_AUSP 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_SELECT_AUSP'"Classification: read AUSP
EXPORTING
MAFID = "Mafid K=class O= objects
* I_AENNR = ' ' "
CLASSTYPE = "Class type
OBJECT = "Object key
* FEATURE = "Characteristic
* CLEAR_BUFFER = ' ' "Clear buffer
* KEY_DATE = "Date from engineering change management
* WITH_CHANGE_NUMBER = ' ' "Indicator: with change number
* TABLE = "Physical table from TCLAO
* I_ATZHL_SAME_INI = ' ' "

TABLES
* EXP_AUSP = "Table of selected values

EXCEPTIONS
NO_VALUES = 1
.




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_SELECT_AUSP

MAFID - Mafid K=class O= objects

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

I_AENNR -

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

CLASSTYPE - Class type

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

OBJECT - Object key

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

FEATURE - Characteristic

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

CLEAR_BUFFER - Clear buffer

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

KEY_DATE - Date from engineering change management

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

WITH_CHANGE_NUMBER - Indicator: with change number

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

TABLE - Physical table from TCLAO

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

I_ATZHL_SAME_INI -

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

TABLES Parameters details for CLFM_SELECT_AUSP

EXP_AUSP - Table of selected values

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

EXCEPTIONS details

NO_VALUES - No values found

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

Copy and paste ABAP code example for CLFM_SELECT_AUSP 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_mafid  TYPE AUSP-MAFID, "   
lt_exp_ausp  TYPE STANDARD TABLE OF AUSP, "   
lv_no_values  TYPE AUSP, "   
lv_i_aennr  TYPE AUSP-AENNR, "   SPACE
lv_classtype  TYPE AUSP-KLART, "   
lv_object  TYPE AUSP-OBJEK, "   
lv_feature  TYPE AUSP-ATINN, "   
lv_clear_buffer  TYPE AUSP, "   SPACE
lv_key_date  TYPE RMCLF-DATUV1, "   
lv_with_change_number  TYPE RMCLF, "   SPACE
lv_table  TYPE TCLAO-OBTAB, "   
lv_i_atzhl_same_ini  TYPE RMCLF-KREUZ. "   SPACE

  CALL FUNCTION 'CLFM_SELECT_AUSP'  "Classification: read AUSP
    EXPORTING
         MAFID = lv_mafid
         I_AENNR = lv_i_aennr
         CLASSTYPE = lv_classtype
         OBJECT = lv_object
         FEATURE = lv_feature
         CLEAR_BUFFER = lv_clear_buffer
         KEY_DATE = lv_key_date
         WITH_CHANGE_NUMBER = lv_with_change_number
         TABLE = lv_table
         I_ATZHL_SAME_INI = lv_i_atzhl_same_ini
    TABLES
         EXP_AUSP = lt_exp_ausp
    EXCEPTIONS
        NO_VALUES = 1
. " CLFM_SELECT_AUSP




ABAP code using 7.40 inline data declarations to call FM CLFM_SELECT_AUSP

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 MAFID FROM AUSP INTO @DATA(ld_mafid).
 
 
 
"SELECT single AENNR FROM AUSP INTO @DATA(ld_i_aennr).
DATA(ld_i_aennr) = ' '.
 
"SELECT single KLART FROM AUSP INTO @DATA(ld_classtype).
 
"SELECT single OBJEK FROM AUSP INTO @DATA(ld_object).
 
"SELECT single ATINN FROM AUSP INTO @DATA(ld_feature).
 
DATA(ld_clear_buffer) = ' '.
 
"SELECT single DATUV1 FROM RMCLF INTO @DATA(ld_key_date).
 
DATA(ld_with_change_number) = ' '.
 
"SELECT single OBTAB FROM TCLAO INTO @DATA(ld_table).
 
"SELECT single KREUZ FROM RMCLF INTO @DATA(ld_i_atzhl_same_ini).
DATA(ld_i_atzhl_same_ini) = ' '.
 


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!