使用SAP CRM中间件从ERP下载BOM的一些常见问题-阿里云开发者社区

开发者社区> 开发者小助手-bz4> 正文

使用SAP CRM中间件从ERP下载BOM的一些常见问题

简介: 使用SAP CRM中间件从ERP下载BOM的一些常见问题
+关注继续查看

I have created the following download request in tcode R3AR2 to try to download a BOM from ERP:image.pngWhen I perform request download, I meet with the following error message:

image.pngI go to tcode R3AC1 to check the parent tab of adapter object BOM_ERP. To my surprise, there is no parent information maintained.image.pngCompare the parent setting for OBJCL:image.pngSo where are the parent information Materials, Equipment and Function locations mentioned in the error message coming from?


I debug the request download program itself to know the answer.

Execute function module SMOF0_READ_SMOFSUBINT with the following parameters:





image.pngThere are eight check function modules returned as the error message is raised within function module CRM_BOM_ERP_CHECK_FOR_FATAL:

image.png

image.pngThen in sub routine check_parent, I found out that the parent of BOM_ERP is set dynamically according to the table name maintained in download request. In my case, it is material.


image.pngThe parent check will only pass if the status of parent object is D ( finished ).image.pngIn my case, the download status of MATERIAL is R ( running )image.pngThis status could be found in tcode R3AM1:image.pngAfter I fix the error of MATERIAL itself and repeat request download of BOM_ERP, the error message disappears.


image.png

How to download BOM from ERP to CRM – relationship STRSET or BOMITM?

(1) In ERP, create one material 1468 “JVM”:

image.pngAnd another material 1469 “JDK 1.8”:image.png(2) Create BOM via tcode CS01 based on material 1468 with the following settings:image.pngAdd 1469 as line item:

image.pngOnce saved, there is one entry generated in table MAST:

image.png(3) Create one download request in CRM via tcode R3AR2:image.pngSpecify MATNR to the material id of BOM header:image.pngAfter I perform request download via this request, in WebUI I found that the assignment block “Components” is still empty.image.pngThe reason is the dependent material 1469 is not downloaded to CRM yet.image.png(4) Then I first download material 1469 to CRM, and then I perform request download again via the request created in step 3.

After that in tcode SMW01 I can see necessary data for BOM structure, the relationship STRSET, is successfully downloaded.


image.pngimage.pngNow go back to WebUI, I can see the expected component structure as displayed below.image.pngHowever, in another set of CRM and ERP system, once the same operation has been done, we will not get BOM downloaded as relationship STRSET, but BOMITM instead. Let’s name the system so far discussed above where STRSET is generated as ERP system A and CRM system A, and the system mentioned in discussion below as ERP system B and CRM system B, where BOMITM is generated.


This is BOM created in ERP system B:


image.pngWhen this BOM is downloaded to CRM system B, the data is stored in relationship BOMITM instead:image.pngimage.pngThe reason which leads to this different behavior is the different settings defined in table CRMSUBTAB in two ERP system to control what kinds of data for BOM should be extracted and sent to CRM:



image.pngHere via comparison we can find out that the extraction logic for adapter object BOM_ERP are different in two ERP system. In CRM middleware inbound process program LCOM_PRODUCT_IL_R3_ADAPTERF03, there is a IF-ELSE branch:


image.pngFor CRM system A, in ERP system A,function module CRS_BOM_EXTRACT will fill data to MARA table so in CRM, the inbound processing will go into first IF branch.


image.pngAnd for CRM system B, the function module CRS_BOM_ERP_EXTRACT is executed in ERP system B, where MARA table is not filled, so finally in CRM system B, the inbound process goes to ESLE branch to generate data into BOMITM instead.


image.png

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
使用 Java 11 安装 SAP Commerce Cloud 1905 的一些常见问题
使用 Java 11 安装 SAP Commerce Cloud 1905 的一些常见问题
7 0
MetaQ 消息中间件介绍及使用
MetaQ是阿里云中间件团队设计和研发的一款分布式、队列模型的消息中间件。有如下几个特点:1. 有push、pull两种消费模式 2. 支持严格的消息顺序...
66 0
利用CRM中间件Middleware从ERP下载Customer Material的常见错误
使用事务码VD51和VD52创建和修改Customer Material。下图是我在ERP创建的Material,为其维护了一个Customer Material AOP。 当下载到CRM后,在WebClient UI上显示如下: 下载Customer Material的主要配置: 通过表KNMT.
2001 0
使用OpenApi弹性释放和设置云服务器ECS释放
云服务器ECS的一个重要特性就是按需创建资源。您可以在业务高峰期按需弹性的自定义规则进行资源创建,在完成业务计算的时候释放资源。本篇将提供几个Tips帮助您更加容易和自动化的完成云服务器的释放和弹性设置。
12069 0
《用友ERP-U8完全使用详解》—— 导读
随着全球商业化发展,企业与企业之间的竞争日益激烈,如何寻找利润突破口时常摆在企业的会议桌上,从营销模式的改变、成本的控制、管理工具的使用都希望实现利润的提升。
1958 0
CRM中间件里的发布-订阅者模式
从事务码SMW01里能观察到一个BDOC可能被发送往不止一个目的site去,比如下图所示的5个site都会收到该site,而高亮显示的SMOF_ERPSITE代表ERP系统QI3的client 504会接收到这个BDOC。
4382 0
静默授权与主动授权区别、使用场景以及常见问题。
静默授权与主动授权对于用户来说的区别 静默授权用户是没有感知的,实际商户是悄悄的就把用户的user_id(PID)获取到 主动授权用户是有感知的并且需要用户去进行点击授权确定按钮的,用户如果不经授权的话,商户是拿不到用户的信息的。
3760 0
2315
文章
0
问答
来源圈子
更多
+ 订阅
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载