Show TOC

Example documentationDerivation of Fields in the Business Partner Data Model

 

This document describes an example of how to derivate the value of a field if you enter a specific value into another field: In the example entering the company code 1000 leads to the derivation of reconciliation account with the value 31000.

To access an entity type 4 that has a cardinality 1:1 (for example BP_CENTRL), you have to define the derivation DERIVE_BP_CENTRL to access elements such as Search Term 1 (BU_SORT1).

To access an entity type 4 that has a cardinality 1:N (for example BP_COMPNY) you have to define the derivation DERIVE_BP_COMPNY to access elements such as Reconciliation Account (REF_BPCMP).

Note Note

The values mentioned above refer to the supplier data model. For the corresponding values referring to the customer data model see the table below:

Supplier data model

Customer data model

BP_COMPNY

BP_CUS_CC

DERIVE_BP_COMPNY

DERIVE_BP_CUS_CC

REF_BPCMP

CUS_AKONT

End of the note.

Note Note

For more information about derivation, see Definition of Validations and Derivations.

End of the note.

Activities

To access the entity BP_COMPNY you must define the DERIVE_ BP_COMPNY function as described below.

  1. In the Customizing for Master Data Governance, Central Governance, run the activity Define Validation and Derivation Rules under Start of the navigation path Master Data Governance, Central Governance Next navigation step General Settings Next navigation step Data Quality and Search Next navigation step Validations and Enrichments Next navigation step Define Validation and Derivation Rules End of the navigation path.

  2. Enter the Data model BP and choose Continue.

  3. On the Business Rule Framework plus screen, select the Catalog tab, expand the Trigger Function node, and select Derivation. In the context menu choose Start of the navigation path Create Object Node Next navigation step Create Function End of the navigation path.

  4. In the Create Function dialog box, enter the data shown below, choose Create and Navigate to Object, and confirm the dialog box:

    • Name: DERIVE_BP_COMPNY

      Note Note

      The naming convention for the function is DERIVE_<name of the entity>.

      End of the note.
    • Short Text: DERIVE_BP_COMPNY

    • Text: DERIVE_BP_COMPNY

    • Application: FMDM_MODEL_BP

  5. On the Signature tab, choose Add Existing Data Object.

  6. In the Object Query dialog box, enter the search criteria shown below and choose Search.

    • Application: FMDM_MODEL_BP

    • Data Object Type: Any

    • Name: BP_COMPNY

  7. In the results list, mark BP_COMPNY and choose OK.

  8. On the Assigned Rulesets tab, choose Create Ruleset.

  9. In the Create Ruleset dialog box, enter the data shown below, choose Create and Navigate to Object, and confirm the dialog box:

    • Name: BP_COMPNY_RULESET

    • Short Text: BP_COMPNY_RULESET

    • Text: BP_COMPNY_RULESET

    • Application: FMDM_MODEL_BP

  10. In the Rules group box, choose Start of the navigation path Insert Rule Next navigation step Create End of the navigation path.

  11. In the Rule dialog box, choose Start of the navigation path Assign Condition Next navigation step Use Value Range From Next navigation step Select Context Parameter End of the navigation path.

  12. In the Context Query dialog box, expand the BP_COMPNY node, mark CoCode, and choose OK.

  13. Select is equal to and enter 1000 using the input help.

    Note Note

    Entering the value without the input help may cause inconsistencies due to the wrong data format.

    End of the note.
  14. Select Start of the navigation path Then Next navigation step Add Next navigation step Assign Value to Context Next navigation step Context Next navigation step More End of the navigation path.

  15. In the Context Query dialog box, expand the BP_COMPNY node, mark Recon.acct, and choose OK.

  16. In the Rule: dialog box, enter 31000 using the input help into the Change value of BP_COMPNY to field and choose OK.

    Note Note

    Entering the value without the input help may cause inconsistencies due to the wrong data format.

    End of the note.
  17. Select Save, choose Activate, and on the Confirm Activation dialog box choose Activate.