SAP Function Modules

ICL_IBNRDIRECT_READ SAP Function module







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

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


Pattern for FM ICL_IBNRDIRECT_READ - ICL IBNRDIRECT READ





CALL FUNCTION 'ICL_IBNRDIRECT_READ' "
  EXPORTING
    i_maxrows =                 " i
    i_applyear =                " icl_applyear
    i_applmonth =               " icl_applmonth
    i_ibnrstatus =              " icl_ibnrstatus
    i_resgrtype =               " icl_resgrtype
*   i_resgr_from =              " icl_resgr
*   i_resgr_to =                " icl_resgr
  IMPORTING
    e_rowcount_selected =       " i
  TABLES
    t_ibnrdirect =              " icl_t_ibnrdirect
    .  "  ICL_IBNRDIRECT_READ

ABAP code example for Function Module ICL_IBNRDIRECT_READ





The ABAP code below is a full code listing to execute function module ICL_IBNRDIRECT_READ 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_rowcount_selected  TYPE I ,
it_t_ibnrdirect  TYPE STANDARD TABLE OF ICL_T_IBNRDIRECT,"TABLES PARAM
wa_t_ibnrdirect  LIKE LINE OF it_t_ibnrdirect .

DATA(ld_i_maxrows) = 'Check type of data required'.
DATA(ld_i_applyear) = 'Check type of data required'.
DATA(ld_i_applmonth) = 'Check type of data required'.
DATA(ld_i_ibnrstatus) = 'Check type of data required'.
DATA(ld_i_resgrtype) = 'Check type of data required'.
DATA(ld_i_resgr_from) = 'Check type of data required'.
DATA(ld_i_resgr_to) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ibnrdirect to it_t_ibnrdirect. . CALL FUNCTION 'ICL_IBNRDIRECT_READ' EXPORTING i_maxrows = ld_i_maxrows i_applyear = ld_i_applyear i_applmonth = ld_i_applmonth i_ibnrstatus = ld_i_ibnrstatus i_resgrtype = ld_i_resgrtype * i_resgr_from = ld_i_resgr_from * i_resgr_to = ld_i_resgr_to IMPORTING e_rowcount_selected = ld_e_rowcount_selected TABLES t_ibnrdirect = it_t_ibnrdirect . " ICL_IBNRDIRECT_READ
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_rowcount_selected  TYPE I ,
ld_i_maxrows  TYPE I ,
it_t_ibnrdirect  TYPE STANDARD TABLE OF ICL_T_IBNRDIRECT ,
wa_t_ibnrdirect  LIKE LINE OF it_t_ibnrdirect,
ld_i_applyear  TYPE ICL_APPLYEAR ,
ld_i_applmonth  TYPE ICL_APPLMONTH ,
ld_i_ibnrstatus  TYPE ICL_IBNRSTATUS ,
ld_i_resgrtype  TYPE ICL_RESGRTYPE ,
ld_i_resgr_from  TYPE ICL_RESGR ,
ld_i_resgr_to  TYPE ICL_RESGR .

ld_i_maxrows = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ibnrdirect to it_t_ibnrdirect.
ld_i_applyear = 'Check type of data required'.
ld_i_applmonth = 'Check type of data required'.
ld_i_ibnrstatus = 'Check type of data required'.
ld_i_resgrtype = 'Check type of data required'.
ld_i_resgr_from = 'Check type of data required'.
ld_i_resgr_to = '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 ICL_IBNRDIRECT_READ or its description.