如何处理错误信息 Pricing procedure could not be determined

当给一个 SAP CRM Quotation 文档的行项目维护一个产品时,遇到如下错误信息:
When I inserted one product to a quotation, I meet with the following error message: Pricing procedure could not be determined

通过调试得知错误消息在 function module CRM_PRIDOC_COM_PRCPROC_DET_SEL 第 55 行抛出:

在 subroutine DETERMINE_PROCEDURE 内,得知 CRM 系统里计算出一个对应的 pricing procedure 需要 5 个输入参数,依次列于第 81 行到 85 行:
Sales Organization ID
distribution channel ID
division ID
custom pricing procedure 标志位
document pricing procedure
这 5 个参数联合起来得出的 pricing procedure 的名称存储在第 87 行的输出参数 ls_prcproc_det 里。

错误消息的解决方案
根据调试得出的 5 个输入参数的值,到 SPRO 里维护一个 pricing procedure 即可。这里我使用的 procedure 为 0CRM02。
Document pricing procedure 的值 A 意为 Standard。

如下是我维护的 Procedure,之后错误消息消失。

要获取更多 Jerry 的原创技术文章,请关注公众号"汪子熙":

版权声明: 本文为 InfoQ 作者【Jerry Wang】的原创文章。
原文链接:【http://xie.infoq.cn/article/db91abe9749398a7dee6f72a7】。
本文遵守【CC-BY 4.0】协议,转载请保留原文出处及本版权声明。
评论