SAP Function Modules

ICL_SUBROGATION_CREATE SAP Function module - Generates New Subrogation Entry







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

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


Pattern for FM ICL_SUBROGATION_CREATE - ICL SUBROGATION CREATE





CALL FUNCTION 'ICL_SUBROGATION_CREATE' "Generates New Subrogation Entry
* EXPORTING
*   i_active = ISCM_ACTIVE      " icl_active    Table Entry Is Active (A) or in Suspense (S)
*   i_claim = SPACE             " icl_claim     Claim Number
*   i_subclaim = SPACE          " icl_subcl     Subclaim
*   i_subro = SPACE             " icl_payment   Claim Payment
*   i_subsal = SPACE            " icl_subsal
*   i_curr = SPACE              " icl_paymentcur
*   i_status = ISCM_PSTAT_CREATED  " icl_payment12
*   i_method = SPACE            " icl_payment01
*   i_liabrate = 0              " icl_liabrate_neg  Negotiated liability rate in percent
*   i_guiltrate = 100           " icl_guiltrate  Liability Rate
*   i_xintracompany = SPACE     " icl_intracompany
*   i_subrostatus = SPACE       " icl_subrostatus  Legal Status of Subrogation
*   i_xnoins = SPACE            " icl_xnoins
*   i_duedate = SY-DATUM        " icl_duedatenet  Due Date for Net Payment
  IMPORTING
    es_subrogation_header =     " iicl_subrogation_header  Subrogation/Recovery Money Request: Header Data
    .  "  ICL_SUBROGATION_CREATE

ABAP code example for Function Module ICL_SUBROGATION_CREATE





The ABAP code below is a full code listing to execute function module ICL_SUBROGATION_CREATE 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_es_subrogation_header  TYPE IICL_SUBROGATION_HEADER .

DATA(ld_i_active) = 'Check type of data required'.
DATA(ld_i_claim) = 'Check type of data required'.
DATA(ld_i_subclaim) = 'Check type of data required'.
DATA(ld_i_subro) = 'Check type of data required'.
DATA(ld_i_subsal) = 'Check type of data required'.
DATA(ld_i_curr) = 'Check type of data required'.
DATA(ld_i_status) = 'Check type of data required'.
DATA(ld_i_method) = 'Check type of data required'.
DATA(ld_i_liabrate) = 'Check type of data required'.
DATA(ld_i_guiltrate) = 'Check type of data required'.
DATA(ld_i_xintracompany) = 'Check type of data required'.
DATA(ld_i_subrostatus) = 'Check type of data required'.
DATA(ld_i_xnoins) = 'Check type of data required'.
DATA(ld_i_duedate) = 'Check type of data required'. . CALL FUNCTION 'ICL_SUBROGATION_CREATE' * EXPORTING * i_active = ld_i_active * i_claim = ld_i_claim * i_subclaim = ld_i_subclaim * i_subro = ld_i_subro * i_subsal = ld_i_subsal * i_curr = ld_i_curr * i_status = ld_i_status * i_method = ld_i_method * i_liabrate = ld_i_liabrate * i_guiltrate = ld_i_guiltrate * i_xintracompany = ld_i_xintracompany * i_subrostatus = ld_i_subrostatus * i_xnoins = ld_i_xnoins * i_duedate = ld_i_duedate IMPORTING es_subrogation_header = ld_es_subrogation_header . " ICL_SUBROGATION_CREATE
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_es_subrogation_header  TYPE IICL_SUBROGATION_HEADER ,
ld_i_active  TYPE ICL_ACTIVE ,
ld_i_claim  TYPE ICL_CLAIM ,
ld_i_subclaim  TYPE ICL_SUBCL ,
ld_i_subro  TYPE ICL_PAYMENT ,
ld_i_subsal  TYPE ICL_SUBSAL ,
ld_i_curr  TYPE ICL_PAYMENTCUR ,
ld_i_status  TYPE ICL_PAYMENT12 ,
ld_i_method  TYPE ICL_PAYMENT01 ,
ld_i_liabrate  TYPE ICL_LIABRATE_NEG ,
ld_i_guiltrate  TYPE ICL_GUILTRATE ,
ld_i_xintracompany  TYPE ICL_INTRACOMPANY ,
ld_i_subrostatus  TYPE ICL_SUBROSTATUS ,
ld_i_xnoins  TYPE ICL_XNOINS ,
ld_i_duedate  TYPE ICL_DUEDATENET .

ld_i_active = 'Check type of data required'.
ld_i_claim = 'Check type of data required'.
ld_i_subclaim = 'Check type of data required'.
ld_i_subro = 'Check type of data required'.
ld_i_subsal = 'Check type of data required'.
ld_i_curr = 'Check type of data required'.
ld_i_status = 'Check type of data required'.
ld_i_method = 'Check type of data required'.
ld_i_liabrate = 'Check type of data required'.
ld_i_guiltrate = 'Check type of data required'.
ld_i_xintracompany = 'Check type of data required'.
ld_i_subrostatus = 'Check type of data required'.
ld_i_xnoins = 'Check type of data required'.
ld_i_duedate = '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_SUBROGATION_CREATE or its description.