SAP ICL_NEW_SUBROGATION Function Module for Generates a New Subrogation with Automatically Generated Items
ICL_NEW_SUBROGATION is a standard icl new subrogation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generates a New Subrogation with Automatically Generated Items 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 new subrogation FM, simply by entering the name ICL_NEW_SUBROGATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: ICL_CF_EXT_SBR1
Program Name: SAPLICL_CF_EXT_SBR1
Main Program: SAPLICL_CF_EXT_SBR1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ICL_NEW_SUBROGATION 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_NEW_SUBROGATION'"Generates a New Subrogation with Automatically Generated Items.
EXPORTING
* I_SUBROGEE = ' ' "Claim Participant
* I_AUTOMATIC = ' ' "
* I_CREATE_ENTRY = 'X' "
IMPORTING
E_SUBROGEE = "Payer
ES_SUBROGATION_HEADER = "Subrogation/Recovery Money Request: Header Data
TABLES
T_SUBROGATION_HISTORY = "Subrogation/Recovery Money Request: Header Data
T_SUBROGATION_ITEM = "Subrogation Items in a Subrogation Case (Overview)
T_PAYOV = "Claim Payment: Overview of All Payments
T_PAYIP = "Claim Payment: Payment Items of a Payment
IMPORTING Parameters details for ICL_NEW_SUBROGATION
I_SUBROGEE - Claim Participant
Data type: ICL_PARTDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_AUTOMATIC -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_CREATE_ENTRY -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ICL_NEW_SUBROGATION
E_SUBROGEE - Payer
Data type: ICL_SUBROGEEOptional: No
Call by Reference: Yes
ES_SUBROGATION_HEADER - Subrogation/Recovery Money Request: Header Data
Data type: IICL_SUBROGATION_HEADEROptional: No
Call by Reference: Yes
TABLES Parameters details for ICL_NEW_SUBROGATION
T_SUBROGATION_HISTORY - Subrogation/Recovery Money Request: Header Data
Data type: IICL_SUBROGATION_HISTORYOptional: No
Call by Reference: Yes
T_SUBROGATION_ITEM - Subrogation Items in a Subrogation Case (Overview)
Data type: IICL_SUBROGATION_ITEMOptional: No
Call by Reference: Yes
T_PAYOV - Claim Payment: Overview of All Payments
Data type: ICL_PAYOOptional: No
Call by Reference: Yes
T_PAYIP - Claim Payment: Payment Items of a Payment
Data type: ICL_PAYIOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ICL_NEW_SUBROGATION 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_e_subrogee | TYPE ICL_SUBROGEE, " | |||
| lv_i_subrogee | TYPE ICL_PART, " SPACE | |||
| lt_t_subrogation_history | TYPE STANDARD TABLE OF IICL_SUBROGATION_HISTORY, " | |||
| lv_i_automatic | TYPE BOOLE-BOOLE, " SPACE | |||
| lt_t_subrogation_item | TYPE STANDARD TABLE OF IICL_SUBROGATION_ITEM, " | |||
| lv_es_subrogation_header | TYPE IICL_SUBROGATION_HEADER, " | |||
| lt_t_payov | TYPE STANDARD TABLE OF ICL_PAYO, " | |||
| lv_i_create_entry | TYPE BOOLE-BOOLE, " 'X' | |||
| lt_t_payip | TYPE STANDARD TABLE OF ICL_PAYI. " |
|   CALL FUNCTION 'ICL_NEW_SUBROGATION' "Generates a New Subrogation with Automatically Generated Items |
| EXPORTING | ||
| I_SUBROGEE | = lv_i_subrogee | |
| I_AUTOMATIC | = lv_i_automatic | |
| I_CREATE_ENTRY | = lv_i_create_entry | |
| IMPORTING | ||
| E_SUBROGEE | = lv_e_subrogee | |
| ES_SUBROGATION_HEADER | = lv_es_subrogation_header | |
| TABLES | ||
| T_SUBROGATION_HISTORY | = lt_t_subrogation_history | |
| T_SUBROGATION_ITEM | = lt_t_subrogation_item | |
| T_PAYOV | = lt_t_payov | |
| T_PAYIP | = lt_t_payip | |
| . " ICL_NEW_SUBROGATION | ||
ABAP code using 7.40 inline data declarations to call FM ICL_NEW_SUBROGATION
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.| DATA(ld_i_subrogee) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_automatic). | ||||
| DATA(ld_i_automatic) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_create_entry). | ||||
| DATA(ld_i_create_entry) | = 'X'. | |||
Search for further information about these or an SAP related objects