We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
You use this function module to change the Policyholder entity for a specific contract element, such as a contract or coverage.
It lets you update the policyholders of a policy on a defined effective date. You can perform multiple changes in parallel within the selected contract element, for instance, you can add a policyholder, while adding, changing, or deleting other entries at the same time.
The system checks that only one of these three indicators is set.
The system returns the following data:
The following sample coding demonstrates how a policyholder with the ID SMOKE002y is added to the policy with number 102456 on January 1, 2014. The input parameter IF_SIMULATION has the effect that the system only simulates the change, without releasing it.
lt_polhldr_add TYPE /pm0/abt_srv_polhldr_crt_t,
lt_polhldr_add_fm TYPE /pm0/abt_srv_polhldr_crt_fm_t,
lt_result TYPE /pm0/abt_srv_polhldr_read_t,
lt_messages TYPE bapiret2_t.
lt_polhldr_add = VALUE #(
pm_id = 'POLHLDR00000'
partner_id = 'SMOKE002'
addressnumber_id = '0000616020'
lt_polhldr_add_fm = VALUE #(
polhlder_id = 1
pm_id = abap_true
partner_id = abap_true
addressnumber_id = abap_true
CALL FUNCTION '/PM0/ABT_POLHLDR_AMD'
iv_policynr_tt = '10000082456'
if_simulation = 'X'
it_add = lt_polhldr_add
it_add_fm = lt_polhldr_add_fm
iv_effective_date = '20140101'
et_result = lt_result
et_messages = lt_messages.
To process further data from the calling system, use the Business Add-In (BAdI) BAdI: Change Policyholder (Extension In/Out) (/PM0/ABT_SVC_POLHLDR_BADI). You can use this BAdI to execute your own mapping and to fill the EXTENSIONOUT parameter.
In Customizing for Policy Management, choose Integration -> Services -> Remote-Enabled Function Modules -> Change -> Transfer Business -> BAdI: Change Policyholder (Extension In/Out).