SAP Function Modules

API_RE_TC_CREATE SAP Function module







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

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


Pattern for FM API_RE_TC_CREATE - API RE TC CREATE





CALL FUNCTION 'API_RE_TC_CREATE' "
  EXPORTING
    is_tax_corr_object =        " bapi_re_tc_object_int
*   it_option_rate =            " bapi_re_t_option_rate_int
*   it_orig_acct_obj_assign =   " bapi_re_t_obj_assign_int
*   it_optrate_obj_assign =     " bapi_re_t_obj_assign_int
*   it_tax_corr_base =          " bapi_re_t_tax_corr_base_int
*   it_tax_corr_calc_result =   " bapi_re_t_tc_calc_res_int
*   it_resubm_rule =            " bapi_re_t_resubm_rule_int
*   it_status =                 " bapi_re_t_status_int
*   is_ci_data =                " reit_tax_corr_object_ci
*   it_ext_data =               " re_t_ext_data
*   id_trans =                  " bapi_re_additional_fields-trans
*   if_test_run = ' '           " bapi_re_additional_fields-testrun
*   if_msglist_instead_of_exc = ' '  " recabool
*   io_msglist =                " object
  IMPORTING
    ed_bukrs =                  " bapi_re_tc_object_int-bukrs
    ed_tcno =                   " bapi_re_tc_object_int-tcno
    ef_stored =                 " recabool
  EXCEPTIONS
    ERROR = 1                   "
    .  "  API_RE_TC_CREATE

ABAP code example for Function Module API_RE_TC_CREATE





The ABAP code below is a full code listing to execute function module API_RE_TC_CREATE 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_ed_bukrs  TYPE BAPI_RE_TC_OBJECT_INT-BUKRS ,
ld_ed_tcno  TYPE BAPI_RE_TC_OBJECT_INT-TCNO ,
ld_ef_stored  TYPE RECABOOL .

DATA(ld_is_tax_corr_object) = 'Check type of data required'.
DATA(ld_it_option_rate) = 'Check type of data required'.
DATA(ld_it_orig_acct_obj_assign) = 'Check type of data required'.
DATA(ld_it_optrate_obj_assign) = 'Check type of data required'.
DATA(ld_it_tax_corr_base) = 'Check type of data required'.
DATA(ld_it_tax_corr_calc_result) = 'Check type of data required'.
DATA(ld_it_resubm_rule) = 'Check type of data required'.
DATA(ld_it_status) = 'Check type of data required'.
DATA(ld_is_ci_data) = 'Check type of data required'.
DATA(ld_it_ext_data) = 'Check type of data required'.

DATA(ld_id_trans) = some text here

DATA(ld_if_test_run) = some text here
DATA(ld_if_msglist_instead_of_exc) = 'Check type of data required'.
DATA(ld_io_msglist) = 'Check type of data required'. . CALL FUNCTION 'API_RE_TC_CREATE' EXPORTING is_tax_corr_object = ld_is_tax_corr_object * it_option_rate = ld_it_option_rate * it_orig_acct_obj_assign = ld_it_orig_acct_obj_assign * it_optrate_obj_assign = ld_it_optrate_obj_assign * it_tax_corr_base = ld_it_tax_corr_base * it_tax_corr_calc_result = ld_it_tax_corr_calc_result * it_resubm_rule = ld_it_resubm_rule * it_status = ld_it_status * is_ci_data = ld_is_ci_data * it_ext_data = ld_it_ext_data * id_trans = ld_id_trans * if_test_run = ld_if_test_run * if_msglist_instead_of_exc = ld_if_msglist_instead_of_exc * io_msglist = ld_io_msglist IMPORTING ed_bukrs = ld_ed_bukrs ed_tcno = ld_ed_tcno ef_stored = ld_ef_stored EXCEPTIONS ERROR = 1 . " API_RE_TC_CREATE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_ed_bukrs  TYPE BAPI_RE_TC_OBJECT_INT-BUKRS ,
ld_is_tax_corr_object  TYPE BAPI_RE_TC_OBJECT_INT ,
ld_ed_tcno  TYPE BAPI_RE_TC_OBJECT_INT-TCNO ,
ld_it_option_rate  TYPE BAPI_RE_T_OPTION_RATE_INT ,
ld_ef_stored  TYPE RECABOOL ,
ld_it_orig_acct_obj_assign  TYPE BAPI_RE_T_OBJ_ASSIGN_INT ,
ld_it_optrate_obj_assign  TYPE BAPI_RE_T_OBJ_ASSIGN_INT ,
ld_it_tax_corr_base  TYPE BAPI_RE_T_TAX_CORR_BASE_INT ,
ld_it_tax_corr_calc_result  TYPE BAPI_RE_T_TC_CALC_RES_INT ,
ld_it_resubm_rule  TYPE BAPI_RE_T_RESUBM_RULE_INT ,
ld_it_status  TYPE BAPI_RE_T_STATUS_INT ,
ld_is_ci_data  TYPE REIT_TAX_CORR_OBJECT_CI ,
ld_it_ext_data  TYPE RE_T_EXT_DATA ,
ld_id_trans  TYPE BAPI_RE_ADDITIONAL_FIELDS-TRANS ,
ld_if_test_run  TYPE BAPI_RE_ADDITIONAL_FIELDS-TESTRUN ,
ld_if_msglist_instead_of_exc  TYPE RECABOOL ,
ld_io_msglist  TYPE OBJECT .

ld_is_tax_corr_object = 'Check type of data required'.
ld_it_option_rate = 'Check type of data required'.
ld_it_orig_acct_obj_assign = 'Check type of data required'.
ld_it_optrate_obj_assign = 'Check type of data required'.
ld_it_tax_corr_base = 'Check type of data required'.
ld_it_tax_corr_calc_result = 'Check type of data required'.
ld_it_resubm_rule = 'Check type of data required'.
ld_it_status = 'Check type of data required'.
ld_is_ci_data = 'Check type of data required'.
ld_it_ext_data = 'Check type of data required'.

ld_id_trans = some text here

ld_if_test_run = some text here
ld_if_msglist_instead_of_exc = 'Check type of data required'.
ld_io_msglist = '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 API_RE_TC_CREATE or its description.