SAP Function Modules

BKKF_BKKA_COMP_COLLDATE SAP Function module - Compute collection date with SDD







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

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


Pattern for FM BKKF_BKKA_COMP_COLLDATE - BKKF BKKA COMP COLLDATE





CALL FUNCTION 'BKKF_BKKA_COMP_COLLDATE' "Compute collection date with SDD
  EXPORTING
    i_bkkrs =                   " bkk42-bkkrs   Bank Area
    i_acnum_int =               " bkk42-acnum_int  Internal Account Number for Current Account
    i_term_start =              " bkkterm-termstart  Term Start
    i_latest_termstart =        " bkkterm-latest_termstart  Term Start
    i_term_end =                " bkkterm-term_end  End of Term
    i_tab_mandate =             " bkk_tab_mandate_rec  Table type for Mandates for recipients
    i_flg_sepa_payment = 'X'    " bkk_xflag     X-Flag
    i_post_date =               " d
  IMPORTING
    e_collection_date =         " bkkterm-collection_date  Collection date of term initial amount
    e_due_date_sdd =            " bkkpohd-date_due  Term Start
    e_tab_rc =                  " bkk_tab_msg_col_message  Return Code and corresponding Message
    e_rc =                      " sy-subrc      Return Value of ABAP Statements
    .  "  BKKF_BKKA_COMP_COLLDATE

ABAP code example for Function Module BKKF_BKKA_COMP_COLLDATE





The ABAP code below is a full code listing to execute function module BKKF_BKKA_COMP_COLLDATE 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_collection_date  TYPE BKKTERM-COLLECTION_DATE ,
ld_e_due_date_sdd  TYPE BKKPOHD-DATE_DUE ,
ld_e_tab_rc  TYPE BKK_TAB_MSG_COL_MESSAGE ,
ld_e_rc  TYPE SY-SUBRC .


SELECT single BKKRS
FROM BKK42
INTO @DATA(ld_i_bkkrs).


SELECT single ACNUM_INT
FROM BKK42
INTO @DATA(ld_i_acnum_int).


SELECT single TERMSTART
FROM BKKTERM
INTO @DATA(ld_i_term_start).


SELECT single LATEST_TERMSTART
FROM BKKTERM
INTO @DATA(ld_i_latest_termstart).


SELECT single TERM_END
FROM BKKTERM
INTO @DATA(ld_i_term_end).

DATA(ld_i_tab_mandate) = 'Check type of data required'.
DATA(ld_i_flg_sepa_payment) = 'Check type of data required'.
DATA(ld_i_post_date) = 'Check type of data required'. . CALL FUNCTION 'BKKF_BKKA_COMP_COLLDATE' EXPORTING i_bkkrs = ld_i_bkkrs i_acnum_int = ld_i_acnum_int i_term_start = ld_i_term_start i_latest_termstart = ld_i_latest_termstart i_term_end = ld_i_term_end i_tab_mandate = ld_i_tab_mandate i_flg_sepa_payment = ld_i_flg_sepa_payment i_post_date = ld_i_post_date IMPORTING e_collection_date = ld_e_collection_date e_due_date_sdd = ld_e_due_date_sdd e_tab_rc = ld_e_tab_rc e_rc = ld_e_rc . " BKKF_BKKA_COMP_COLLDATE
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_collection_date  TYPE BKKTERM-COLLECTION_DATE ,
ld_i_bkkrs  TYPE BKK42-BKKRS ,
ld_e_due_date_sdd  TYPE BKKPOHD-DATE_DUE ,
ld_i_acnum_int  TYPE BKK42-ACNUM_INT ,
ld_e_tab_rc  TYPE BKK_TAB_MSG_COL_MESSAGE ,
ld_i_term_start  TYPE BKKTERM-TERMSTART ,
ld_e_rc  TYPE SY-SUBRC ,
ld_i_latest_termstart  TYPE BKKTERM-LATEST_TERMSTART ,
ld_i_term_end  TYPE BKKTERM-TERM_END ,
ld_i_tab_mandate  TYPE BKK_TAB_MANDATE_REC ,
ld_i_flg_sepa_payment  TYPE BKK_XFLAG ,
ld_i_post_date  TYPE D .


SELECT single BKKRS
FROM BKK42
INTO ld_i_bkkrs.


SELECT single ACNUM_INT
FROM BKK42
INTO ld_i_acnum_int.


SELECT single TERMSTART
FROM BKKTERM
INTO ld_i_term_start.


SELECT single LATEST_TERMSTART
FROM BKKTERM
INTO ld_i_latest_termstart.


SELECT single TERM_END
FROM BKKTERM
INTO ld_i_term_end.

ld_i_tab_mandate = 'Check type of data required'.
ld_i_flg_sepa_payment = 'Check type of data required'.
ld_i_post_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 BKKF_BKKA_COMP_COLLDATE or its description.