Ansicht
Dokumentation

/PM0/ABT_SVC_PMD_CHANGE - Change Payment Frequency

/PM0/ABT_SVC_PMD_CHANGE - Change Payment Frequency

BAL_S_LOG - Application Log: Log header data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

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.

  • If you set the Simulation indicator, the system simulates the change of payment frequence on the contract version that is valid on the effective date.
  • If you set the Release indicator, the system executes the change of the payment frequency 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 payment frequencies where changes have been made (parameter ET_RESULT)

Example

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.

DATA:

      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'

  EXPORTING

    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

  IMPORTING

    et_result                  = lt_result

    et_messages                = lt_messages

    en_error_cd                = ln_error_cd.

Notes

Further information Change Payment Frequency.

Enhancements

BAdI: Change Payment Frequency (Extension In/Out)(/PM0/ABT_SVC_PMD_BADI).

BAdI: Change Payment Frequency (Extension In/Out).





Parameters

EN_ERROR_CD
ET_EXTENSIONOUT
ET_MESSAGES
ET_PREM
ET_RESULT
EV_APPLNR_CD
EV_SESSION_TOKEN
IF_OPEN_SESSION
IF_RELEASE
IF_SAVE
IF_SIMULATION
IT_EXTENSIONIN
IT_MOD_PAYMENTFREQUENCY
IT_MOD_PAYMENTFREQUENCY_FM
IT_MOD_POLPR
IT_MOD_POLPR_FM
IT_MOD_VALID
IT_MOD_VALID_FM
IV_APPLIN_DT
IV_APPLNR_CD
IV_APPL_DT
IV_CHGREASON_ID
IV_EFFECTIVE_DT
IV_LOCKKEY_ID
IV_OTHCHGREASON_TT
IV_POLICYNR_TT
IV_SESSION_TOKEN

Exceptions

Function Group

/SAPLABT_SVC_CHANGE

BAL_S_LOG - Application Log: Log header data   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 6035 Date: 20240420 Time: 015810     sap01-206 ( 61 ms )