Ansicht
Dokumentation

FINOC_RULE_SOX_ENH - Identify Intercompany Sales Orders and Assign New Profit Center

FINOC_RULE_SOX_ENH - Identify Intercompany Sales Orders and Assign New Profit Center

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) FINOC_RULE_SOX_ENH is used to customize rules to process intercompany sales orders.

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

The following parameters are transferred to the default implementation class CL_FINOC_RULE_SOX_ENH of the BAdI FINOC_RULE_SOX_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 intercompany sales order data with additional fields that aren't included in the standard CDS view FINOC_RULE_SOX_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.

Because the standard CDS view FINOC_RULE_SOX_DEFAULT. doesn’t derive any profit center for an intercompany sales order, all intercompany sales orders from this view are ignored and there are no postings for them. So, if you don't want postings for intercompany sales orders, no action is required.

However, it's also possible to use this BAdI to implement new logic for all assigned intercompany sales orders. You can create a customized CDS view, based on the standard CDS view FINOC_RULE_SOX_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.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3567 Date: 20240523 Time: 194752     sap01-206 ( 70 ms )