SAP CARD_CLASS_READ Function Module for









CARD_CLASS_READ is a standard card class read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 card class read FM, simply by entering the name CARD_CLASS_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: CACLR
Program Name: SAPLCACLR
Main Program: SAPLCACLR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CARD_CLASS_READ 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 'CARD_CLASS_READ'"
EXPORTING
CLASS = "Class name
CLASS_TYPE = "Class type
* DATE = "Validity date
* CHANGE_NO = "Change number
* LANGUAGE = ' ' "Language of language dependent texts_

IMPORTING
BASIC_DATA = "Class basic data
STANDARD_DATA = "Standards data
ADDITIONAL_DATA = "Additional data (relevant to BOMs)_
DOCUMENT_IDENT = "Identification of class document
RETURN = "Return code

TABLES
* CLASS_DESCRIPTION = "Multi-lingual descriptions_
* CLASS_CATCHWORD = "Catchword (multi-lingual)_
* CHARACTERISTICS = "List of characteristics_
* CHARACTERISTICS_VALUES = "List of characteristic values_
* CLASS_DOCUMENT_ALLOCS = "
.



IMPORTING Parameters details for CARD_CLASS_READ

CLASS - Class name

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

CLASS_TYPE - Class type

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

DATE - Validity date

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

CHANGE_NO - Change number

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

LANGUAGE - Language of language dependent texts_

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

EXPORTING Parameters details for CARD_CLASS_READ

BASIC_DATA - Class basic data

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

STANDARD_DATA - Standards data

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

ADDITIONAL_DATA - Additional data (relevant to BOMs)_

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

DOCUMENT_IDENT - Identification of class document

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

RETURN - Return code

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

TABLES Parameters details for CARD_CLASS_READ

CLASS_DESCRIPTION - Multi-lingual descriptions_

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

CLASS_CATCHWORD - Catchword (multi-lingual)_

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

CHARACTERISTICS - List of characteristics_

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

CHARACTERISTICS_VALUES - List of characteristic values_

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

CLASS_DOCUMENT_ALLOCS -

Data type: DOCIDS
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for CARD_CLASS_READ 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_basic_data  TYPE CLBASD, "   
lt_class_description  TYPE STANDARD TABLE OF DESCRIPT, "   
lv_class_type  TYPE CAPIPARMS-CLASS_TYPE, "   
lv_standard_data  TYPE CLSTANDARD, "   
lt_class_catchword  TYPE STANDARD TABLE OF CATCHWORD, "   
lv_date  TYPE CAPIPARMS-DATE, "   
lv_additional_data  TYPE CLADDITION, "   
lt_characteristics  TYPE STANDARD TABLE OF CLA_CH_AT, "   
lv_change_no  TYPE CAPIPARMS-CHANGE_NO, "   
lv_document_ident  TYPE DOC_IDENT, "   
lt_characteristics_values  TYPE STANDARD TABLE OF CHA_VALDSC, "   
lv_return  TYPE BAPIRETURN, "   
lv_language  TYPE CAPIPARMS-LANGUAGE, "   SPACE
lt_class_document_allocs  TYPE STANDARD TABLE OF DOCIDS. "   

  CALL FUNCTION 'CARD_CLASS_READ'  "
    EXPORTING
         CLASS = lv_class
         CLASS_TYPE = lv_class_type
         DATE = lv_date
         CHANGE_NO = lv_change_no
         LANGUAGE = lv_language
    IMPORTING
         BASIC_DATA = lv_basic_data
         STANDARD_DATA = lv_standard_data
         ADDITIONAL_DATA = lv_additional_data
         DOCUMENT_IDENT = lv_document_ident
         RETURN = lv_return
    TABLES
         CLASS_DESCRIPTION = lt_class_description
         CLASS_CATCHWORD = lt_class_catchword
         CHARACTERISTICS = lt_characteristics
         CHARACTERISTICS_VALUES = lt_characteristics_values
         CLASS_DOCUMENT_ALLOCS = lt_class_document_allocs
. " CARD_CLASS_READ




ABAP code using 7.40 inline data declarations to call FM CARD_CLASS_READ

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 DATE FROM CAPIPARMS INTO @DATA(ld_date).
 
 
 
"SELECT single CHANGE_NO FROM CAPIPARMS INTO @DATA(ld_change_no).
 
 
 
 
"SELECT single LANGUAGE FROM CAPIPARMS INTO @DATA(ld_language).
DATA(ld_language) = ' '.
 
 


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!