SAP Function Modules

BCA_US_TD_ACCNT_COPY_STD_COND SAP Function module - Copy standard interest condition to individual condition







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

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


Pattern for FM BCA_US_TD_ACCNT_COPY_STD_COND - BCA US TD ACCNT COPY STD COND





CALL FUNCTION 'BCA_US_TD_ACCNT_COPY_STD_COND' "Copy standard interest condition to individual condition
  EXPORTING
    i_startdate =               " ibkk50-opendate  Date account opened
    i_matdate =                 " bca_us_bkk_td-maturity_date  BCA Time deposit maturity date
    i_bkkrs =                   " ibkk92-bkkrs  Bank area
    i_acnum_int =               " ibkk92-acnum_int  Internal account number for current account
    i_condgr =                  " tbkk85-condgr  Bank condition group
  IMPORTING
    e_wa_condition =            " ibkk91        Structure for condition overview : Condition
    e_wa_position =             " ibkk92        Structure for condition overview : Position
  TABLES
    t_category =                " ibkk90        Structure for condition categories
    t_condition =               " ibkk91        Structure for condition overview : Condition
    t_position =                " ibkk92        Structure for condition overview : Position
    t_std_cond =                " bkkc_t_std_cond
    t_ind_cond =                " bkkc_t_fima_cond
    t_result =                  " bkkc_t_cond_int
    .  "  BCA_US_TD_ACCNT_COPY_STD_COND

ABAP code example for Function Module BCA_US_TD_ACCNT_COPY_STD_COND





The ABAP code below is a full code listing to execute function module BCA_US_TD_ACCNT_COPY_STD_COND 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_wa_condition  TYPE IBKK91 ,
ld_e_wa_position  TYPE IBKK92 ,
it_t_category  TYPE STANDARD TABLE OF IBKK90,"TABLES PARAM
wa_t_category  LIKE LINE OF it_t_category ,
it_t_condition  TYPE STANDARD TABLE OF IBKK91,"TABLES PARAM
wa_t_condition  LIKE LINE OF it_t_condition ,
it_t_position  TYPE STANDARD TABLE OF IBKK92,"TABLES PARAM
wa_t_position  LIKE LINE OF it_t_position ,
it_t_std_cond  TYPE STANDARD TABLE OF BKKC_T_STD_COND,"TABLES PARAM
wa_t_std_cond  LIKE LINE OF it_t_std_cond ,
it_t_ind_cond  TYPE STANDARD TABLE OF BKKC_T_FIMA_COND,"TABLES PARAM
wa_t_ind_cond  LIKE LINE OF it_t_ind_cond ,
it_t_result  TYPE STANDARD TABLE OF BKKC_T_COND_INT,"TABLES PARAM
wa_t_result  LIKE LINE OF it_t_result .


DATA(ld_i_startdate) = 20210129

SELECT single MATURITY_DATE
FROM BCA_US_BKK_TD
INTO @DATA(ld_i_matdate).


DATA(ld_i_bkkrs) = some text here

DATA(ld_i_acnum_int) = some text here

SELECT single CONDGR
FROM TBKK85
INTO @DATA(ld_i_condgr).


"populate fields of struture and append to itab
append wa_t_category to it_t_category.

"populate fields of struture and append to itab
append wa_t_condition to it_t_condition.

"populate fields of struture and append to itab
append wa_t_position to it_t_position.

"populate fields of struture and append to itab
append wa_t_std_cond to it_t_std_cond.

"populate fields of struture and append to itab
append wa_t_ind_cond to it_t_ind_cond.

"populate fields of struture and append to itab
append wa_t_result to it_t_result. . CALL FUNCTION 'BCA_US_TD_ACCNT_COPY_STD_COND' EXPORTING i_startdate = ld_i_startdate i_matdate = ld_i_matdate i_bkkrs = ld_i_bkkrs i_acnum_int = ld_i_acnum_int i_condgr = ld_i_condgr IMPORTING e_wa_condition = ld_e_wa_condition e_wa_position = ld_e_wa_position TABLES t_category = it_t_category t_condition = it_t_condition t_position = it_t_position t_std_cond = it_t_std_cond t_ind_cond = it_t_ind_cond t_result = it_t_result . " BCA_US_TD_ACCNT_COPY_STD_COND
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_wa_condition  TYPE IBKK91 ,
ld_i_startdate  TYPE IBKK50-OPENDATE ,
it_t_category  TYPE STANDARD TABLE OF IBKK90 ,
wa_t_category  LIKE LINE OF it_t_category,
ld_e_wa_position  TYPE IBKK92 ,
ld_i_matdate  TYPE BCA_US_BKK_TD-MATURITY_DATE ,
it_t_condition  TYPE STANDARD TABLE OF IBKK91 ,
wa_t_condition  LIKE LINE OF it_t_condition,
ld_i_bkkrs  TYPE IBKK92-BKKRS ,
it_t_position  TYPE STANDARD TABLE OF IBKK92 ,
wa_t_position  LIKE LINE OF it_t_position,
ld_i_acnum_int  TYPE IBKK92-ACNUM_INT ,
it_t_std_cond  TYPE STANDARD TABLE OF BKKC_T_STD_COND ,
wa_t_std_cond  LIKE LINE OF it_t_std_cond,
ld_i_condgr  TYPE TBKK85-CONDGR ,
it_t_ind_cond  TYPE STANDARD TABLE OF BKKC_T_FIMA_COND ,
wa_t_ind_cond  LIKE LINE OF it_t_ind_cond,
it_t_result  TYPE STANDARD TABLE OF BKKC_T_COND_INT ,
wa_t_result  LIKE LINE OF it_t_result.


ld_i_startdate = 20210129

"populate fields of struture and append to itab
append wa_t_category to it_t_category.

SELECT single MATURITY_DATE
FROM BCA_US_BKK_TD
INTO ld_i_matdate.


"populate fields of struture and append to itab
append wa_t_condition to it_t_condition.

ld_i_bkkrs = some text here

"populate fields of struture and append to itab
append wa_t_position to it_t_position.

ld_i_acnum_int = some text here

"populate fields of struture and append to itab
append wa_t_std_cond to it_t_std_cond.

SELECT single CONDGR
FROM TBKK85
INTO ld_i_condgr.


"populate fields of struture and append to itab
append wa_t_ind_cond to it_t_ind_cond.

"populate fields of struture and append to itab
append wa_t_result to it_t_result.

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