Functionality This BAPI transfers Event DataRecords> (EDR) for toll billing from an external system and saves themin the SAP system. The EDRs created in the SAP system are assigned tothe EDR category> TOLLCOLL (toll billing). In asuccessful transfer, the system saves the EDRs in the database tableDFKKBIEDRTC. In the transfer, the system uses the External Reference of BillingDocument field> (BILLACCREF>) to determine therelated billing account for each EDR. If the system does not find thebilling account, it saves the EDR as a temporarily rejected EDR>in the database table DFKKBIEDRRJTC. For each EDR, the Transfer Time> field must containthe time stamp of the current system time. The system requires thetransfer time to decide whether the EDR has already been billed or not.Therefore, the BAPI must ensure that the transfer time of new EDRs isdefinitely not> in a billed period. The procedure is dependent onwhether an express billing is possible for the billing account:
- The system locks billing accounts where the Express
Billing> field is selected for the duration of the processing. If thesystem cannot run the lock - because billing is taking place at the sametime - it saves the EDR as a temporarily rejected EDR in the databasetable DFKKBIEDRRJTC. If the lock is successful, the system sets thetransfer time to a time that is before the time stamp.Billed To> of the billing account.
- Billing accounts with no express billing must not> be billed until
the present. Consider also the field Billing Delay > when defining the billing process>. Thisensures that the transfer time is not in a billed period. When you define the billing process,> youmust specify a sufficiently large billing delay.> Otherwise, thereis the danger that EDRs are transferred to a billed period and neverbilled. > Via organizational or technical means, make sure that thesystem time is synchronized on all application servers. The system checks all EDR data transferred. It logs errors in the exporttable RETURN. If the system finds errors, the BAPI does not make adatabase change: No EDRs are created. The BAPI does not> run a COMMIT WORK command.Notes To ensure best performance, you should create several EDRs with thisBAPI for each call. You can enhance this BAPi with no need for modification by implementingevent 8014>. Use the event to checkcustomer-specific fields and to fill customer-specific fields in tableDFKKBIEDRTC. The BAPI can automatically process customer-specific fields that are ofcharacter type:
- To do this, add the required character type fields to table DFKKBIEDRTC
and structure BAPI_TE_FKKBIEDR_TC.
- Transfer the values for these character type fields to the BAPI in the
import table EXTENSIONIN. Fill the field STRUCTURE with the value BAPI_TE_FKKBIEDR_TC>>. Enter the same value that you use in the import table EDRS in the fieldEDRREF.Further information For more information, see Customer Enhancement and Modification ofBAPIs (CA-BFA)> in the documentation for SAP NetWeaver>>in SAP Help Portal >>(help.sap.com).
|