SAP Function Modules

CUD6_CHECK_INPUT_CLASS SAP Function module - Syntax check for use of class in constraints







CUD6_CHECK_INPUT_CLASS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CUD6_CHECK_INPUT_CLASS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CUD6
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CUD6_CHECK_INPUT_CLASS - CUD6 CHECK INPUT CLASS





CALL FUNCTION 'CUD6_CHECK_INPUT_CLASS' "Syntax check for use of class in constraints
  EXPORTING
*   cud6_class =                " c             Class
*   cud6_class_type =           " klah-klart    Class type
*   cud6_class_number =         " klah-clint
    cud6_date =                 " ksml-datuv    Date
  IMPORTING
    cud6_feature_exception =    " cabn-atnam    Characteristic not suitable
    cud6_format_exception =     " cabn-atfor    Format of unsuitable characteristic
    cud6_class_internal =       " klah-clint    Internal class number
    cud6_returncode =           " sy-subrc      Return code
  TABLES
    cud6_features =             " rcutb         Transfer table with characteristics
    .  "  CUD6_CHECK_INPUT_CLASS

ABAP code example for Function Module CUD6_CHECK_INPUT_CLASS





The ABAP code below is a full code listing to execute function module CUD6_CHECK_INPUT_CLASS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_cud6_feature_exception  TYPE CABN-ATNAM ,
ld_cud6_format_exception  TYPE CABN-ATFOR ,
ld_cud6_class_internal  TYPE KLAH-CLINT ,
ld_cud6_returncode  TYPE SY-SUBRC ,
it_cud6_features  TYPE STANDARD TABLE OF RCUTB,"TABLES PARAM
wa_cud6_features  LIKE LINE OF it_cud6_features .

DATA(ld_cud6_class) = 'Check type of data required'.

SELECT single KLART
FROM KLAH
INTO @DATA(ld_cud6_class_type).


SELECT single CLINT
FROM KLAH
INTO @DATA(ld_cud6_class_number).


SELECT single DATUV
FROM KSML
INTO @DATA(ld_cud6_date).


"populate fields of struture and append to itab
append wa_cud6_features to it_cud6_features. . CALL FUNCTION 'CUD6_CHECK_INPUT_CLASS' EXPORTING * cud6_class = ld_cud6_class * cud6_class_type = ld_cud6_class_type * cud6_class_number = ld_cud6_class_number cud6_date = ld_cud6_date IMPORTING cud6_feature_exception = ld_cud6_feature_exception cud6_format_exception = ld_cud6_format_exception cud6_class_internal = ld_cud6_class_internal cud6_returncode = ld_cud6_returncode TABLES cud6_features = it_cud6_features . " CUD6_CHECK_INPUT_CLASS
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_cud6_feature_exception  TYPE CABN-ATNAM ,
ld_cud6_class  TYPE C ,
it_cud6_features  TYPE STANDARD TABLE OF RCUTB ,
wa_cud6_features  LIKE LINE OF it_cud6_features,
ld_cud6_format_exception  TYPE CABN-ATFOR ,
ld_cud6_class_type  TYPE KLAH-KLART ,
ld_cud6_class_internal  TYPE KLAH-CLINT ,
ld_cud6_class_number  TYPE KLAH-CLINT ,
ld_cud6_returncode  TYPE SY-SUBRC ,
ld_cud6_date  TYPE KSML-DATUV .

ld_cud6_class = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_cud6_features to it_cud6_features.

SELECT single KLART
FROM KLAH
INTO ld_cud6_class_type.


SELECT single CLINT
FROM KLAH
INTO ld_cud6_class_number.


SELECT single DATUV
FROM KSML
INTO ld_cud6_date.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CUD6_CHECK_INPUT_CLASS or its description.