Ansicht
Dokumentation

ISU_MKT_GNRL_DATA_SO - BAdI: IS-U General Data for Customer-Defined Logic

ISU_MKT_GNRL_DATA_SO - BAdI: IS-U General Data for Customer-Defined Logic

BAL Application Log Documentation   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Marketing for Utilities (IS-U-CS-MA) component. You can use this BAdI during the outbound processing of the data replication framework (DRF) to complete the following tasks:

  • Map IS-U specific data to customer-defined logic
  • Add custom logic for the calculation of different attributes of business partners

The IF_ISU_MKT_GNRL_SOA_BADI interface exposes the methods OUTBOUND_PROCESSING, CALCULATE_AVERAGE_ANNUAL, and CALCULATE_SEASONAL_DATA.

You can implement the OUTBOUND_PROCESSING method to customize the mapping of the fields of the internal structure to the DRF output class. This method has the following parameters:

  • IN
  • This is the internal structure for IS-U general data replication service, which contains data of the business partners to be replicated.

  • OUT
  • This changing parameter corresponds to the payload of the replication request and contains general data information of the business partners.

You can implement the CALCULATE_AVERAGE_ANNUAL method to customize the calculations for the following general data of the business partner to be replicated:

  • The average annual billed amount and currency over a five-year period
  • The average annual consumption over a five-year period
  • The billed amount and currency in the past 12 months
  • The consumption in the past 12 months

This method has the following parameters:

  • IN(importing)
  • This is the internal structure for the IS-U general data replication service, which contains data of the business partner to be replicated.

  • OUT(exporting)
  • This is the output structure for the IS-U general data replication service. It contains the business partner data that is calculated by the BAdI interface.

The CALCULATE_SEASONAL_DATA method is called inside of the CALCULATE_AVERAGE_ANNUAL method. You can implement the CALCULATE_SEASONAL_DATA method to customize the calculations for the following data of customers that have been moved-in for more than 12 months:

  • The total billed amount of a season
  • The total consumption of a season

You can maintain season definitions in Customizing under SAP Utilities > Energy Data Management > Basic Settings > Season Group.

You must use transaction DRFIMG, navigate to Customizing for Define Replication Models under Data Replication > Define Custom Setting for Data Replication, and then make the following Customizing settings:

  1. Define a replication model for the general data of business partners.
  2. Assign an outbound implementation.
  3. Assign a target system for the replication model and outbound implementation.
  4. Assign the outbound parameter PACK_SIZE_BULK.

For more information about the standard settings (filters and single uses), see the Spot Element Definitions tab in the BAdI Builder (transaction SE18).

BAdI Implementations

This interface comes up with the default BAdI implementation ISU_MKT_GNRL_SOA. Since this is a single-use BAdI, you should deactivate the existing implementation and create a new BAdI implementation if you want your customer-defined logic to be called at runtime.






CL_GUI_FRONTEND_SERVICES - Frontend Services   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 4495 Date: 20240523 Time: 155650     sap01-206 ( 67 ms )