当前位置:网站首页>SAP CRM organization Model(组织架构模型)自动决定的逻辑分析
SAP CRM organization Model(组织架构模型)自动决定的逻辑分析
2022-07-01 15:19:00 【华为云】
看一下标准的OPPT是如何determine organization的:
查看Transaction Type OPPT的配置,找到Organization Data Profile:
SPRO->CRM->Transactions->Basic Settings->Define Transaction Types

发现配的profile为000000000005,双击进入,找到对应的profile:

可以看到对应的Organizational Model Determin. Rule为10000144, 而Responsibilities Determin. Rule没有配。
参考CR100上的解释:

Organizational Model Rule是需要根据search的结果来确定Organizational Unit. Responsibilities Rule是直接指定对应的Organizational Unit.
查看Determination Rule:
SPRO->CRM->Master Data->Organizational Management->Organizational Data Determination->Maintain Determination Rules

找到对应的10000144的rule:
可以看到对应的determination用的FM是CRM_ORGMAN_ORGOBJECTS_FIND_4
点击Container tab可以看到rule 10000144配置的parameter:

说明在执行FM CRM_ORGMAN_ORGOBJECTS_FIND_4需要的两个参数为BP Number和Transaction Type:
SPRO文档里面有对标准的determination function的解释:

前两个是针对Sales Transaction的,后两个是Service Transaction,根据解释FM CRM_ORGMAN_ORGOBJECTS_FIND_4是根据BP的Sales Area来查找对应的Organizational Unit。
进入CRM_ORGMAN_ORGOBJECTS_FIND_4的代码:
从Container里面拿到BP Number, 在根据BP Number拿到对应的GUID:

根据BP GUID获取对应的Sales Area:

从CRMM_BUT_LNK0011表里面拿BP Number对应的Sales Area

上一步没有找到Sales Area的情况下从CRMM_BUT_LNK0031表里面拿

E.g. 拿到BP 4103080的Sales Area:

上面讲到的Container配的另外一个参数Transaction Type在这里只是用来检查根据BP Number拿到的Sales Area是否valid:

然后调用FM CRM_ORGMAN_ORGOBJECTS_FIND_1根据Sales Area的attribute来查找organization。参考上面的文档,CRM_ORGMAN_ORGOBJECTS_FIND_1其实是一个通用的根据organization attribute来查询的FM

这里的attribute就是Organizational Unit在Web UI里面维护的attribute:

注意在这里并没有用Transaction Type去直接跟Organizational Unit维护的Transaction Type attribute作比较。
E.g. 最后根据BP 4103080得到的Organization为50000732:

还有一个更抽象的查询Org的API FM: CRM_ORGMAN_DETERMINE_ORGOBJS,该API返回sales areas结果集。
边栏推荐
- TS报错 Don‘t use `object` as a type. The `object` type is currently hard to use
- What data capabilities do data product managers need to master?
- Hardware design guide for s32k1xx microcontroller
- phpcms后台上传图片按钮无法点击
- MySQL service is starting. MySQL service cannot be started. Solution
- Filter & (login interception)
- Summary of week 22-06-26
- Introduction to MySQL audit plug-in
- 雷神科技冲刺北交所,拟募集资金5.4亿元
- Qt+pcl Chapter 6 point cloud registration ICP series 4
猜你喜欢

leetcode:329. 矩阵中的最长递增路径

The solution to turn the newly created XML file into a common file in idea

OpenSSL client programming: SSL session failure caused by an insignificant function

Returning to the top of the list, the ID is still weak

厦门灌口镇田头村特色农产品 甜头村特色农产品蚂蚁新村7.1答案

微信网页订阅消息实现

Opencv learning note 4 -- bank card number recognition

How to realize clock signal frequency division?

Implementation of wechat web page subscription message

MySQL 服务正在启动 MySQL 服务无法启动解决途径
随机推荐
Wechat applet 03 - text is displayed from left to right, and the block elements in the line are centered
Wechat applet 02 - Implementation of rotation map and picture click jump
Summary of point cloud reconstruction methods I (pcl-cgal)
Summary of empty string judgment in the project
[leetcode] 16. The sum of the nearest three numbers
[lock] redis lock handles concurrency atomicity
微信网页订阅消息实现
采集数据工具推荐,以及采集数据列表详细图解流程
Phpcms background upload picture button cannot be clicked
OpenSSL client programming: SSL session failure caused by an insignificant function
Hidden rules of the workplace that must be understood before 30
Opencv learning notes 5 -- document scanning +ocr character recognition
微信公众号订阅消息 wx-open-subscribe 的实现及闭坑指南
这3款在线PS工具,得试试
Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching
Can I choose to open an account on Great Wall Securities? Is it safe?
Configuration of ZABBIX API and PHP
Junda technology indoor air environment monitoring terminal PM2.5, temperature and humidity TVOC and other multi parameter monitoring
[advanced ROS] lesson 5 TF coordinate transformation in ROS
Mongodb second call -- implementation of mongodb high availability cluster