SAP Function Modules

BKK_PAYM_ITEM_GET_LIST_FOR_BAP SAP Function module - Turnover List by Selection Criteria







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

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


Pattern for FM BKK_PAYM_ITEM_GET_LIST_FOR_BAP - BKK PAYM ITEM GET LIST FOR BAP





CALL FUNCTION 'BKK_PAYM_ITEM_GET_LIST_FOR_BAP' "Turnover List by Selection Criteria
  EXPORTING
    i_bkkrs =                   " ibkk42k-bkkrs  Bank Key
    i_acnum_int =               " ibkk42-acnum_int  Account Number for Current Account
*   i_date_from =               " dats          Field from Category DATS
*   i_date_to =                 " dats          Field from Category DATS
*   i_amount_from =             " bkk_aamntc    Amount in Account Currency (External Display)
*   i_amount_to =               " bkk_aamntc    Amount in Account Currency (External Display)
*   i_search_string =           " bkk_paynte    Payment Notes
*   i_max_items =               " sy-index      Loop, Current Loop Pass
  IMPORTING
    e_return =                  " bkk_rc2       Return Code
  TABLES
    e_tab_paym_items =          " bkkit         Turnover List
    e_tab_paym_notes =          " bkknt         Payment Note Data
    .  "  BKK_PAYM_ITEM_GET_LIST_FOR_BAP

ABAP code example for Function Module BKK_PAYM_ITEM_GET_LIST_FOR_BAP





The ABAP code below is a full code listing to execute function module BKK_PAYM_ITEM_GET_LIST_FOR_BAP 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_return  TYPE BKK_RC2 ,
it_e_tab_paym_items  TYPE STANDARD TABLE OF BKKIT,"TABLES PARAM
wa_e_tab_paym_items  LIKE LINE OF it_e_tab_paym_items ,
it_e_tab_paym_notes  TYPE STANDARD TABLE OF BKKNT,"TABLES PARAM
wa_e_tab_paym_notes  LIKE LINE OF it_e_tab_paym_notes .


DATA(ld_i_bkkrs) = some text here

DATA(ld_i_acnum_int) = some text here
DATA(ld_i_date_from) = 'Check type of data required'.
DATA(ld_i_date_to) = 'Check type of data required'.
DATA(ld_i_amount_from) = 'Check type of data required'.
DATA(ld_i_amount_to) = 'Check type of data required'.
DATA(ld_i_search_string) = 'Check type of data required'.
DATA(ld_i_max_items) = '123 '.

"populate fields of struture and append to itab
append wa_e_tab_paym_items to it_e_tab_paym_items.

"populate fields of struture and append to itab
append wa_e_tab_paym_notes to it_e_tab_paym_notes. . CALL FUNCTION 'BKK_PAYM_ITEM_GET_LIST_FOR_BAP' EXPORTING i_bkkrs = ld_i_bkkrs i_acnum_int = ld_i_acnum_int * i_date_from = ld_i_date_from * i_date_to = ld_i_date_to * i_amount_from = ld_i_amount_from * i_amount_to = ld_i_amount_to * i_search_string = ld_i_search_string * i_max_items = ld_i_max_items IMPORTING e_return = ld_e_return TABLES e_tab_paym_items = it_e_tab_paym_items e_tab_paym_notes = it_e_tab_paym_notes . " BKK_PAYM_ITEM_GET_LIST_FOR_BAP
IF SY-SUBRC EQ 0. "All OK 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_return  TYPE BKK_RC2 ,
ld_i_bkkrs  TYPE IBKK42K-BKKRS ,
it_e_tab_paym_items  TYPE STANDARD TABLE OF BKKIT ,
wa_e_tab_paym_items  LIKE LINE OF it_e_tab_paym_items,
ld_i_acnum_int  TYPE IBKK42-ACNUM_INT ,
it_e_tab_paym_notes  TYPE STANDARD TABLE OF BKKNT ,
wa_e_tab_paym_notes  LIKE LINE OF it_e_tab_paym_notes,
ld_i_date_from  TYPE DATS ,
ld_i_date_to  TYPE DATS ,
ld_i_amount_from  TYPE BKK_AAMNTC ,
ld_i_amount_to  TYPE BKK_AAMNTC ,
ld_i_search_string  TYPE BKK_PAYNTE ,
ld_i_max_items  TYPE SY-INDEX .


ld_i_bkkrs = some text here

"populate fields of struture and append to itab
append wa_e_tab_paym_items to it_e_tab_paym_items.

ld_i_acnum_int = some text here

"populate fields of struture and append to itab
append wa_e_tab_paym_notes to it_e_tab_paym_notes.
ld_i_date_from = '123 '.
ld_i_date_to = '123 '.
ld_i_amount_from = '123 '.
ld_i_amount_to = '123 '.
ld_i_search_string = '123 '.
ld_i_max_items = '123 '.

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