SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date

Suppose you need to investigate which database table stores the value of Requested start date and end date:

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date



You can just activate SQL trace via tcode ST05, make changes on either field, and save the change. Then display trace and search with keyword “update”:

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date



You could find one record whose UPDATE statement contains the changed date you maintained in WebUI, which indicates the table SCAPPTSEG is what we are looking for.


SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date


When we browse this table in SE11, we didn’t know the relationship between APPT_GUID or APPL_GUID with the service order guid.

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date



We can click the display source code button in ST05:

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date



And set a breakpoint on the very code where the table is updated. From the callstack we can know the function module CRM_DATES_UPDATE_DU is updating this table.

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date



Perform where used list on CRM_DATES_UPDATE_DU and we can get CRM_DATES_SAVE_OB,

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date



then CRM_DATES_SAVE_EC:

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date



In this function, we can know the relationship between appl_guid and service order guid:

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date



I use a simple report below to illustrate the process how to get requested start and end date starting from Service order guid:

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date

Note: “30” means object name “APPOINTMENT”, you can find the relationship from this table CRMC_OBJECTS:

SAP CRM销售订单UI上的字段对应的数据库表存储字段:requested start date和end date

上一篇:SAP S/4HANA生产订单的BAdI增强点之Initialize方法


下一篇:类的简介|学习笔记