专栏首页Jerry的SAP技术分享Date profile in appointment

Date profile in appointment

版权声明:署名,允许他人基于本文进行创作,且必须基于与原先许可协议相同的许可协议分发本文 (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.

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

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:

   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:

一个Date profile挂N个Date type:

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

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

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • DEFAULT keyword in ABAP and Optional Class in Java

    It is ok to use this new ABAP syntax about table expression here since object_ex...

    Jerry Wang
  • TypeScript里的interface和class以及对应的JavaScript代码

    Jerry Wang
  • 如何根据ABAP类的一个方法名称,反查出这个类的名称

    版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。

    Jerry Wang
  • 程序员进阶之算法练习(十九)

    前言 这周很忙,但是越忙的时候反而越喜欢抽空做算法题。 欢迎关注algorithm文集。 这次A、B、C都是很合适的面试题。 正文 A. Memory ...

    落影
  • golang-101-hacks(2)——创建GO工作区

    当Go开发环境安装完成,接下来就是设置创建Go的工作目录了。 1 创建一个空文件夹作为工作区目录

    羊羽shine
  • HTML5笔记

    菜鸟雷
  • 深度学习笔记3-模型训练及模型评估指标

    「学习内容总结自 udacity 和 coursera 的深度学习课程,截图来自 udacity 课件」

    caoqi95
  • Java工具集-yml配置处理工具

    cwl_java
  • 移动社交媒体的使用和学习成绩(CS CY)

    在普通大众中,学生对社交媒体和智能手机尤其敏感,因为它们无处不在。 一些研究表明,社交媒体和学习成绩之间存在负相关性,因为它们会导致损害学生职业生涯的行为,比如...

    用户7095611
  • 排他思想及部分案例

    星辰_大海

扫码关注云+社区

领取腾讯云代金券