SAP CRM订单状态管理的一些重要的数据库表
I record down my self study notes here in order to be used in the future.
TJ01: Business Transactions definition TJ02: System status definition. For some of entries in this table, the corresponding constants are defined in include CRM_STATUS_CON
TJ03: status object type definition. Storage table for tcode BS12, see screenshot below:
TJ04: define initial status for system object. For example, I1002 ( open ) is defined as initial status for status object COH ( CRM Order Header ). Due to this setting, every time you create an order, it always has open as initial status.
TJ05: Permitted transactions per object type For example, status object COH has totally 369 permitted business transactions. The system status bound with a unpermitted business transaction will not appear in status drop down list in WebUI. See this blog How is status drop down list entry generated in Order detail page about detail filtering logic.
TJ06: System statuses set/deleted by process For example, the following report checks whether a given user status is actually mapped to Completed system status I1005 or not.
REPORT order_is_status_completed.
PARAMETERS: t_type TYPE crmd_orderadm_h-process_type OBLIGATORY DEFAULT 'OPPT',
i_status TYPE crm_j_status OBLIGATORY DEFAULT 'I1001'.
DATA lt_sys_stat TYPE TABLE OF tj06.
DATA lv_status_profile TYPE j_stsma.
SELECT SINGLE user_stat_proc FROM crmc_proc_type INTO lv_status_profile
WHERE process_type = t_type.
CALL FUNCTION 'CRM_WAP_GET_OPP_POSSIBLE_STAT'
EXPORTING
iv_stat = i_status
iv_user_stat_proc = lv_status_profile
TABLES
et_06 = lt_sys_stat.
READ TABLE lt_sys_stat WITH KEY istat = 'I1005' inact = abap_false TRANSPORTING NO FIELDS. "check system status is complete
IF sy-subrc = 0.
WRITE:/ 'This status is Completed Status'.
ELSE.
WRITE:/ 'This status is NOT Completed Status'.
ENDIF.
Can you tell the answer that for status profile CRMOPPOR below, which user status is actually mapped to system status I1005? The answer is COMP ( Completed – Jerry ), since it is assigned with business transaction CCOR,
And there is one entry for CCOR and I1005 in this TJ06 table.
TJ07: Influence of system status on transactions For example, this entry below means it is not allowed to perform transaction ARCH ( Archive ) if order has status I1002 – Open.
This table is part of storage table for tcode BS22 – maintain system status
TJ21: Permitted object types for status profile For example, status profile is only allowed for status object type COH.
TJ30: storage table for tcode BS02 – Maintain status profiles Compare the content of this table with tcode BS02:
CRM_JSTO: assignment of object with its status object type If you woud like to get a statistics for example which combination of status object and status profile has been used most of the time in your system, you can get the source code of report from my blog A real case to use REDUCE to finish a task in daily work.
For example, the screenshot belows show in my system there are totally 69436 objects which has used object type MPL and empty status profile for status management.
CRM_JEST: object guid and all of its status value
- JavaScript 教程
- JavaScript 编辑工具
- JavaScript 与HTML
- JavaScript 与Java
- JavaScript 数据结构
- JavaScript 基本数据类型
- JavaScript 特殊数据类型
- JavaScript 运算符
- JavaScript typeof 运算符
- JavaScript 表达式
- JavaScript 类型转换
- JavaScript 基本语法
- JavaScript 注释
- Javascript 基本处理流程
- Javascript 选择结构
- Javascript if 语句
- Javascript if 语句的嵌套
- Javascript switch 语句
- Javascript 循环结构
- Javascript 循环结构实例
- Javascript 跳转语句
- Javascript 控制语句总结
- Javascript 函数介绍
- Javascript 函数的定义
- Javascript 函数调用
- Javascript 几种特殊的函数
- JavaScript 内置函数简介
- Javascript eval() 函数
- Javascript isFinite() 函数
- Javascript isNaN() 函数
- parseInt() 与 parseFloat()
- escape() 与 unescape()
- Javascript 字符串介绍
- Javascript length属性
- javascript 字符串函数
- Javascript 日期对象简介
- Javascript 日期对象用途
- Date 对象属性和方法
- Javascript 数组是什么
- Javascript 创建数组
- Javascript 数组赋值与取值
- Javascript 数组属性和方法
- RTSP协议网络摄像头接入视频平台EasyNVR
- 在 Hiplot 中使用 Sigflow
- 0805-CDH5中的Parquet迁移至CDP中兼容性验证
- 为什么我的Redis这么“慢”?
- Nginx系列:数据压缩
- Ray,面向新兴AI应用的分布式框架
- 60.Vue export default 和 export 的使用方式
- Idea开发maven插件
- redis实战 migrate异常NOAUTH Authentication required.
- linux内存使用情况分析(free + top)
- Centos7 python3安装
- crontab JAVA_HOME not found
- Centos7 源码安装mysql5.6
- mysql登录时报socket找不到终极解决方案
- Grafana将数据库由sqlite3改为mysql