In this blog, our focus will be on the fundamental aspect of creating derivation rules for product master data. In this use case, we'll illustrate how to derive plants based on material type within an MDG Central environment using DQM derivation in S/4 2023 on-premises version.
Deriving plants based on material type is a common requirement in many organizations, especially in manufacturing or distribution industries where different types of materials may be associated with specific plant locations.
Before diving into the Use Case of DQM for SAP MDG Product or Material, preparing the Managing Derivation Scenarios tile, it's important to ensure that you have access to the necessary roles and authorization.
Role : SAP_BR_PRODMASTER_STEWARD
Authorization objects :
MDC_DQEVAL | Data Quality Evaluation Permissions (MDC_DQEVAL) |
MDC_SIMUL | Simulation Permissions (MDC_SIMUL) |
MDQRM_DS_E | Master Data Quality: Derivation Scenario Rule Execution (MDQRM_DS_E) |
MDQRM_DS_R | Master Data Quality: Derivation Scenario Rule (MDQRM_DS_R) |
MDQRM_DS_S | Master Data Quality: Derivation Scenario (MDQRM_DS_S) |
MDQRM_DSEX | Master Data Quality: Derivation Scenario Export |
MDQRM_DSIM | Master Data Quality: Derivation Scenario Import |
MDQRM_MNDR | Master Data Quality: Mined Rule |
MDQRM_MNNG | Master Data Quality: Rule Mining |
MDQRM_RLEX | Master Data Quality: Validation Rule Export |
MDQRM_RLIM | Master Data Quality: Validation Rule Import |
MDQRM_RLUS | Master Data Quality: Validation Rule Usage |
MDQRM_RULE | Master Data Quality: Validation Rule (MDQRM_RULE) |
S_RFC | Authorization Check for RFC Access (S_RFC) |
Action | Description | Pushbutton Text | Quick info Text | Check | Note | Reason |
H1 | DQM Derivation Successful | N/A | N/A |
|
|
|
H2 | DQM Derivation failed | N/A | N/A |
|
|
|
H3 | Continue | Continue | Continue | X |
|
|
H4 | Resubmit with DQM Derivation | Resubmit with DQM Derivation | Resubmit with DQM Derivation | X |
|
|
H5 | DQM Derivation Successful with Message | DQM Derivation Successful with Message | DQM Derivation Successful with Message | X |
|
|
Why we need this action?
There are three possible outcomes when we integrate the DQM derivation with Central Governance,
Create the New Step type “H” and assign the Actions Created in the above step 1, only assign the H3 and H4 , they are the dialog action , rest H1, H2 and H5 are background results.
Note: The Integration of DQM Derivation is only possible with Rule Base Workflow
DT_SINGLE_VAL_ZMATDQM
CR Previous Step | Previous Action | Condition Alias | New Chng. Req. Step | New CR Status |
=00 |
| DQM | 10 | 02 |
=10 | =H1 | DQS | 20 | 02 |
=10 | =H2 | DQF | 40 | 10 |
=10 | =H5 | DQW | 40 | 10 |
=20 | =06 | REJ | 92 | 03 |
=20 | =05 | ACT | 90 | 02 |
=40 | =H3 | DQS | 20 | 02 |
=40 | =H4 | DQM | 10 | 02 |
=92 | =07 | DQS | 20 | 02 |
=92 | =08 | ROL | 99 | 06 |
=90 | =31 | END | 99 | 05 |
=99 |
| END |
|
|
DT_USER_AGT_GRP_ZMATDQM
Condition Alias | User Agt Grp No. | Step Type | User Agent Type | User Agent Value |
=DQS | 1 | 3 | AG | XXXXXXXXX |
=DQF ; =DQW | 1 | H | AG | XXXXXXXXX |
=REJ | 1 | 4 | SU | INIT |
DT_NON_USER_AGT_GRP_ZMATDQM
Condition Alias | Agent Group | Process Pattern | Service Name |
=DQM | 1 | 02 | ZMDG_MM_DQM_DERIVATION |
=ACT | 1 | 06 |
|
=ROL | 1 | 08 |
|
=END | 1 | 99 |
|
*Sample Code:
METHOD if_usmd_ssw_syst_method_caller~call_system_method.
DATA(cr_number) = iv_cr_number.
CASE iv_service_name.
WHEN ‘ZMDG_MM_DQM_DERIVATION’.
"Get an instance of the MDQ derivation controller
DATA(derivation_controller) = cl_mdg_mdq_rbwf_derive=>get_instance( ).
"Execute the derivation and evaluate the result
DATA(result) = derivation_controller->if_mdg_mdq_rbwf_derive~derive( change_request = cr_number ).
IF result EQ derivation_controller->if_mdg_mdq_rbwf_derive~derivation_failure.
"Indicate that the derivation failed
ev_action = 'H2'.
"INFO: access to messages via derivation_controller->messages
ELSEIF result EQ derivation_controller->if_mdg_mdq_rbwf_derive~derivation_success_w_messages.
"Indicate that the derivation was successful but with messages
ev_action = 'H5'.
"INFO: access to messages via derivation_controller->messages
ELSE.
"Indicate that the derivation was successful
ev_action = 'H1'.
ENDIF.
WHEN OTHERS.
ENDCASE.
ENDMETHOD.
After completing all the configurations outlined above for derivation and integrating DQM (Data Quality Management) into the central governance Change Request (CR) process, the system will operate seamlessly to ensure data accuracy and consistency.
Once a user initiates a central governance CR, the DQM functionality, configured using BRF+ and the associated BADI's, will be automatically invoked in the background. This integration allows for the automatic validation and derivation of data based on predefined rules and logic.
If the DQM process succeeds, the CR will progress to the next step in the workflow, facilitating efficient data governance and approval processes. However, in case of any derivation failures, the system is designed to handle such scenarios effectively. The CR can be directed to the individual responsible for configuring the derivation rules, enabling them to review and rectify any issues. Alternatively, if necessary, the CR can be continued to the next step by bypassing the derivation process.
Ultimately, this setup ensures that data integrity is maintained throughout the central governance process, with automated checks and derivations occurring in the background to streamline operations and minimize manual intervention.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 |