SAP CRS_CLASS_EXTRACT Function Module for NOTRANSL: Datenextraktor Klassen und ihre Merkmale - Initial Download









CRS_CLASS_EXTRACT is a standard crs class extract SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Datenextraktor Klassen und ihre Merkmale - Initial Download 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 crs class extract FM, simply by entering the name CRS_CLASS_EXTRACT into the relevant SAP transaction such as SE37 or SE38.

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



Function CRS_CLASS_EXTRACT 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 'CRS_CLASS_EXTRACT'"NOTRANSL: Datenextraktor Klassen und ihre Merkmale - Initial Download
EXPORTING
I_BAPICRMDH1 = "BAPI Structure for Downloading Header Data
* I_DO_NOT_SEND_DATA = ' ' "

IMPORTING
E_STATUS = "Extractor Processing Status

TABLES
* TI_RANGE = "Dynamic Selection Parameters
* TO_CAWN = "Characteristic values
* TO_CAWNT = "Value Texts
* TO_TCME = "Validity for Global Characteristics
* TO_CABNZ = "Assignment of Table Fields to Characteristics
* TI_LANGUAGES = "
* TI_TABLES = "Download Tables by Download Object
* TO_KLAH = "Class Header Data
* TO_KSML = "Characteristics of a Class
* TO_SWOR = "Classification System: Keywords
* TO_KLAT = "Classes: Long Texts
* TO_CABN = "Characteristic
* TO_CABNT = "Characteristic Descriptions

EXCEPTIONS
REQ_ERROR = 1 NO_DATA = 2 WRONG_TABLE = 3
.



IMPORTING Parameters details for CRS_CLASS_EXTRACT

I_BAPICRMDH1 - BAPI Structure for Downloading Header Data

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

I_DO_NOT_SEND_DATA -

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

EXPORTING Parameters details for CRS_CLASS_EXTRACT

E_STATUS - Extractor Processing Status

Data type: BAPICRMEXP-STATUS_EXT
Optional: No
Call by Reference: Yes

TABLES Parameters details for CRS_CLASS_EXTRACT

TI_RANGE - Dynamic Selection Parameters

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

TO_CAWN - Characteristic values

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

TO_CAWNT - Value Texts

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

TO_TCME - Validity for Global Characteristics

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

TO_CABNZ - Assignment of Table Fields to Characteristics

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

TI_LANGUAGES -

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

TI_TABLES - Download Tables by Download Object

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

TO_KLAH - Class Header Data

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

TO_KSML - Characteristics of a Class

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

TO_SWOR - Classification System: Keywords

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

TO_KLAT - Classes: Long Texts

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

TO_CABN - Characteristic

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

TO_CABNT - Characteristic Descriptions

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

EXCEPTIONS details

REQ_ERROR -

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

NO_DATA -

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

WRONG_TABLE -

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

Copy and paste ABAP code example for CRS_CLASS_EXTRACT 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_e_status  TYPE BAPICRMEXP-STATUS_EXT, "   
lt_ti_range  TYPE STANDARD TABLE OF CRMSELSTR, "   
lv_req_error  TYPE CRMSELSTR, "   
lv_i_bapicrmdh1  TYPE BAPICRMDH1, "   
lt_to_cawn  TYPE STANDARD TABLE OF CAWN, "   
lt_to_cawnt  TYPE STANDARD TABLE OF CAWNT, "   
lt_to_tcme  TYPE STANDARD TABLE OF TCME, "   
lt_to_cabnz  TYPE STANDARD TABLE OF CABNZ, "   
lv_no_data  TYPE CABNZ, "   
lt_ti_languages  TYPE STANDARD TABLE OF CABNZ, "   
lv_i_do_not_send_data  TYPE CABNZ, "   ' '
lt_ti_tables  TYPE STANDARD TABLE OF CRMTABLES, "   
lv_wrong_table  TYPE CRMTABLES, "   
lt_to_klah  TYPE STANDARD TABLE OF KLAH, "   
lt_to_ksml  TYPE STANDARD TABLE OF KSML, "   
lt_to_swor  TYPE STANDARD TABLE OF SWOR, "   
lt_to_klat  TYPE STANDARD TABLE OF KLAT, "   
lt_to_cabn  TYPE STANDARD TABLE OF CABN, "   
lt_to_cabnt  TYPE STANDARD TABLE OF CABNT. "   

  CALL FUNCTION 'CRS_CLASS_EXTRACT'  "NOTRANSL: Datenextraktor Klassen und ihre Merkmale - Initial Download
    EXPORTING
         I_BAPICRMDH1 = lv_i_bapicrmdh1
         I_DO_NOT_SEND_DATA = lv_i_do_not_send_data
    IMPORTING
         E_STATUS = lv_e_status
    TABLES
         TI_RANGE = lt_ti_range
         TO_CAWN = lt_to_cawn
         TO_CAWNT = lt_to_cawnt
         TO_TCME = lt_to_tcme
         TO_CABNZ = lt_to_cabnz
         TI_LANGUAGES = lt_ti_languages
         TI_TABLES = lt_ti_tables
         TO_KLAH = lt_to_klah
         TO_KSML = lt_to_ksml
         TO_SWOR = lt_to_swor
         TO_KLAT = lt_to_klat
         TO_CABN = lt_to_cabn
         TO_CABNT = lt_to_cabnt
    EXCEPTIONS
        REQ_ERROR = 1
        NO_DATA = 2
        WRONG_TABLE = 3
. " CRS_CLASS_EXTRACT




ABAP code using 7.40 inline data declarations to call FM CRS_CLASS_EXTRACT

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 STATUS_EXT FROM BAPICRMEXP INTO @DATA(ld_e_status).
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_do_not_send_data) = ' '.
 
 
 
 
 
 
 
 
 


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!