Ansicht
Dokumentation
ISU_UIL_BILLING_SIMULATION - Simulate Billing
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
Functionality
This function module is used to simulate billing of utilities products.
The input parameters are the Product ID and Consumptionfields. The output parameters are the Net Amount and Currencyfields. The net amount is the total amount that is calculated from the billing simulation.
By default, billing simulation is performed for a one-year period. The installation facts of the utilities product are passed to this function module to simulate billing for the period.
The EASIMRATECAT configuration table of EASIMis used to maintain the template contract for the billing simulation process.
The rate category is fetched from the product for which billing is simulated.
Example
The input parameters of this function module are as follows:
- iv_contract_id
- This input parameter is the contract.
- iv_rate_category
- This input parameter is the rate category.
- iv_from
- This input parameter is the start date of billing simulation.
- iv_to
- This input parameter is the end date of billing simulation.
- it_instfacts
- This input parameter is the installation facts.
- iv_consumption
- This input parameter is the consumption.
The output parameters of this function module are as follows:
- es_bill_doc
- This output parameter is the document number details and line items.
- ev_bd_number
- This output parameter is the billing document number.
- et_return
- This output parameter is the error handling.
Notes
This function module is called inside the SIMULATION_BILL method, which is in the CL_ISU_UIL_API_SIMULATION_BILL class. This class is part of the OData function import, and the net amount and currency are the output of the function import. The CL_ISU_UIL_API_SIMULATION_BILL class is called inside the OData function import. You pass the consumption and product ID as input to the function import (for example, /sap/opu/odata/sap/ISU_UPIL_SRV/SimulateBill?Consumption='7200'&ProductID='SPRINT_DEMO_4').
Further information
Parameters
ES_BILL_DOCET_RETURN
EV_BD_NUMBER
IT_INSTFACTS
IV_CONSUMPTION
IV_CONTRACT_ID
IV_FROM
IV_INSTALLATION
IV_RATE_CATEGORY
IV_TO
Exceptions
EDM_PROFILE_ERRORGENERAL_FAULT
READ_CONTRACT_ERROR
Function Group
ISU_UIL_API_BILL_SIM_FGABAP Short Reference RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 3766 Date: 20240523 Time: 094122 sap01-206 ( 56 ms )