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 Payment Frequency entity for a specific contract element, such as a contract or coverage.
It lets you change the payment frequences of specified contracts in a policy on a defined effective date. You can perform multiple changes in parallel for multiple contracts within the selected policy.
The system checks that only one of these three indicators is set.
The system returns the following data:
The following sample coding shows you how to change the payment frequency of the first contract of the policy with the number 10000000000111745 on January 1, 2013 to "04" (quarterly). The input parameter if_simulation has the effect that the system only simulates the change, without releasing it.
ls_pmd_mod TYPE /pm0/abt_svc_pmd_upd,
lt_pmd_mod TYPE /pm0/abt_svc_pmd_upd_t,
ls_pmd_mod_fm TYPE /pm0/abt_svc_pmd_upd_fm,
lt_pmd_mod_fm TYPE /pm0/abt_svc_pmd_upd_fm_t,
lt_result TYPE /pm0/abt_svc_pmd_read_t,
lt_messages TYPE bapiret2_t,
ln_error_cd TYPE /pm0/abt_svc_chg_steperror_cd.
ls_pmd_mod-policyproduct_id = 1.
ls_pmd_mod-payfrq_cd = '04'.
ls_pmd_mod-premium_id = '1'.
APPEND ls_pmd_mod TO lt_pmd_mod.
ls_pmd_mod_fm-policyproduct_id = 1.
ls_pmd_mod_fm-payfrq_cd = 'X'.
ls_pmd_mod_fm-premium_id = '1'.
APPEND ls_pmd_mod_fm TO lt_pmd_mod_fm.
CALL FUNCTION '/PM0/ABT_SVC_PMD_CHANGE'
iv_policynr_tt = '10000000000111745'
iv_effective_dt = '20130101'
if_release = 'X'
if_simulation = ''
if_save = ''
it_mod_paymentfrequency = lt_pmd_mod
it_mod_paymentfrequency_fm = lt_pmd_mod_fm
et_result = lt_result
et_messages = lt_messages
en_error_cd = ln_error_cd.
BAdI: Change Payment Frequency (Extension In/Out)(/PM0/ABT_SVC_PMD_BADI).
BAdI: Change Payment Frequency (Extension In/Out).