SAP Function Modules

FICO_LIST_COMPARE_COND SAP Function module







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

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


Pattern for FM FICO_LIST_COMPARE_COND - FICO LIST COMPARE COND





CALL FUNCTION 'FICO_LIST_COMPARE_COND' "
  EXPORTING
    i_cond =                    " fico_icond    Condition
*   i_list_compare =            " fico_ilist    Condition List
    i_t_cond =                  " fico_typ_tas_cond  Table Type: Condition Table (Sorted)
*   i_t_condi =                 " fico_typ_tas_condi_buff  Conditions with Buffer Flag
*   i_cond_find =               " boole_d       If 'X' -> Replace i_cond if Condition Exists
*   i_useduntil =               " ficos_ov_list-d_useduntil  Used until
*   i_min_backdated_chng =      " fico_dmin_backdated_chng
*   i_listtype =                " ficot_condi-o_listtype  Condition group type
*   i_release_proc =            " boole_d       Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ")
    i_min_valid_from = G_CON_MINDATE  " fico_dvalidfrom  Minimum Value for Valid-From
    i_max_valid_to = G_CON_MAXDATE  " fico_dvalidto  Maximum Value for Valid-To
    i_t_conddiff =              " fico_typ_tas_conddiff  Table Type: Assignment Condition - Differentiation
*   i_t_status =                " ficot_status  Table for Status Selection
    i_langu = SY-LANGU          " spras         Language Key
*   i_ref_if =                  " if_fico_check_maintain_conds
*   i_startdate =               " fico_dvalidfrom
  IMPORTING
    e_rc =                      " sy-subrc      Return Value, Return Value After ABAP Statements
    e_cond_rep =                " fico_icond
  CHANGING
    c_t_return =                " bapiret2_t    Return Table
    .  "  FICO_LIST_COMPARE_COND

ABAP code example for Function Module FICO_LIST_COMPARE_COND





The ABAP code below is a full code listing to execute function module FICO_LIST_COMPARE_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_rc  TYPE SY-SUBRC ,
ld_e_cond_rep  TYPE FICO_ICOND .

DATA(ld_c_t_return) = 'Check type of data required'.
DATA(ld_i_cond) = 'Check type of data required'.
DATA(ld_i_list_compare) = 'Check type of data required'.
DATA(ld_i_t_cond) = 'Check type of data required'.
DATA(ld_i_t_condi) = 'Check type of data required'.
DATA(ld_i_cond_find) = 'Check type of data required'.

DATA(ld_i_useduntil) = 20210129
DATA(ld_i_min_backdated_chng) = 'Check type of data required'.

SELECT single O_LISTTYPE
FROM FICOT_CONDI
INTO @DATA(ld_i_listtype).

DATA(ld_i_release_proc) = 'Check type of data required'.
DATA(ld_i_min_valid_from) = 'Check type of data required'.
DATA(ld_i_max_valid_to) = 'Check type of data required'.
DATA(ld_i_t_conddiff) = 'Check type of data required'.
DATA(ld_i_t_status) = 'Check type of data required'.
DATA(ld_i_langu) = 'Check type of data required'.
DATA(ld_i_ref_if) = 'Check type of data required'.
DATA(ld_i_startdate) = 'Check type of data required'. . CALL FUNCTION 'FICO_LIST_COMPARE_COND' EXPORTING i_cond = ld_i_cond * i_list_compare = ld_i_list_compare i_t_cond = ld_i_t_cond * i_t_condi = ld_i_t_condi * i_cond_find = ld_i_cond_find * i_useduntil = ld_i_useduntil * i_min_backdated_chng = ld_i_min_backdated_chng * i_listtype = ld_i_listtype * i_release_proc = ld_i_release_proc i_min_valid_from = ld_i_min_valid_from i_max_valid_to = ld_i_max_valid_to i_t_conddiff = ld_i_t_conddiff * i_t_status = ld_i_t_status i_langu = ld_i_langu * i_ref_if = ld_i_ref_if * i_startdate = ld_i_startdate IMPORTING e_rc = ld_e_rc e_cond_rep = ld_e_cond_rep CHANGING c_t_return = ld_c_t_return . " FICO_LIST_COMPARE_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_c_t_return  TYPE BAPIRET2_T ,
ld_e_rc  TYPE SY-SUBRC ,
ld_i_cond  TYPE FICO_ICOND ,
ld_e_cond_rep  TYPE FICO_ICOND ,
ld_i_list_compare  TYPE FICO_ILIST ,
ld_i_t_cond  TYPE FICO_TYP_TAS_COND ,
ld_i_t_condi  TYPE FICO_TYP_TAS_CONDI_BUFF ,
ld_i_cond_find  TYPE BOOLE_D ,
ld_i_useduntil  TYPE FICOS_OV_LIST-D_USEDUNTIL ,
ld_i_min_backdated_chng  TYPE FICO_DMIN_BACKDATED_CHNG ,
ld_i_listtype  TYPE FICOT_CONDI-O_LISTTYPE ,
ld_i_release_proc  TYPE BOOLE_D ,
ld_i_min_valid_from  TYPE FICO_DVALIDFROM ,
ld_i_max_valid_to  TYPE FICO_DVALIDTO ,
ld_i_t_conddiff  TYPE FICO_TYP_TAS_CONDDIFF ,
ld_i_t_status  TYPE FICOT_STATUS ,
ld_i_langu  TYPE SPRAS ,
ld_i_ref_if  TYPE IF_FICO_CHECK_MAINTAIN_CONDS ,
ld_i_startdate  TYPE FICO_DVALIDFROM .

ld_c_t_return = 'Check type of data required'.
ld_i_cond = 'Check type of data required'.
ld_i_list_compare = 'Check type of data required'.
ld_i_t_cond = 'Check type of data required'.
ld_i_t_condi = 'Check type of data required'.
ld_i_cond_find = 'Check type of data required'.

ld_i_useduntil = 20210129
ld_i_min_backdated_chng = 'Check type of data required'.

SELECT single O_LISTTYPE
FROM FICOT_CONDI
INTO ld_i_listtype.

ld_i_release_proc = 'Check type of data required'.
ld_i_min_valid_from = 'Check type of data required'.
ld_i_max_valid_to = 'Check type of data required'.
ld_i_t_conddiff = 'Check type of data required'.
ld_i_t_status = 'Check type of data required'.
ld_i_langu = 'Check type of data required'.
ld_i_ref_if = 'Check type of data required'.
ld_i_startdate = '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 FICO_LIST_COMPARE_COND or its description.