SAP Function Modules

BKK_HY_SELECT_CHANGEDOC20 SAP Function module - Gets the Values from CHHDR Again Using the Selection Criteria Entered







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

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


Pattern for FM BKK_HY_SELECT_CHANGEDOC20 - BKK HY SELECT CHANGEDOC20





CALL FUNCTION 'BKK_HY_SELECT_CHANGEDOC20' "Gets the Values from CHHDR Again Using the Selection Criteria Entered
* EXPORTING
*   i_hytype =                  " bkk_hytype    Account Hierarchy: Hierarchy Type
*   i_ch_bkkrs =                " bkk_bkkrs     Bank Area
*   i_ch_banks =                " banks         Bank Key
*   i_ch_bankl =                " bankk         Bank Key
*   i_ch_acc_ext =              " bkk_acext     Account Number for Current Account
*   i_ch_user =                 " cdusername    User Name of Changer in Change Document
*   i_ch_time =                 " cduzeit       Time of Change
*   i_ch_date =                 " cddatum       Creation Date of Change Document
* TABLES
*   ut_bkk610 =                 " bkk610
  EXCEPTIONS
    DB_ERROR_ACC_INT_EXT = 1    "
    E_WRONG_INTERFACE = 2       "
    .  "  BKK_HY_SELECT_CHANGEDOC20

ABAP code example for Function Module BKK_HY_SELECT_CHANGEDOC20





The ABAP code below is a full code listing to execute function module BKK_HY_SELECT_CHANGEDOC20 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_ut_bkk610  TYPE STANDARD TABLE OF BKK610,"TABLES PARAM
wa_ut_bkk610  LIKE LINE OF it_ut_bkk610 .

DATA(ld_i_hytype) = 'Check type of data required'.
DATA(ld_i_ch_bkkrs) = 'Check type of data required'.
DATA(ld_i_ch_banks) = 'Check type of data required'.
DATA(ld_i_ch_bankl) = 'Check type of data required'.
DATA(ld_i_ch_acc_ext) = 'Check type of data required'.
DATA(ld_i_ch_user) = 'Check type of data required'.
DATA(ld_i_ch_time) = 'Check type of data required'.
DATA(ld_i_ch_date) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ut_bkk610 to it_ut_bkk610. . CALL FUNCTION 'BKK_HY_SELECT_CHANGEDOC20' * EXPORTING * i_hytype = ld_i_hytype * i_ch_bkkrs = ld_i_ch_bkkrs * i_ch_banks = ld_i_ch_banks * i_ch_bankl = ld_i_ch_bankl * i_ch_acc_ext = ld_i_ch_acc_ext * i_ch_user = ld_i_ch_user * i_ch_time = ld_i_ch_time * i_ch_date = ld_i_ch_date * TABLES * ut_bkk610 = it_ut_bkk610 EXCEPTIONS DB_ERROR_ACC_INT_EXT = 1 E_WRONG_INTERFACE = 2 . " BKK_HY_SELECT_CHANGEDOC20
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_i_hytype  TYPE BKK_HYTYPE ,
it_ut_bkk610  TYPE STANDARD TABLE OF BKK610 ,
wa_ut_bkk610  LIKE LINE OF it_ut_bkk610,
ld_i_ch_bkkrs  TYPE BKK_BKKRS ,
ld_i_ch_banks  TYPE BANKS ,
ld_i_ch_bankl  TYPE BANKK ,
ld_i_ch_acc_ext  TYPE BKK_ACEXT ,
ld_i_ch_user  TYPE CDUSERNAME ,
ld_i_ch_time  TYPE CDUZEIT ,
ld_i_ch_date  TYPE CDDATUM .

ld_i_hytype = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ut_bkk610 to it_ut_bkk610.
ld_i_ch_bkkrs = 'Check type of data required'.
ld_i_ch_banks = 'Check type of data required'.
ld_i_ch_bankl = 'Check type of data required'.
ld_i_ch_acc_ext = 'Check type of data required'.
ld_i_ch_user = 'Check type of data required'.
ld_i_ch_time = 'Check type of data required'.
ld_i_ch_date = '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 BKK_HY_SELECT_CHANGEDOC20 or its description.