Ansicht
Dokumentation
/FSIH/API_CREATE_POL - Versicherung anlegen
TXBHW - Original Tax Base Amount in Local Currency Addresses (Business Address Services)Diese Dokumentation steht unter dem Copyright der SAP AG.
Funktionalität
This function creates a new insurance policy. If a loan/account ID is specified, it will be linked to the new policy.
The I_INS_POL import parameter contains the master data of the new insurance policy.
The loan/account can be identied using either the general I_ACC_SYSTEM and I_ACC_KEY import parameters, or the CML-specific I_VDARL_KEY import parameter. It is an error to provide both.
If using the general parameters, I_ACC_SYSTEM must contain a correct two-character string identifying which system contains the loan/account. (The supported loan/account systems are listed in the domain /FSIH/DOM_ACC_SYSTEM.) I_ACC_KEY must contain the proper key of the loan/account, converted to string format.
The export parameter E_LINK_ID contains the link ID of the new policy, in case a loan/account was specified and a link has been created.
Beispiel
** Specify the CML loan to link the new insurance to:
DATA: l_vdarl_key TYPE VDARL_KEY,
l_str_pol TYPE /fsih/str_ins_policy,
l_link_id TYPE /FSIH/DTE_LINK_ID.
l_vdarl_key-bukrs = '0001'.
l_vdarl_key-ranl = '0000080004902'.
** Specify insurance policy attributes:
* Main insurance attributes:
l_str_pol-pol_no = 'tjohejnummer'.
l_str_pol-ins_code = '124'.
l_str_pol-ins_type = '110002'.
l_str_pol-status = 'A'.
l_str_pol-status_reason = 'M'.
*l_str_pol-pol_holder = .
*l_str_pol-ins_comp = .
*l_str_pol-itv = .
*l_str_pol-agent = .
l_str_pol-portfolio = 'PORT1'.
l_str_pol-land = 'SE'.
l_str_pol-regio = ''.
l_str_pol-plcm_date = sy-DATLO.
l_str_pol-start_date = sy-DATLO.
l_str_pol-end_date = '20101231'.
l_str_pol-max_age = '65'.
l_str_pol-max_maturity = '25'.
*l_str_pol-auto_cncl_date = ''.
l_str_pol-forceplacement = ' '.
l_str_pol-event_occurred = ' '.
*l_str_pol-date_event_occ = ''.
l_str_pol-tax_deduct = ' '.
l_str_pol-min_coverage = '1000'.
l_str_pol-max_coverage = '1000000'.
* Premium plan attributes:
l_str_pol-pp_valid_from = l_str_pol-start_date.
l_str_pol-payer = l_str_pol-pol_holder.
l_str_pol-bank_id = '0001'.
l_str_pol-paym_method = 'E'.
l_str_pol-prem_type = 'P'. " possible: P, N, U
*l_str_pol-prem_rate = .
l_str_pol-prem_amount = 50.
l_str_pol-currency = 'USD'.
l_str_pol-rebate_method = '1'.
l_str_pol-paym_frequency = '1'.
*l_str_pol-accrual_method = ''.
** Call the Create API:
CALL FUNCTION '/FSIH/API_CREATE_POL'
EXPORTING
i_ins_pol = l_str_pol
* I_ACC_SYSTEM =
* I_ACC_KEY =
I_VDARL_KEY = l_vdarl_key
IMPORTING
E_LINK_ID = l_link_id
EXCEPTIONS
LOAN_KEY_INVALID = 1
FAILED = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hinweise
Weiterführende Informationen
Parameter
E_LINK_IDI_ACC_KEY
I_ACC_SYSTEM
I_INS_POL
I_VDARL_KEY
Ausnahmen
FAILEDLOAN_KEY_INVALID
Funktionsgruppe
H/SAPLIN_INSURANCEBAL_S_LOG - Application Log: Log header data Fill RESBD Structure from EBP Component Structure
Diese Dokumentation steht unter dem Copyright der SAP AG.
Length: 4211 Date: 20240523 Time: 164036 sap01-206 ( 44 ms )