SAP Function Modules

FKR2_GET_CUSTOMIZING SAP Function module







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

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


Pattern for FM FKR2_GET_CUSTOMIZING - FKR2 GET CUSTOMIZING





CALL FUNCTION 'FKR2_GET_CUSTOMIZING' "
  EXPORTING
    i_dfkkrk =                  " dfkkrk
*   i_dfkkrp =                  " dfkkrp
* TABLES
*   t_tfk001 =                  " tfk001
*   t_tfk001t =                 " tfk001t
*   t_tfk045e =                 " tfk045e
* CHANGING
*   c_tfk045a =                 " tfk045a
*   c_tfk045b =                 " tfk045b
*   c_tfk045c =                 " tfk045c
*   c_t001 =                    " t001          Company Code Data
*   c_tfk001b =                 " tfk001b       Responsible Company Code
  EXCEPTIONS
    PARAMS_MISSING = 1          "
    NO_DATA_FOUND = 2           "               No data found
    .  "  FKR2_GET_CUSTOMIZING

ABAP code example for Function Module FKR2_GET_CUSTOMIZING





The ABAP code below is a full code listing to execute function module FKR2_GET_CUSTOMIZING 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_t_tfk001  TYPE STANDARD TABLE OF TFK001,"TABLES PARAM
wa_t_tfk001  LIKE LINE OF it_t_tfk001 ,
it_t_tfk001t  TYPE STANDARD TABLE OF TFK001T,"TABLES PARAM
wa_t_tfk001t  LIKE LINE OF it_t_tfk001t ,
it_t_tfk045e  TYPE STANDARD TABLE OF TFK045E,"TABLES PARAM
wa_t_tfk045e  LIKE LINE OF it_t_tfk045e .

DATA(ld_c_tfk045a) = 'Check type of data required'.
DATA(ld_c_tfk045b) = 'Check type of data required'.
DATA(ld_c_tfk045c) = 'Check type of data required'.
DATA(ld_c_t001) = 'Check type of data required'.
DATA(ld_c_tfk001b) = 'Check type of data required'.
DATA(ld_i_dfkkrk) = 'Check type of data required'.
DATA(ld_i_dfkkrp) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_tfk001 to it_t_tfk001.

"populate fields of struture and append to itab
append wa_t_tfk001t to it_t_tfk001t.

"populate fields of struture and append to itab
append wa_t_tfk045e to it_t_tfk045e. . CALL FUNCTION 'FKR2_GET_CUSTOMIZING' EXPORTING i_dfkkrk = ld_i_dfkkrk * i_dfkkrp = ld_i_dfkkrp * TABLES * t_tfk001 = it_t_tfk001 * t_tfk001t = it_t_tfk001t * t_tfk045e = it_t_tfk045e * CHANGING * c_tfk045a = ld_c_tfk045a * c_tfk045b = ld_c_tfk045b * c_tfk045c = ld_c_tfk045c * c_t001 = ld_c_t001 * c_tfk001b = ld_c_tfk001b EXCEPTIONS PARAMS_MISSING = 1 NO_DATA_FOUND = 2 . " FKR2_GET_CUSTOMIZING
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_c_tfk045a  TYPE TFK045A ,
ld_i_dfkkrk  TYPE DFKKRK ,
it_t_tfk001  TYPE STANDARD TABLE OF TFK001 ,
wa_t_tfk001  LIKE LINE OF it_t_tfk001,
ld_c_tfk045b  TYPE TFK045B ,
ld_i_dfkkrp  TYPE DFKKRP ,
it_t_tfk001t  TYPE STANDARD TABLE OF TFK001T ,
wa_t_tfk001t  LIKE LINE OF it_t_tfk001t,
ld_c_tfk045c  TYPE TFK045C ,
it_t_tfk045e  TYPE STANDARD TABLE OF TFK045E ,
wa_t_tfk045e  LIKE LINE OF it_t_tfk045e,
ld_c_t001  TYPE T001 ,
ld_c_tfk001b  TYPE TFK001B .

ld_c_tfk045a = 'Check type of data required'.
ld_i_dfkkrk = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_tfk001 to it_t_tfk001.
ld_c_tfk045b = 'Check type of data required'.
ld_i_dfkkrp = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_tfk001t to it_t_tfk001t.
ld_c_tfk045c = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_tfk045e to it_t_tfk045e.
ld_c_t001 = 'Check type of data required'.
ld_c_tfk001b = 'Check type of data required'.

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