Ansicht
Dokumentation

EINA0001 - IS-U: determine budget billing cycle from total budget bill.

EINA0001 - IS-U: determine budget billing cycle from total budget bill.

ROGBILLS - Synchronize billing plans   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Enhancement

You can use this enhancement to change the budget billing cycle of a budget billing plan. The following fields and structures are available as basic data for determination:

  • TOTAL_AMOUNT: Total budget billing amount of all contracts, including all due dates of the budget billing plan.
  • T_CYCLES_PORTION: Table of permissible budget billing cycles of the budget billing portion.
  • T_EABP: Table of budget billing header data of all contracts
  • T_EVER: Table of contract data

Note

If you want to change the budget billing cycle to a value that is not included in the T_CYCLES_PORTION table, this change is not activated.

Enter your coding per function module in the following include files:

Function module Include file

EXIT_SAPLEA61_001 ZXEA61U01

Example

Previous cycle: T_EABP-ABSZYK = 1

Table T_CYCLES_PORTION with the following fields:

ABSZYK ANZFAELL
1 12
2 6
3 4
4 3
6 2

New cycle based on TOTAL_AMOUNT:

  • more than 700,-: Abszyk = 1
  • up to 700,-: Abszyk = 2
  • up to 500,-: Abszyk = 3
  • up to 300,-: Abszyk = 4

Coding

* Data definition
data: wa_ever like ever,
wa_eabp like eabp,
wa_cycles_portion like rea65,
l_abszyk like eabp-abszyk.

* Read current cycle
read table t_EABP into wa_eabp index 1.
L_abszyk = wa_eabp-abszyk

* Total amount as parameter for new budget billing cycle
if total_amount between 0 and 299.
y_cycle = 4.
endif.
...
if total_amount ge 700.
y_cycle = 4.
endif.

* Check budget billing cycle in table T_CYCLES_PORTION
read table T_CYCLES_PORTION into wa_cycles_portion
with key abszyk = y_cycle.
if sy-subrc <> 0.
* Processing, when Y_CYCLE is an unpermitted cycle.
endif.






Fill RESBD Structure from EBP Component Structure   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2940 Date: 20240419 Time: 145102     sap01-206 ( 30 ms )