SAP Function Modules

EQUIPMENT_CLASSIFY SAP Function module







EQUIPMENT_CLASSIFY 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 EQUIPMENT_CLASSIFY into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM EQUIPMENT_CLASSIFY - EQUIPMENT CLASSIFY





CALL FUNCTION 'EQUIPMENT_CLASSIFY' "
  EXPORTING
*   read_sequi = 'X'            " iref-iind
    eq_class =                  " klah-class
*   eq_class_create = 'X'       " iref-iind
*   eq_class_type = '002'       " kssk-klart
*   is_standard = ' '           " kssk-stdcl
*   init_new = 'X'              " iref-iind
*   lock_new = 'X'              " iref-iind
*   update_new = 'X'            " iref-iind
*   commit_new = ' '            " iref-iind
*   eq_class_eval_std = ' '     " iref-iind
* TABLES
*   itab_eval =                 " api_ausp
  CHANGING
    s_equi =                    " v_equi
  EXCEPTIONS
    ERR_CLASSIFY = 1            "
    .  "  EQUIPMENT_CLASSIFY

ABAP code example for Function Module EQUIPMENT_CLASSIFY





The ABAP code below is a full code listing to execute function module EQUIPMENT_CLASSIFY 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:
it_itab_eval  TYPE STANDARD TABLE OF API_AUSP,"TABLES PARAM
wa_itab_eval  LIKE LINE OF it_itab_eval .

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

DATA(ld_read_sequi) = some text here

SELECT single CLASS
FROM KLAH
INTO @DATA(ld_eq_class).


DATA(ld_eq_class_create) = some text here

SELECT single KLART
FROM KSSK
INTO @DATA(ld_eq_class_type).


SELECT single STDCL
FROM KSSK
INTO @DATA(ld_is_standard).


DATA(ld_init_new) = some text here

DATA(ld_lock_new) = some text here

DATA(ld_update_new) = some text here

DATA(ld_commit_new) = some text here

DATA(ld_eq_class_eval_std) = some text here

"populate fields of struture and append to itab
append wa_itab_eval to it_itab_eval. . CALL FUNCTION 'EQUIPMENT_CLASSIFY' EXPORTING * read_sequi = ld_read_sequi eq_class = ld_eq_class * eq_class_create = ld_eq_class_create * eq_class_type = ld_eq_class_type * is_standard = ld_is_standard * init_new = ld_init_new * lock_new = ld_lock_new * update_new = ld_update_new * commit_new = ld_commit_new * eq_class_eval_std = ld_eq_class_eval_std * TABLES * itab_eval = it_itab_eval CHANGING s_equi = ld_s_equi EXCEPTIONS ERR_CLASSIFY = 1 . " EQUIPMENT_CLASSIFY
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_s_equi  TYPE V_EQUI ,
ld_read_sequi  TYPE IREF-IIND ,
it_itab_eval  TYPE STANDARD TABLE OF API_AUSP ,
wa_itab_eval  LIKE LINE OF it_itab_eval,
ld_eq_class  TYPE KLAH-CLASS ,
ld_eq_class_create  TYPE IREF-IIND ,
ld_eq_class_type  TYPE KSSK-KLART ,
ld_is_standard  TYPE KSSK-STDCL ,
ld_init_new  TYPE IREF-IIND ,
ld_lock_new  TYPE IREF-IIND ,
ld_update_new  TYPE IREF-IIND ,
ld_commit_new  TYPE IREF-IIND ,
ld_eq_class_eval_std  TYPE IREF-IIND .

ld_s_equi = 'Check type of data required'.

ld_read_sequi = some text here

"populate fields of struture and append to itab
append wa_itab_eval to it_itab_eval.

SELECT single CLASS
FROM KLAH
INTO ld_eq_class.


ld_eq_class_create = some text here

SELECT single KLART
FROM KSSK
INTO ld_eq_class_type.


SELECT single STDCL
FROM KSSK
INTO ld_is_standard.


ld_init_new = some text here

ld_lock_new = some text here

ld_update_new = some text here

ld_commit_new = some text here

ld_eq_class_eval_std = some text here

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 EQUIPMENT_CLASSIFY or its description.