SAP Function Modules

FKK_BANK_STATEMENT_F4 SAP Function module







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

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


Pattern for FM FKK_BANK_STATEMENT_F4 - FKK BANK STATEMENT F4





CALL FUNCTION 'FKK_BANK_STATEMENT_F4' "
  EXPORTING
    i_bukrs =                   " t001-bukrs    Company Code
*   i_hbkid =                   " t012-hbkid    House bank ID
*   i_hktid =                   " t012k-hktid
*   i_aznum =                   " febko-aznum
*   i_azdat =                   " febko-azdat
*   i_kukey =                   " febko-kukey
  IMPORTING
    e_hbkid =                   " t012-hbkid
    e_hktid =                   " t012k-hktid
    e_aznum =                   " febko-aznum
    e_azdat =                   " febko-azdat
    e_kukey =                   " febko-kukey
    e_keyz1 =                   " dfkkzk-keyz1
    e_keyr1 =                   " dfkkrk-keyr1
  EXCEPTIONS
    BANK_STATMNT_NOT_FOUND = 1  "
    NO_SELECTION = 2            "
    .  "  FKK_BANK_STATEMENT_F4

ABAP code example for Function Module FKK_BANK_STATEMENT_F4





The ABAP code below is a full code listing to execute function module FKK_BANK_STATEMENT_F4 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_e_hbkid  TYPE T012-HBKID ,
ld_e_hktid  TYPE T012K-HKTID ,
ld_e_aznum  TYPE FEBKO-AZNUM ,
ld_e_azdat  TYPE FEBKO-AZDAT ,
ld_e_kukey  TYPE FEBKO-KUKEY ,
ld_e_keyz1  TYPE DFKKZK-KEYZ1 ,
ld_e_keyr1  TYPE DFKKRK-KEYR1 .


SELECT single BUKRS
FROM T001
INTO @DATA(ld_i_bukrs).


SELECT single HBKID
FROM T012
INTO @DATA(ld_i_hbkid).


SELECT single HKTID
FROM T012K
INTO @DATA(ld_i_hktid).


SELECT single AZNUM
FROM FEBKO
INTO @DATA(ld_i_aznum).


SELECT single AZDAT
FROM FEBKO
INTO @DATA(ld_i_azdat).


SELECT single KUKEY
FROM FEBKO
INTO @DATA(ld_i_kukey).
. CALL FUNCTION 'FKK_BANK_STATEMENT_F4' EXPORTING i_bukrs = ld_i_bukrs * i_hbkid = ld_i_hbkid * i_hktid = ld_i_hktid * i_aznum = ld_i_aznum * i_azdat = ld_i_azdat * i_kukey = ld_i_kukey IMPORTING e_hbkid = ld_e_hbkid e_hktid = ld_e_hktid e_aznum = ld_e_aznum e_azdat = ld_e_azdat e_kukey = ld_e_kukey e_keyz1 = ld_e_keyz1 e_keyr1 = ld_e_keyr1 EXCEPTIONS BANK_STATMNT_NOT_FOUND = 1 NO_SELECTION = 2 . " FKK_BANK_STATEMENT_F4
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_e_hbkid  TYPE T012-HBKID ,
ld_i_bukrs  TYPE T001-BUKRS ,
ld_e_hktid  TYPE T012K-HKTID ,
ld_i_hbkid  TYPE T012-HBKID ,
ld_e_aznum  TYPE FEBKO-AZNUM ,
ld_i_hktid  TYPE T012K-HKTID ,
ld_e_azdat  TYPE FEBKO-AZDAT ,
ld_i_aznum  TYPE FEBKO-AZNUM ,
ld_e_kukey  TYPE FEBKO-KUKEY ,
ld_i_azdat  TYPE FEBKO-AZDAT ,
ld_e_keyz1  TYPE DFKKZK-KEYZ1 ,
ld_i_kukey  TYPE FEBKO-KUKEY ,
ld_e_keyr1  TYPE DFKKRK-KEYR1 .


SELECT single BUKRS
FROM T001
INTO ld_i_bukrs.


SELECT single HBKID
FROM T012
INTO ld_i_hbkid.


SELECT single HKTID
FROM T012K
INTO ld_i_hktid.


SELECT single AZNUM
FROM FEBKO
INTO ld_i_aznum.


SELECT single AZDAT
FROM FEBKO
INTO ld_i_azdat.


SELECT single KUKEY
FROM FEBKO
INTO ld_i_kukey.

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