

Governing SAP Credit Management with SAP MDG
source link: https://blogs.sap.com/2021/09/08/governing-sap-credit-management-with-sap-mdg/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Governing SAP Credit Management with SAP MDG
SAP Credit Management is until SAP MDG release 1909 still not part of SAP MDG. It is still unclear when and how the solution will be delivered by SAP and in which release. According to SAP Roadmap for SAP MDG on SAP S4/HANA 2020 which is described here there will be some new entities added to cover some parts of SAP Credit Management.
They include:
- New entity FS_BP1012 for Credit Ratings (Table BP1012)
- New Entity FS_BP1010 for Creditworthiness (Table BP1010).
- New Entity BP_CM_BP for Credit Scoring.
The question so far is, if your customer asks or requires to implement SAP Credit Management in their current SAP MDG version, then how to fulfill this. So for this requirement, basically there are 2 options we can do.
Option 1. Set Default Values for Credit Management using Derivation and Decision Table (BRF+).
Creating decision table in BRF+ to store the required default values which will be set for each business partner which has the role UKM000 during creation process. This will be the simplest solution although the drawback is that we cannot manage the values for each business partner.
Specific values for business partner can be defined based on general properties such as country of existing address or account group.
As general, the structure of decision table can look like this below:
Structure of Decision Table for SAP Credit Management
The expected return values are table name (CM_TABLE), field name (CM_FIELD), and expected default value (VALUE).
For this requirement, this derivation is expected only during creation of a customer and the values are applied also for the whole customer. So in decision table it is enough to use change request type and change request step.
Example of Decision Table for SAP Credit Management
To get those values from decision table, we can use standard class from SAP:
TRY.
cl_fdt_function_process=>process( EXPORTING iv_function_id = lv_function_id
iv_timestamp = lv_timestamp
IMPORTING ea_result = lt_values
CHANGING ct_name_value = lt_name_value ).
CATCH cx_fdt INTO DATA(lx_fdt).
<<exception handling>>
ENDTRY.
The default values derived from decision table can now be assigned to the corresponding structures in function module UKM_DB_UKMBP_CMS_EXECUTE. To use this function, only N-parameters need to be considered as shown below:
CALL FUNCTION 'UKM_DB_UKMBP_CMS_EXECUTE'
TABLES
n_ukmbp_cms = lt_ukm_s_bp_cms_upd
n_ukmbp_cms_sgm = lt_ukm_s_bp_cms_sgm_upd
n_vector = lt_ukm_s_bp_vector_upd.
Assignment of important parameters:
* set partner number
ls_ukm_s_bp_cms_upd-partner = lv_partner_id.
ls_ukm_s_bp_cms_sgm_upd-partner = lv_partner_id.
ls_ukm_s_bp_vector_upd-partner = lv_partner_id.
* set all change flag with U for Update
ls_ukm_s_bp_cms_upd-change_id = ‘U’.
ls_ukm_s_bp_cms_sgm_upd-change_id = ‘U’.
ls_ukm_s_bp_vector_upd-change_id = ‘U’.
* map data from decision table (lt_values) into itab for FM UKM_DB_UKMBP_CMS_EXECUTE
LOOP AT lt_values ASSIGNING FIELD-SYMBOL(<fs_value>).
<<assign based on table-field into corresponding field in each n-internal tables>>
ENDLOOP.
APPEND ls_ukm_s_bp_cms_upd TO lt_ukm_s_bp_cms_upd.
APPEND ls_ukm_s_bp_cms_sgm_upd TO lt_ukm_s_bp_cms_sgm_upd.
append ls_ukm_s_bp_vector_upd to lt_ukm_s_bp_vector_upd.
Option 2. Create Custom Entity (Z-Entity)
Creating custom entity which can be visualized as UIBB in SAP MDG UI. With this option we can visualize the governance of SPA Credit Management and the governance of each business partner is possible. Although the drawback in terms of more complex implementation and more coding effort is unavoidable.
This new entity will be part of BP_HEADER entity.
Sample of Entity Extension for Governing SAP Credit Management
That will be the end of my first blog post here and I hope, this will give us an overview how we can handle SAP Credit Management in SAP MDG, especially with SAP MDG version where SAP Credit Management is not yet supported. I really appreciate your thoughts and feedbacks for further improvements.
Recommend
-
59
-
12
First Self-Funding Self-Governing Crypto Currency Honest Tim Hero Member Activity: 768 Merit:...
-
10
Governing body of Louisiana gives Bitcoin its nod of approval – HodlalertGoverning body of Louisiana gives Bitcoin its nod of approval
-
54
Deepak Rawat August 29, 2021 3 minute read ...
-
13
Srinivasa Rao Sesham September 6, 2021 2 minute read ...
-
18
Data Journey from SAP MDM to SAP MDG SAP NetWeaver MDM was a stand-alone system built on C/C++, which started its journey in 2005, when SAP acquired of a company named A2A. It has reached its End of Life in 2020. In 2022 t...
-
4
Search Questions and Answers
-
9
SAP MDG for Retail SAP MDG and Retail Industry Hello SAP experts, This is my first blog (and yeah, I did ask myself a question – why and what took me so long?). But hey, better late than never! This is a humb...
-
2
SAP MDG – A Stepping Stone for SAP S/4HANA Journey – Part I Introduction Clients across the globe are getting into the Transformation journey started with SAP S/4HANA. In this blog,...
-
15
karthik s 4 hours ago Tabbed uibb in sap mdg fpm 30 Views Last edit 4 hours ago
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK