SAP Function Modules

CACSBR_VAL_GET_CONT_DEC SAP Function module - Business Rules: Get decision table contents







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

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


Pattern for FM CACSBR_VAL_GET_CONT_DEC - CACSBR VAL GET CONT DEC





CALL FUNCTION 'CACSBR_VAL_GET_CONT_DEC' "Business Rules: Get decision table contents
  EXPORTING
    iv_proc_type =              " cacs_agr_typ  Agreement Type
    iv_dec_guid =               " fdt_uuid      FDT: Universal Unique Identifier
*   iv_tech_time =              " cacstechtime  Technical Validity Time
*   id_busi_time =              " cacs_busibegin_date  Start Date of Effective Validity
*   iv_flg_both_ac_inac = ABAP_FALSE  " char1   Single-Character Indicator
  IMPORTING
    ed_tech_time =              " cacstechtime  Technical Validity (Time Stamp: YYYY.MM.DD hh:mm:ss)
    et_table_data =             " cacs_br_tt_valdt_fs  Business Rule: Table Type of the Final Structure
    et_catalog =                " cacs_tt_fdt_dec_tab_struc  BRFplus: Decision table structure catalogue
    et_errors =                 " bapiret2_t    Return parameter table
    .  "  CACSBR_VAL_GET_CONT_DEC

ABAP code example for Function Module CACSBR_VAL_GET_CONT_DEC





The ABAP code below is a full code listing to execute function module CACSBR_VAL_GET_CONT_DEC 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_tech_time  TYPE CACSTECHTIME ,
ld_et_table_data  TYPE CACS_BR_TT_VALDT_FS ,
ld_et_catalog  TYPE CACS_TT_FDT_DEC_TAB_STRUC ,
ld_et_errors  TYPE BAPIRET2_T .

DATA(ld_iv_proc_type) = 'Check type of data required'.
DATA(ld_iv_dec_guid) = 'Check type of data required'.
DATA(ld_iv_tech_time) = 'Check type of data required'.
DATA(ld_id_busi_time) = 'Check type of data required'.
DATA(ld_iv_flg_both_ac_inac) = 'Check type of data required'. . CALL FUNCTION 'CACSBR_VAL_GET_CONT_DEC' EXPORTING iv_proc_type = ld_iv_proc_type iv_dec_guid = ld_iv_dec_guid * iv_tech_time = ld_iv_tech_time * id_busi_time = ld_id_busi_time * iv_flg_both_ac_inac = ld_iv_flg_both_ac_inac IMPORTING ed_tech_time = ld_ed_tech_time et_table_data = ld_et_table_data et_catalog = ld_et_catalog et_errors = ld_et_errors . " CACSBR_VAL_GET_CONT_DEC
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_ed_tech_time  TYPE CACSTECHTIME ,
ld_iv_proc_type  TYPE CACS_AGR_TYP ,
ld_et_table_data  TYPE CACS_BR_TT_VALDT_FS ,
ld_iv_dec_guid  TYPE FDT_UUID ,
ld_et_catalog  TYPE CACS_TT_FDT_DEC_TAB_STRUC ,
ld_iv_tech_time  TYPE CACSTECHTIME ,
ld_et_errors  TYPE BAPIRET2_T ,
ld_id_busi_time  TYPE CACS_BUSIBEGIN_DATE ,
ld_iv_flg_both_ac_inac  TYPE CHAR1 .

ld_iv_proc_type = 'Check type of data required'.
ld_iv_dec_guid = 'Check type of data required'.
ld_iv_tech_time = 'Check type of data required'.
ld_id_busi_time = 'Check type of data required'.
ld_iv_flg_both_ac_inac = '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 CACSBR_VAL_GET_CONT_DEC or its description.