SAP Function Modules

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







BKK_HY_SELECT_CHANGEDOCUMENTS 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_CHANGEDOCUMENTS 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_CHANGEDOCUMENTS - BKK HY SELECT CHANGEDOCUMENTS





CALL FUNCTION 'BKK_HY_SELECT_CHANGEDOCUMENTS' "Gets the Values from CHHDR Using the Selection Criteria Entered
  EXPORTING
    i_objectclass =             " cdhdr-objectclas
    i_ch_what =                 " ibkk6sc-cd_what
*   i_ch_bkkrs =                " ibkk6sc-bkkrs
*   i_ch_banks =                " ibkk6sc-banks
*   i_ch_bankl =                " ibkk6sc-bankl
*   i_ch_acc_ext =              " ibkk6sc-acc_ext
*   i_ch_user =                 " cdhdr-username
*   i_ch_time =                 " cdhdr-utime
*   i_ch_date =                 " cdhdr-udate
  EXCEPTIONS
    DB_ERROR_ACC_INT_EXT = 1    "
    E_WRONG_INTERFACE = 2       "
    .  "  BKK_HY_SELECT_CHANGEDOCUMENTS

ABAP code example for Function Module BKK_HY_SELECT_CHANGEDOCUMENTS





The ABAP code below is a full code listing to execute function module BKK_HY_SELECT_CHANGEDOCUMENTS 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).

 

SELECT single OBJECTCLAS
FROM CDHDR
INTO @DATA(ld_i_objectclass).


DATA(ld_i_ch_what) = some text here

DATA(ld_i_ch_bkkrs) = some text here

DATA(ld_i_ch_banks) = some text here

DATA(ld_i_ch_bankl) = some text here

DATA(ld_i_ch_acc_ext) = some text here

SELECT single USERNAME
FROM CDHDR
INTO @DATA(ld_i_ch_user).


SELECT single UTIME
FROM CDHDR
INTO @DATA(ld_i_ch_time).


SELECT single UDATE
FROM CDHDR
INTO @DATA(ld_i_ch_date).
. CALL FUNCTION 'BKK_HY_SELECT_CHANGEDOCUMENTS' EXPORTING i_objectclass = ld_i_objectclass i_ch_what = ld_i_ch_what * 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 EXCEPTIONS DB_ERROR_ACC_INT_EXT = 1 E_WRONG_INTERFACE = 2 . " BKK_HY_SELECT_CHANGEDOCUMENTS
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_objectclass  TYPE CDHDR-OBJECTCLAS ,
ld_i_ch_what  TYPE IBKK6SC-CD_WHAT ,
ld_i_ch_bkkrs  TYPE IBKK6SC-BKKRS ,
ld_i_ch_banks  TYPE IBKK6SC-BANKS ,
ld_i_ch_bankl  TYPE IBKK6SC-BANKL ,
ld_i_ch_acc_ext  TYPE IBKK6SC-ACC_EXT ,
ld_i_ch_user  TYPE CDHDR-USERNAME ,
ld_i_ch_time  TYPE CDHDR-UTIME ,
ld_i_ch_date  TYPE CDHDR-UDATE .


SELECT single OBJECTCLAS
FROM CDHDR
INTO ld_i_objectclass.


ld_i_ch_what = some text here

ld_i_ch_bkkrs = some text here

ld_i_ch_banks = some text here

ld_i_ch_bankl = some text here

ld_i_ch_acc_ext = some text here

SELECT single USERNAME
FROM CDHDR
INTO ld_i_ch_user.


SELECT single UTIME
FROM CDHDR
INTO ld_i_ch_time.


SELECT single UDATE
FROM CDHDR
INTO ld_i_ch_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 BKK_HY_SELECT_CHANGEDOCUMENTS or its description.