SAP ICL_IOBJ_SET Function Module for ICL: Set insured objects
ICL_IOBJ_SET is a standard icl iobj set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ICL: Set insured objects 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 iobj set FM, simply by entering the name ICL_IOBJ_SET 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_IOBJ_SET 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_IOBJ_SET'"ICL: Set insured objects.
EXPORTING
IV_POLVNR = "Counter of Policy Version
* I_XFROM_POL = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
IO_POL = "
TABLES
* T_POLO = "
* T_POLOAU = "
* T_POLOPE = "
* T_POLORE = "Extended ICLPOLOAU
* T_POLOSI = "
* T_POLOWA = "
EXCEPTIONS
MANCHNG_B4SAVE = 1
IMPORTING Parameters details for ICL_IOBJ_SET
IV_POLVNR - Counter of Policy Version
Data type: ICL_POLVCNTROptional: No
Call by Reference: No ( called with pass by value option)
I_XFROM_POL - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IO_POL -
Data type: CL_POLS_DATA_ICLOptional: No
Call by Reference: Yes
TABLES Parameters details for ICL_IOBJ_SET
T_POLO -
Data type: ICL_POLOOptional: Yes
Call by Reference: Yes
T_POLOAU -
Data type: ICL_POLOAUOptional: Yes
Call by Reference: No ( called with pass by value option)
T_POLOPE -
Data type: ICL_POLOPEOptional: Yes
Call by Reference: Yes
T_POLORE - Extended ICLPOLOAU
Data type: ICL_POLOREOptional: Yes
Call by Reference: Yes
T_POLOSI -
Data type: ICL_POLOSIOptional: Yes
Call by Reference: Yes
T_POLOWA -
Data type: ICL_POLOWAOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
MANCHNG_B4SAVE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ICL_IOBJ_SET 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: | ||||
| lt_t_polo | TYPE STANDARD TABLE OF ICL_POLO, " | |||
| lv_iv_polvnr | TYPE ICL_POLVCNTR, " | |||
| lv_manchng_b4save | TYPE ICL_POLVCNTR, " | |||
| lt_t_poloau | TYPE STANDARD TABLE OF ICL_POLOAU, " | |||
| lv_i_xfrom_pol | TYPE BOOLE_D, " | |||
| lv_io_pol | TYPE CL_POLS_DATA_ICL, " | |||
| lt_t_polope | TYPE STANDARD TABLE OF ICL_POLOPE, " | |||
| lt_t_polore | TYPE STANDARD TABLE OF ICL_POLORE, " | |||
| lt_t_polosi | TYPE STANDARD TABLE OF ICL_POLOSI, " | |||
| lt_t_polowa | TYPE STANDARD TABLE OF ICL_POLOWA. " |
|   CALL FUNCTION 'ICL_IOBJ_SET' "ICL: Set insured objects |
| EXPORTING | ||
| IV_POLVNR | = lv_iv_polvnr | |
| I_XFROM_POL | = lv_i_xfrom_pol | |
| IO_POL | = lv_io_pol | |
| TABLES | ||
| T_POLO | = lt_t_polo | |
| T_POLOAU | = lt_t_poloau | |
| T_POLOPE | = lt_t_polope | |
| T_POLORE | = lt_t_polore | |
| T_POLOSI | = lt_t_polosi | |
| T_POLOWA | = lt_t_polowa | |
| EXCEPTIONS | ||
| MANCHNG_B4SAVE = 1 | ||
| . " ICL_IOBJ_SET | ||
ABAP code using 7.40 inline data declarations to call FM ICL_IOBJ_SET
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