Ansicht
Dokumentation

/CPD/ENGMT_PROJ_SAVE - BAdI: Custom Checks on Project Save

/CPD/ENGMT_PROJ_SAVE - BAdI: Custom Checks on Project Save

CPI1466 during Backup   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this Business Add-In (BAdI) to define custom logic to perform validations when you save a customer or an internal project. Please note that your custom logic will be invoked whenever there is a change to relevant fields of the project. For example, when a change to the work package dates results in a change in project dates.

Recommendation: If you wish to read project-related information in your custom implementation, it is recommended to use available CDS views that serve the intended purpose.

You may use the following importing parameters to define custom validations:

  1. is_engagementproject - a structure with fields that are relevant to the project header. The structure also includes additional fields added to the project header using field extensibility in the business context Engagement Project.
You may use only the following fields to write your custom logic:
  • MP_ID - Project ID

  • START_DATE - Project start date

  • END_DATE - Project end date

  • PROJECTTYPE - Project type (C - customer, I - Internal)

  • CUSTOMER - Customer ID (note that this field is relevant only if the value of PROJECTTYPE is C)

  • MP_STAGE - Project stage

  • ORG_ID - Service organization ID

  • COST_CENTER - Cost center ID

  • PROFIT_CENTER - Profit center ID

  • CURRENCY - Currency

  • CONFIDENTIAL - Confidential (Y - Yes, N - No)

  • USE_PROJECT_BILLING - Project Invoicing Solution (' ' - Billing solution based on billing proposal and debit memo request, X - Billing solution based on project billing request and billing document request)

  • Custom fields created with the Engagement Project business context

  1. it_project_roles - a table type for project roles and assigned business partners

You can use the changing parameter CT_MESSAGES to return messages based on the processing in your custom logic. Please note that message texts of only up to 200 characters are supported.

You may use the example code as a reference for business scenarios that you wish to validate.






ABAP Short Reference   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 4213 Date: 20240426 Time: 180523     sap01-206 ( 50 ms )