Ansicht
Dokumentation

/CPD/PWSSE_MP_ALER - BAdI: Commercial Project Alerts

/CPD/PWSSE_MP_ALER - BAdI: Commercial Project Alerts

General Data in Customer Master   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Project Workspace(CA-CPD-WS) component of Commercial Project Management (CA-CPD). You can use this BAdI to implement your own logic for processing business objects and calculating various parameters to display alerts to end users. Any implementation of this BAdI definition must work together with the alert framework of this solution.

You can define the following types of alerts:

  • Default alert conditions with parameters values through Customizing
  • User-defined alert conditions with parameter values through the personalization option in the user interface

Note that where user-defined alert conditions exist, they take priority over the default alert conditions in Customizing.

You have made the following settings in Customizing for Commercial Project Management by choosing Master Data > Commercial Project:

  1. Defined alert IDs in Define Alerts
  2. Assigned alert IDs to commercial project types and configured default alert conditions for each alert ID in Make Settings for Commercial Projects

Optionally, you may also define your own alert conditions through the personalization option in the Cross-Project View.

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

You can create separate BAdI implementations using Alert ID as the filter condition. You can view the related Customizing setting by choosing Commercial Project Management > Master Data > Commercial Project > Define Alerts.

The following default implementations are available:

  • /CPD/CL_PWS_S4H_ALT_CRS
This BAdI implementation retrieves the number of change requests that are new or being processed for a commercial project.
  • /CPD/CL_PWS_S4H_ALT_ISSUES
This BAdI implementation retrieves the number of new issues or issues being processed for a commercial project.
  • /CPD/CL_PWS_S4H_ALT_NV_CUST_PAY
This BAdI implementation returns the total amount of customer payments against issued invoices.
  • /CPD/CL_PWS_S4H_ALT_OD_BIL_PLAN
This BAdI implementation returns the number of days that have elapsed between the billing due date and non-creation of a debit memo request.
  • /CPD/CL_PWS_S4H_ALT_OD_CUST_INV
This BAdI implementation returns the number of days that have elapsed since non-creation of invoices from open debit memos.
  • /CPD/CL_PWS_S4H_ALT_OD_CUST_PAY
This BAdI implementation returns the number of days that have elapsed from the due date in the invoice and since which a customer payment has not been received.
  • /CPD/CL_PWS_S4H_ALT_OD_VEN_PAY
This BAdI implementation returns the number of daysthat have elapsed since the due date for payment in the vendor invoice.
  • /CPD/CL_PWS_S4H_ALT_OVD_VEN_INV
This BAdI implementation returns the number of days that have elapsed since the creation of a goods receipt and not creating the corresponding vendor invoice.
  • /CPD/CL_PWS_S4H_ALT_OVERDUE_GR
This BAdI implementation calculates the duration by which goods receipt creation has not been carried out from the delivery date of purchase orders for business objects in the commercial project structure. This BAdI implementation returns the duration by which goods receipt creation is overdue.
  • /CPD/CL_PWS_S4H_ALT_PLAN_ACT
This BAdI implementation calculates the percentage of actual cost compared to the planned cost for a commercial project.
  • /CPD/CL_PWS_S4H_ALT_UNAPP_SES
This BAdI implementation returns the duration by which service entry sheets have remained unapproved.
  • /CPD/CL_PWS_S4H_ALT_WIP
This BAdI implementation returns the total monetary value of activities that are currently being executed. This is also referred to as work in progress (WIP).
  • /CPD/CL_PWS_S4H_ALT_CHECK
This BAdI implementation returns messagesfor the following situations:
  • When a contact person is not defined for a commercial project

  • When the commercial project start and end dates are not synchronized with the financial plan start and end dates

Note that you can also use 0CHK to return messages based on additional rules that have been defined as per customer requirements.

Method documentation:

  • GET_EXP_DATA_TYPES
You can use this Business Add-In (BAdI) method to define the data type for the alert.
You must create and activate your own implementation of this BAdI and add a short text to the implementation. You can do this in Customizing under SAP Commercial Project Management > Master Data > Business Add-Ins > BAdI: Commercial Project Alerts.
  • Import Parameters

IV_ALERT_ID: Alert ID
  • Export Parameters

EV_OUT_DATA_TYPE: Data element (semantic domain)
EV_OUT_DATA_CHARACTERISTIC: KPI Output Data Characterstic
  • GET_UNITS
You can use this Business Add-In (BAdI) method to get information such as the unit of measurement, currency, and their corresponding descriptions.
You must create and activate your own implementation of this BAdI and add a short text to the implementation. You can do this in Customizing under SAP Commercial Project Management > Master Data > Business Add-Ins > BAdI: Commercial Project Alerts.
  • Import Parameters

IV_ALERT_ID: Alert ID
IV_MP_GUID: Commercial Project GUID
  • Export Parameters

EV_QUANTITY_UNIT: Base Unit of Measure
EV_CURRENCY_UNIT: Currency Key
EV_QUANTITY_UNIT_DESC: Unit of Measurement Text
EV_CURRENCY_UNIT_DESC: Short Text of Currency
  • EXECUTE
You can use this Business Add-In (BAdI) method to execute your own business logic to process relevant business objects and get the value for an alert.
You must create and activate your own implementation of this BAdI and add a short text to the implementation. You can do this in Customizing under Commercial Project Management > Master Data > Business Add-Ins > BAdI: Commercial Project Alerts.
  • Import Parameters

IV_MP_GUID: Commercial Project GUID
IT_MP_GUID: Commercial Project GUID's Table ,,
IV_ALERT_ID: Alert ID
IV_QUANTITY_UNIT: Base Unit of Measure
IV_CURRENCY_UNIT: Currency Key
  • Export Parameters

EV_DATA: Value of the Alert (Used by IV_MP_GUID),,
ET_DATA: Values of Commercial Project Alert in Table Format (Used by IT_MP_GUID),,
ET_ALERT_MESSAGES: Alerts in the Form of Plain Text,,
EV_NO_DATA: Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
  • REFRESH
You can use this Business Add-In (BAdI) method to refresh alert data.
You must create and activate your own implementation of this BAdI and add a short text to the implementation. You can do this in Customizing under Commercial Project Management > Master Data > Business Add-Ins > BAdI: Commercial Project Alerts.
  • Import Parameter

IV_MP_GUID: Commercial Project GUID
IV_ALERT_ID: Alert ID






Vendor Master (General Section)   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 9803 Date: 20240328 Time: 222001     sap01-206 ( 151 ms )