前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Date profile in appointment

Date profile in appointment

作者头像
Jerry Wang
发布2019-07-18 14:53:14
8030
发布2019-07-18 14:53:14
举报
知识共享许可协议
知识共享许可协议

版权声明:署名,允许他人基于本文进行创作,且必须基于与原先许可协议相同的许可协议分发本文 (Creative Commons

Gesendet: Donnerstag, 27. August 2015 10:15

Before appointment date change is really perform, there is a check against Logical date key. If check fails, update will terminate.

clipboard1
clipboard1

The involved profile name is Z00000000002. There must be some guy changes the configuration recently. I will check where this configuration is done now.

clipboard2
clipboard2

Yesterday there was a change implemented regarding what is saved in the contents of LOGICAL_KEY – apparently appointments need to be saved as “ORDERPLANNED” and not “ORDERACTUAL” for our means. I didn’t quite understand why this is necessary, if you need more information, I’ll have to refer you to our CRM consultant. Like last time, I only found out about this change when investigating this error.

I tried fixing this in the BADI implementation:

代码语言:javascript
复制
   READ TABLE ct_input_fields WITH KEY objectname = 'APPOINTMENT' logical_key ='ORDERACTUAL' INTO cs_input.
   IF sy-subrc EQ 0.
     MOVE 'ORDERPLANNED' TO cs_input-logical_key.
     INSERT cs_input INTO TABLE ct_input_fields.
     DELETE ct_input_fields WHERE objectname = 'APPOINTMENT' AND logical_key ='ORDERACTUAL'.
   ENDIF.

Unfortunately, no luck. Probably, either ORDERACTUAL comes up a second time in a different place I didn’t see, or there’s some additional customizing that needs to be performed. Either way, it seems we try to save 'ORDERACTUAL' but what we need to save now is'ORDERPLANNED'. 一个Date profile挂N个Date rule:

clipboard3
clipboard3

一个Date profile挂N个Date type:

clipboard4
clipboard4

一个Date type只能挂一个Date rule:

clipboard5
clipboard5

如果配置有问题,Fiori ui上没任何message,现象就是除了from 和to之外,其他field都能成功更新。这种问题客户除了自己debug,也没啥其它办法。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019年07月17日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Gesendet: Donnerstag, 27. August 2015 10:15
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档