F-02 DBSQL_DUPLICATE_KEY_ERROR CX_SY_OPEN_SQL_DB SAPLKAUP CO-OM

遇到错误了。HANA SFIN。

F-02  DBSQL_DUPLICATE_KEY_ERROR CX_SY_OPEN_SQL_DB SAPLKAUP CO-OM

出错位置:

【INSERT COBK  FROM TABLE COBK_INS.】

ABAP 编程错误:
DBSQL_DUPLICATE_KEY_ERROR
CX_SY_OPEN_SQL_DB
SAPLKAUP
CO-OM

 

想想应该是NUMBER RANGE 这个妖孽作怪。

https://help.sap.com/saphelp_sfin200/helpdata/en/a0/718655a1c57b43e10000000a4450e5/content.htm?no_cache=true

发现Document Numbers in Controlling没有配置number range,是通过算法配置的?

Business transaction

CO document number

CO business transactions except COIN

Taken from the number range for the business transaction as defined in the Customizing activity Maintain Number Ranges for Controlling Documents

Example: 4000000001

Business transaction COIN (CO through-posting from Financial Accounting)

Automatically generated alphanumeric number

Example: A00001XP00

Note Note

This number is not taken from any number range. It is generated automatically based on an algorithm.

无果。想找找什么算法。瞄一眼。看到了这个算法代码。

CL_FINS_ACDOC_AUXILIARY_DOCNO=》GET_AUXILIARY_DOCNO

TRANSFORM_NUM12_TO_CHAR08

在它之前会去掉用number range 对象ACDOCA_AUX进行取数传入数据,传出一个A开头的CO凭证。

于是SNRO修改了配置。

 

运行。成功啦。晕死了。

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

budaha

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值