SAP CLSE_SELECT_AUSP Function Module for Database Access for Table AUSP









CLSE_SELECT_AUSP is a standard clse 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 Database Access for Table 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 clse select ausp FM, simply by entering the name CLSE_SELECT_AUSP into the relevant SAP transaction such as SE37 or SE38.

Function Group: CLSE
Program Name: SAPLCLSE
Main Program: SAPLCLSE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CLSE_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 'CLSE_SELECT_AUSP'"Database Access for Table AUSP
EXPORTING
KLART = "Class Type
* OBJEK = "Classified Object
* ATINN = "Characteristic Number
* MAFID = "Object or Class O / K
* KEY_DATE = SY-DATUM "Validity Time
* I_LOWER_DATE = "Lower Limit of Validity
* ATCOD = " 1 - 9

TABLES
* IN_OBJEK = "Object Number in Range Table
* IN_ATINN = "Characteristic Number in Range Table
* T_AUSP = "Returned AUSP Records
* IN_WERTC = "Character Values to be Found in Range Table
* IN_WERTN = "Numeric Values to be Found in Range Table
* IN_ATCOD = "Restrictive ATCOD in Range Table

EXCEPTIONS
NO_ENTRY_FOUND = 1 PARAMETERS_NOT_SUFFICIENT = 2
.



IMPORTING Parameters details for CLSE_SELECT_AUSP

KLART - Class Type

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

OBJEK - Classified Object

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

ATINN - Characteristic Number

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

MAFID - Object or Class O / K

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

KEY_DATE - Validity Time

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

I_LOWER_DATE - Lower Limit of Validity

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

ATCOD - 1 - 9

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

TABLES Parameters details for CLSE_SELECT_AUSP

IN_OBJEK - Object Number in Range Table

Data type:
Optional: Yes
Call by Reference: Yes

IN_ATINN - Characteristic Number in Range Table

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

T_AUSP - Returned AUSP Records

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

IN_WERTC - Character Values to be Found in Range Table

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

IN_WERTN - Numeric Values to be Found in Range Table

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

IN_ATCOD - Restrictive ATCOD in Range Table

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

EXCEPTIONS details

NO_ENTRY_FOUND - No Entry Found in the Database Table

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

PARAMETERS_NOT_SUFFICIENT - No Qualified Search Possible

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

Copy and paste ABAP code example for CLSE_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_klart  TYPE AUSP-KLART, "   
lt_in_objek  TYPE STANDARD TABLE OF AUSP, "   
lv_no_entry_found  TYPE AUSP, "   
lv_objek  TYPE AUSP-OBJEK, "   
lt_in_atinn  TYPE STANDARD TABLE OF AUSP, "   
lv_parameters_not_sufficient  TYPE AUSP, "   
lv_atinn  TYPE AUSP-ATINN, "   
lt_t_ausp  TYPE STANDARD TABLE OF AUSP, "   
lv_mafid  TYPE AUSP-MAFID, "   
lt_in_wertc  TYPE STANDARD TABLE OF AUSP, "   
lt_in_wertn  TYPE STANDARD TABLE OF AUSP, "   
lv_key_date  TYPE RMCLS-KEY_DATE, "   SY-DATUM
lt_in_atcod  TYPE STANDARD TABLE OF RMCLS, "   
lv_i_lower_date  TYPE SY-DATUM, "   
lv_atcod  TYPE AUSP-ATCOD. "   

  CALL FUNCTION 'CLSE_SELECT_AUSP'  "Database Access for Table AUSP
    EXPORTING
         KLART = lv_klart
         OBJEK = lv_objek
         ATINN = lv_atinn
         MAFID = lv_mafid
         KEY_DATE = lv_key_date
         I_LOWER_DATE = lv_i_lower_date
         ATCOD = lv_atcod
    TABLES
         IN_OBJEK = lt_in_objek
         IN_ATINN = lt_in_atinn
         T_AUSP = lt_t_ausp
         IN_WERTC = lt_in_wertc
         IN_WERTN = lt_in_wertn
         IN_ATCOD = lt_in_atcod
    EXCEPTIONS
        NO_ENTRY_FOUND = 1
        PARAMETERS_NOT_SUFFICIENT = 2
. " CLSE_SELECT_AUSP




ABAP code using 7.40 inline data declarations to call FM CLSE_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 KLART FROM AUSP INTO @DATA(ld_klart).
 
 
 
"SELECT single OBJEK FROM AUSP INTO @DATA(ld_objek).
 
 
 
"SELECT single ATINN FROM AUSP INTO @DATA(ld_atinn).
 
 
"SELECT single MAFID FROM AUSP INTO @DATA(ld_mafid).
 
 
 
"SELECT single KEY_DATE FROM RMCLS INTO @DATA(ld_key_date).
DATA(ld_key_date) = SY-DATUM.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_lower_date).
 
"SELECT single ATCOD FROM AUSP INTO @DATA(ld_atcod).
 


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!