SAP Function Modules

ICLX_RETRIEVE_FO_IN SAP Function module - API 'Read Financial Overview from Backend'







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

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


Pattern for FM ICLX_RETRIEVE_FO_IN - ICLX RETRIEVE FO IN





CALL FUNCTION 'ICLX_RETRIEVE_FO_IN' "API 'Read Financial Overview from Backend'
* EXPORTING
*   iv_fill_field_descr = 'X'   " boole_d       "X"
*   iv_language_iso = SY-LANGU  " laiso         Language According to ISO 639
  IMPORTING
    ev_subrc =                  " sysubrc       Return Value from ABAP Statement
    ev_exception =              " iclx_exception_d  Exception
  TABLES
    it_financialoverview_guid =   " iclx_fo_retrieve_t
*   et_financialoverview_h =    " iclx_iclfo_ui_t
*   et_financialoverview_l =    " iclx_iclfo_ui_t
*   et_assignmentoverview =     " iclx_fo_assignment_s  Assignment Structure of FO Instances (Header, Line)
*   et_financialoverview_history_h =   " iclx_iclfo_ui_t
*   et_financialoverview_history_l =   " iclx_iclfo_ui_t
*   et_assignmenthistory =      " iclx_fo_assignment_s  Assignment Structure of FO Instances (Header, Line)
*   et_return =                 " bapiret2_t    Return Parameter(s)
    .  "  ICLX_RETRIEVE_FO_IN

ABAP code example for Function Module ICLX_RETRIEVE_FO_IN





The ABAP code below is a full code listing to execute function module ICLX_RETRIEVE_FO_IN 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_ev_subrc  TYPE SYSUBRC ,
ld_ev_exception  TYPE ICLX_EXCEPTION_D ,
it_it_financialoverview_guid  TYPE STANDARD TABLE OF ICLX_FO_RETRIEVE_T,"TABLES PARAM
wa_it_financialoverview_guid  LIKE LINE OF it_it_financialoverview_guid ,
it_et_financialoverview_h  TYPE STANDARD TABLE OF ICLX_ICLFO_UI_T,"TABLES PARAM
wa_et_financialoverview_h  LIKE LINE OF it_et_financialoverview_h ,
it_et_financialoverview_l  TYPE STANDARD TABLE OF ICLX_ICLFO_UI_T,"TABLES PARAM
wa_et_financialoverview_l  LIKE LINE OF it_et_financialoverview_l ,
it_et_assignmentoverview  TYPE STANDARD TABLE OF ICLX_FO_ASSIGNMENT_S,"TABLES PARAM
wa_et_assignmentoverview  LIKE LINE OF it_et_assignmentoverview ,
it_et_financialoverview_history_h  TYPE STANDARD TABLE OF ICLX_ICLFO_UI_T,"TABLES PARAM
wa_et_financialoverview_history_h  LIKE LINE OF it_et_financialoverview_history_h ,
it_et_financialoverview_history_l  TYPE STANDARD TABLE OF ICLX_ICLFO_UI_T,"TABLES PARAM
wa_et_financialoverview_history_l  LIKE LINE OF it_et_financialoverview_history_l ,
it_et_assignmenthistory  TYPE STANDARD TABLE OF ICLX_FO_ASSIGNMENT_S,"TABLES PARAM
wa_et_assignmenthistory  LIKE LINE OF it_et_assignmenthistory ,
it_et_return  TYPE STANDARD TABLE OF BAPIRET2_T,"TABLES PARAM
wa_et_return  LIKE LINE OF it_et_return .

DATA(ld_iv_fill_field_descr) = 'Check type of data required'.
DATA(ld_iv_language_iso) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_financialoverview_guid to it_it_financialoverview_guid.

"populate fields of struture and append to itab
append wa_et_financialoverview_h to it_et_financialoverview_h.

"populate fields of struture and append to itab
append wa_et_financialoverview_l to it_et_financialoverview_l.

"populate fields of struture and append to itab
append wa_et_assignmentoverview to it_et_assignmentoverview.

"populate fields of struture and append to itab
append wa_et_financialoverview_history_h to it_et_financialoverview_history_h.

"populate fields of struture and append to itab
append wa_et_financialoverview_history_l to it_et_financialoverview_history_l.

"populate fields of struture and append to itab
append wa_et_assignmenthistory to it_et_assignmenthistory.

"populate fields of struture and append to itab
append wa_et_return to it_et_return. . CALL FUNCTION 'ICLX_RETRIEVE_FO_IN' * EXPORTING * iv_fill_field_descr = ld_iv_fill_field_descr * iv_language_iso = ld_iv_language_iso IMPORTING ev_subrc = ld_ev_subrc ev_exception = ld_ev_exception TABLES it_financialoverview_guid = it_it_financialoverview_guid * et_financialoverview_h = it_et_financialoverview_h * et_financialoverview_l = it_et_financialoverview_l * et_assignmentoverview = it_et_assignmentoverview * et_financialoverview_history_h = it_et_financialoverview_history_h * et_financialoverview_history_l = it_et_financialoverview_history_l * et_assignmenthistory = it_et_assignmenthistory * et_return = it_et_return . " ICLX_RETRIEVE_FO_IN
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_ev_subrc  TYPE SYSUBRC ,
ld_iv_fill_field_descr  TYPE BOOLE_D ,
it_it_financialoverview_guid  TYPE STANDARD TABLE OF ICLX_FO_RETRIEVE_T ,
wa_it_financialoverview_guid  LIKE LINE OF it_it_financialoverview_guid,
ld_ev_exception  TYPE ICLX_EXCEPTION_D ,
ld_iv_language_iso  TYPE LAISO ,
it_et_financialoverview_h  TYPE STANDARD TABLE OF ICLX_ICLFO_UI_T ,
wa_et_financialoverview_h  LIKE LINE OF it_et_financialoverview_h,
it_et_financialoverview_l  TYPE STANDARD TABLE OF ICLX_ICLFO_UI_T ,
wa_et_financialoverview_l  LIKE LINE OF it_et_financialoverview_l,
it_et_assignmentoverview  TYPE STANDARD TABLE OF ICLX_FO_ASSIGNMENT_S ,
wa_et_assignmentoverview  LIKE LINE OF it_et_assignmentoverview,
it_et_financialoverview_history_h  TYPE STANDARD TABLE OF ICLX_ICLFO_UI_T ,
wa_et_financialoverview_history_h  LIKE LINE OF it_et_financialoverview_history_h,
it_et_financialoverview_history_l  TYPE STANDARD TABLE OF ICLX_ICLFO_UI_T ,
wa_et_financialoverview_history_l  LIKE LINE OF it_et_financialoverview_history_l,
it_et_assignmenthistory  TYPE STANDARD TABLE OF ICLX_FO_ASSIGNMENT_S ,
wa_et_assignmenthistory  LIKE LINE OF it_et_assignmenthistory,
it_et_return  TYPE STANDARD TABLE OF BAPIRET2_T ,
wa_et_return  LIKE LINE OF it_et_return.

ld_iv_fill_field_descr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_financialoverview_guid to it_it_financialoverview_guid.
ld_iv_language_iso = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_financialoverview_h to it_et_financialoverview_h.

"populate fields of struture and append to itab
append wa_et_financialoverview_l to it_et_financialoverview_l.

"populate fields of struture and append to itab
append wa_et_assignmentoverview to it_et_assignmentoverview.

"populate fields of struture and append to itab
append wa_et_financialoverview_history_h to it_et_financialoverview_history_h.

"populate fields of struture and append to itab
append wa_et_financialoverview_history_l to it_et_financialoverview_history_l.

"populate fields of struture and append to itab
append wa_et_assignmenthistory to it_et_assignmenthistory.

"populate fields of struture and append to itab
append wa_et_return to it_et_return.

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