Ansicht
Dokumentation

FINOC_RULE_PRO_ENH - Identify Projects and Assign New Profit Center

FINOC_RULE_PRO_ENH - Identify Projects and Assign New Profit Center

TXBHW - Original Tax Base Amount in Local Currency   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) FINOC_RULE_PRO_ENH is used to customize rules to process projects.

You can use this BAdI to implement your own logic to identify projects for an organizational change and to assign a new profit center. The BAdI is called when new projects are created, updated, or when an organizational change is activated.

The following parameters are transferred to the default implementation class CL_FINOC_RULE_PRO_ENH of the BAdI FINOC_RULE_PRO_ENH and can be changed:

  • CV_CDS_VIEW is passed to the CHANGE_CDS_NAME method:
This method passes the name of the customized CDS view, which contains the project data with additional fields that aren't included in the standard CDS view FINOC_RULE_PRO_DEFAULT. These fields might be required in method CHANGE_CDS_RESULT when your company-specific rules are applied.
  • CT_CDS_RESULT is passed to the CHANGE_CDS_RESULT method:
This method passes the table of data selected from the CDS view name, which is passed to the CV_CDS_VIEW parameter.

By default, the standard CDS view name is passed to the corresponding method (CHANGE_CDS_NAME). So, if no additional logic is needed, no action is required.

However, it's also possible to use this BAdI to implement new logic for all assigned projects. You can create a customized CDS view, based on the standard CDS view FINOC_RULE_PRO_DEFAULT or based on the CDS view FINOC_RULE_PRO_BASE, where you can include additional fields and assign the new profit center. The default CDS view selects data from the base CDS view.

The name of this customized CDS view is passed to the CV_CDS_VIEW parameter in the CHANGE_CDS_NAME method. In the CHANGE_CDS_RESULT method, you can implement new logic and overwrite existing data.

Regardless of the CDS view name in the CV_CDS_VIEW parameter and whether it is the standard CDS view or a customized one, you can implement some logic in the CHANGE_CDS_RESULT method to overwrite the existing data.

Note: You can define your logic in the methods or in the CDS views. To optimize performance, define your logic in the CDS views.

You have variety of possibilities to filter records in the CDS view for sales order items, which shouldn't be transferred or to enrich them for further calculation.

Restrictions

  • You cannot pass an empty string or name of a non-existent CDS view to CV_CDS_VIEW parameter.
  • If you create a customized CDS view, it must contain all the fields from the standard CDS view with identical names and data types. You can add additional fields.
  • The changed data in CT_CDS_RESULT method is examined with consistency checks.






BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 3171 Date: 20240523 Time: 193245     sap01-206 ( 63 ms )