Ansicht
Dokumentation
/PM0/ABT_SVC_BNFCRY_AMD - Change Beneficiary
CL_GUI_FRONTEND_SERVICES - Frontend Services General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
You use this function module to change the Beneficiary entity for a specific contract element, such as a contract or coverage.
It lets you add, change, or delete a new beneficiary on a defined effective date. You can perform multiple changes in parallel within the selected contract element, for instance, you can add two beneficiaries, or add, change, or delete entries at the same time.
If you set the Simulation indicator, the system simulates the change of beneficiary on the contract version that is valid on the effective date.
If you set the Release indicator, the system executes the change to the beneficiary and releases the change.
If you set the Save indicator, the system saves the current processing version of the application.
The system checks that only one of these three indicators is set.
The system returns the following data:
- Updated list of all beneficiaries where changes have been made (parameter ET_RESULT).
Example
The following sample coding shows you how to add a beneficiary with ID 1002 to the policy with the number 102456 on effective date 1 January 2014. The input parameter if_simulation has the effect that the system only simulates the change, without releasing it.
DATA:
lt_bnfcry_add TYPE /pm0/abt_srv_bnfcry_crt_t,
lt_bnfcry_add_fm TYPE /pm0/abt_srv_bnfcry_crt_fm_t,
lt_result TYPE /pm0/abt_srv_bnfcry_read_t,
lt_messages TYPE bapiret2_t.
lt_bnfcry_add = VALUE #(
(
policyproduct_id = 1
pm_id = 'BNFCRY000000'
partner_id = '0000001002'
bnftp_cd = '001'
covcptype_cd = '00001'
rankvl_cd = '1'
refusal_cd = '001'
share_vl = 100
) ).
lt_bnfcry_add_fm = VALUE #(
(
policyproduct_id = 1
pm_id = abap_true
partner_id = abap_true
bnftp_cd = abap_true
covcptype_cd = abap_true
rankvl_cd = abap_true
refusal_cd = abap_true
share_vl = abap_true
CALL FUNCTION '/PM0/ABT_BNFCRY_AMD'
EXPORTING
iv_policynr_tt = '10000082456'
if_simulation = 'X'
it_add = lt_bnfcry_add
it_add_fm = lt_bnfcry_add_fm
iv_effective_date = '20140101'
iv_appl_dt = '20140101'
iv_applin_dt = '20140101'
IMPORTING
et_result = lt_result
et_messages = lt_messages.
Notes
Further information Role-Based Business Transactions → Change Beneficiary.
Enhancements
BAdI: Change Beneficiary (Extension In/Out) (/PM0/ABT_SVC_BNFCRY_BADI).
BAdI: Change Beneficiary (Extension In/Out).
Parameters
EN_ERROR_CDET_EXTENSIONOUT
ET_MESSAGES
ET_PREM
ET_RESULT
EV_APPLNR_CD
EV_SESSION_TOKEN
IF_OPEN_SESSION
IF_RELEASE
IF_SAVE
IF_SIMULATION
IT_ADD_BENEFICIARY
IT_ADD_BENEFICIARY_FM
IT_DEL_BENEFICIARY
IT_EXTENSIONIN
IT_MOD_BENEFICIARY
IT_MOD_BENEFICIARY_FM
IV_APPLIN_DT
IV_APPLNR_CD
IV_APPL_DT
IV_CHGREASON_ID
IV_EFFECTIVE_DATE
IV_LOCKKEY_ID
IV_OTHCHGREASON_TT
IV_POLICYNR_TT
IV_SESSION_TOKEN
Exceptions
Function Group
/SAPLABT_SVC_CHANGEAddresses (Business Address Services) General Material Data
This documentation is copyright by SAP AG.
Length: 10549 Date: 20240426 Time: 082149 sap01-206 ( 58 ms )