SAP CARD_CLASS_READ_ATTR Function Module for









CARD_CLASS_READ_ATTR is a standard card class read attr 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 attr FM, simply by entering the name CARD_CLASS_READ_ATTR 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_ATTR 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_ATTR'"
EXPORTING
CLASS = "Class
CLASS_TYPE = "Class type
* DATE = "Date (validity period, engineering change management)
* CHANGE_NO = "Change number
* LANGUAGE = SY-LANGU "Language for transferring language-dependent texts
* FL_WITH_BASIC_ATTR = 'X' "Flag: base data_
* FL_WITH_STAND_ATTR = ' ' "Flag: standard data_
* FL_WITH_ADDIT_ATTR = ' ' "Flag: additional data (relevant to BOMs)_

IMPORTING
DESCRIPTION = "Class description
CLASS_NOT_VALID = "Class invalid at time entered
BASIC_DATA = "Class basic data
DOCUMENT_IDENT = "Identification of class document
STANDARD_DATA = "Standards data
ADDITIONAL_DATA = "Additional data (relevant to BOMs)_

EXCEPTIONS
ERROR = 1 WARNING = 2
.



IMPORTING Parameters details for CARD_CLASS_READ_ATTR

CLASS - Class

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

CLASS_TYPE - Class type

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

DATE - Date (validity period, engineering change management)

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

CHANGE_NO - Change number

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

LANGUAGE - Language for transferring language-dependent texts

Data type: CLA_DESCR-LANGUAGE
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

FL_WITH_BASIC_ATTR - Flag: base data_

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

FL_WITH_STAND_ATTR - Flag: standard data_

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

FL_WITH_ADDIT_ATTR - Flag: additional data (relevant to BOMs)_

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

EXPORTING Parameters details for CARD_CLASS_READ_ATTR

DESCRIPTION - Class description

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

CLASS_NOT_VALID - Class invalid at time entered

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

BASIC_DATA - Class basic data

Data type: CLBASD
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)

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)

EXCEPTIONS details

ERROR - Terminate processing

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

WARNING - Warning

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CARD_CLASS_READ_ATTR 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 CLCLASSES-CLASS, "   
lv_error  TYPE CLCLASSES, "   
lv_description  TYPE CLA_DESCR-CATCHWORD, "   
lv_warning  TYPE CLA_DESCR, "   
lv_class_type  TYPE CLCLASSES-CLASS_TYPE, "   
lv_class_not_valid  TYPE RMCLM-BASISD, "   
lv_date  TYPE CLBASD-VAL_FROM, "   
lv_basic_data  TYPE CLBASD, "   
lv_change_no  TYPE AENR-AENNR, "   
lv_document_ident  TYPE DOC_IDENT, "   
lv_language  TYPE CLA_DESCR-LANGUAGE, "   SY-LANGU
lv_standard_data  TYPE CLSTANDARD, "   
lv_additional_data  TYPE CLADDITION, "   
lv_fl_with_basic_attr  TYPE CAPIFLAG-WTH_BASATR, "   'X'
lv_fl_with_stand_attr  TYPE CAPIFLAG-WTH_STDATR, "   SPACE
lv_fl_with_addit_attr  TYPE CAPIFLAG-WTH_ADTATR. "   SPACE

  CALL FUNCTION 'CARD_CLASS_READ_ATTR'  "
    EXPORTING
         CLASS = lv_class
         CLASS_TYPE = lv_class_type
         DATE = lv_date
         CHANGE_NO = lv_change_no
         LANGUAGE = lv_language
         FL_WITH_BASIC_ATTR = lv_fl_with_basic_attr
         FL_WITH_STAND_ATTR = lv_fl_with_stand_attr
         FL_WITH_ADDIT_ATTR = lv_fl_with_addit_attr
    IMPORTING
         DESCRIPTION = lv_description
         CLASS_NOT_VALID = lv_class_not_valid
         BASIC_DATA = lv_basic_data
         DOCUMENT_IDENT = lv_document_ident
         STANDARD_DATA = lv_standard_data
         ADDITIONAL_DATA = lv_additional_data
    EXCEPTIONS
        ERROR = 1
        WARNING = 2
. " CARD_CLASS_READ_ATTR




ABAP code using 7.40 inline data declarations to call FM CARD_CLASS_READ_ATTR

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 CLCLASSES INTO @DATA(ld_class).
 
 
"SELECT single CATCHWORD FROM CLA_DESCR INTO @DATA(ld_description).
 
 
"SELECT single CLASS_TYPE FROM CLCLASSES INTO @DATA(ld_class_type).
 
"SELECT single BASISD FROM RMCLM INTO @DATA(ld_class_not_valid).
 
"SELECT single VAL_FROM FROM CLBASD INTO @DATA(ld_date).
 
 
"SELECT single AENNR FROM AENR INTO @DATA(ld_change_no).
 
 
"SELECT single LANGUAGE FROM CLA_DESCR INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
 
"SELECT single WTH_BASATR FROM CAPIFLAG INTO @DATA(ld_fl_with_basic_attr).
DATA(ld_fl_with_basic_attr) = 'X'.
 
"SELECT single WTH_STDATR FROM CAPIFLAG INTO @DATA(ld_fl_with_stand_attr).
DATA(ld_fl_with_stand_attr) = ' '.
 
"SELECT single WTH_ADTATR FROM CAPIFLAG INTO @DATA(ld_fl_with_addit_attr).
DATA(ld_fl_with_addit_attr) = ' '.
 


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!