SAP ICL_POL_GET Function Module for Get a single policy version
ICL_POL_GET is a standard icl pol get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get a single policy version processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for icl pol get FM, simply by entering the name ICL_POL_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: ICL_POLS_EXT
Program Name: SAPLICL_POLS_EXT
Main Program: SAPLICL_POLS_EXT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ICL_POL_GET pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ICL_POL_GET'"Get a single policy version.
EXPORTING
* I_POLVNR = "Policy Version Counter
* I_STRUC_TYPE = "Name of Structure in DDIC
* IV_XSUPPRESS_REIMPORT = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* IV_XBRF_PLUS = "
IMPORTING
ES_POL = "
EV_NEWIMP = "Import Status of Policy Snapshot
ER_DATA = "
ES_POL_OLD = "
TABLES
* T_POLO = "
* T_POLM = "
* T_POLN = "global memory structure for ICLPOLN
* T_POLL = "
* T_POLS = "Sums and Calculation Rules in Policy Snapshot
* T_POLBF = "Benefit Types in Policy Snapshot
EXCEPTIONS
POLVER_NOT_EXIST = 1 ERROR = 2
IMPORTING Parameters details for ICL_POL_GET
I_POLVNR - Policy Version Counter
Data type: ICL_POLVCNTROptional: Yes
Call by Reference: No ( called with pass by value option)
I_STRUC_TYPE - Name of Structure in DDIC
Data type: TABNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_XSUPPRESS_REIMPORT - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_XBRF_PLUS -
Data type: ICL_XBRF_PLUS_DOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ICL_POL_GET
ES_POL -
Data type: ICL_POLOptional: No
Call by Reference: No ( called with pass by value option)
EV_NEWIMP - Import Status of Policy Snapshot
Data type: ICL_POLIMPSTATOptional: No
Call by Reference: No ( called with pass by value option)
ER_DATA -
Data type: DATAOptional: No
Call by Reference: Yes
ES_POL_OLD -
Data type: ICL_POL_OLDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ICL_POL_GET
T_POLO -
Data type: ICL_POLOOptional: Yes
Call by Reference: No ( called with pass by value option)
T_POLM -
Data type: ICL_POLM_EXTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_POLN - global memory structure for ICLPOLN
Data type: ICL_POLNOptional: Yes
Call by Reference: Yes
T_POLL -
Data type: ICL_POLLOptional: Yes
Call by Reference: No ( called with pass by value option)
T_POLS - Sums and Calculation Rules in Policy Snapshot
Data type: ICL_POLSOptional: Yes
Call by Reference: Yes
T_POLBF - Benefit Types in Policy Snapshot
Data type: ICL_POLBFOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
POLVER_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
ERROR - Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ICL_POL_GET Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_es_pol | TYPE ICL_POL, " | |||
| lt_t_polo | TYPE STANDARD TABLE OF ICL_POLO, " | |||
| lv_i_polvnr | TYPE ICL_POLVCNTR, " | |||
| lv_polver_not_exist | TYPE ICL_POLVCNTR, " | |||
| lv_error | TYPE ICL_POLVCNTR, " | |||
| lt_t_polm | TYPE STANDARD TABLE OF ICL_POLM_EXT, " | |||
| lv_ev_newimp | TYPE ICL_POLIMPSTAT, " | |||
| lv_i_struc_type | TYPE TABNAME, " | |||
| lt_t_poln | TYPE STANDARD TABLE OF ICL_POLN, " | |||
| lv_er_data | TYPE DATA, " | |||
| lv_iv_xsuppress_reimport | TYPE BOOLE_D, " | |||
| lt_t_poll | TYPE STANDARD TABLE OF ICL_POLL, " | |||
| lv_es_pol_old | TYPE ICL_POL_OLD, " | |||
| lv_iv_xbrf_plus | TYPE ICL_XBRF_PLUS_D, " | |||
| lt_t_pols | TYPE STANDARD TABLE OF ICL_POLS, " | |||
| lt_t_polbf | TYPE STANDARD TABLE OF ICL_POLBF. " |
|   CALL FUNCTION 'ICL_POL_GET' "Get a single policy version |
| EXPORTING | ||
| I_POLVNR | = lv_i_polvnr | |
| I_STRUC_TYPE | = lv_i_struc_type | |
| IV_XSUPPRESS_REIMPORT | = lv_iv_xsuppress_reimport | |
| IV_XBRF_PLUS | = lv_iv_xbrf_plus | |
| IMPORTING | ||
| ES_POL | = lv_es_pol | |
| EV_NEWIMP | = lv_ev_newimp | |
| ER_DATA | = lv_er_data | |
| ES_POL_OLD | = lv_es_pol_old | |
| TABLES | ||
| T_POLO | = lt_t_polo | |
| T_POLM | = lt_t_polm | |
| T_POLN | = lt_t_poln | |
| T_POLL | = lt_t_poll | |
| T_POLS | = lt_t_pols | |
| T_POLBF | = lt_t_polbf | |
| EXCEPTIONS | ||
| POLVER_NOT_EXIST = 1 | ||
| ERROR = 2 | ||
| . " ICL_POL_GET | ||
ABAP code using 7.40 inline data declarations to call FM ICL_POL_GET
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects