Ansicht
Dokumentation

ISU_COMP_END_PAYPLAN_DATE_R996 - Event R996: Determines End Date of BB Plan from Transferred Migration Data

ISU_COMP_END_PAYPLAN_DATE_R996 - Event R996: Determines End Date of BB Plan from Transferred Migration Data

Fill RESBD Structure from EBP Component Structure   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module called for event R996 determines the end date of a payment plan, which is migrated to IS-U. This function module also determines the end month of a payment plan, and also the end of the budget billing period if these values are not transferred to the migration program or are overridden. For this purpose the following data is available:

  • X_EVER:,,Contract data for the budget billing plan
  • X_EABP:,,Header data for the budget billing plan
  • X_TE420:,,Schedule master data for the portion

The following data is returned to the calling program:

  • Y_PYPLA:,,,,,,End month of payment plan
,,,,,,,,,,This value can be transferred.
  • Y_ENDPERIODE:,,End date of budget billing period
,,,,,,,,,,This value must be transferred.

In the IS-U configuration of this function module the following logic has been modeled for the calculation of the above values:

  • An anniversary month for the payment plan is transferred to the migration program (field EVER-PYPLA):
First of all a comparison date is constructed. This consists of day 01, the anniversary month and either the current year (anniversary month is after current month) or the next year (anniversary month is before current month).
After the comparison date has been established, the last due date of the payment plan is determined, for which the month and year are before or the same as the month and year of the comparison date.
The end date of the payment plan is then set to the same date as this last due date.
  • The end of the payment plan period is transferred to the migration program instead of the anniversary month:
If the end date of the payment plan period is after the current date, then the anniversary month is determined from that end date.
If the end date of the budget billing period is before the current date, then an error message is output.
  • If neither the end month of the payment plan nor the end date of the payment plan period is transferred to the migration program, then the end date of the payment plan period is set to the same date as the last due date that was transferred and the anniversary month corresponding to the month of that last due date.

To overwrite the logic of this function module, copy the function module ISU_SAMPLE_R996. You can then program your own logic in this new function module.

To ensure that your function module is still active at run time, enter the following data in table TFKFBC:

  • APPLK:,,R,,(==> utility company)
  • FBEVE:,,R996(==> event)
  • FBCNT:,,0,,(==> consecutive number)
  • FUNCC:,,




Parameters

XT_EABPS
X_EABP
X_EVER
X_TE420
Y_ENDPERIODE
Y_PYPLA

Exceptions

INPUT_ERROR

Function Group

E25P

TXBHW - Original Tax Base Amount in Local Currency   General Material Data  
This documentation is copyright by SAP AG.

Length: 3463 Date: 20240523 Time: 093418     sap01-206 ( 58 ms )