前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP CRM IDOC的详尽调试步骤

SAP CRM IDOC的详尽调试步骤

作者头像
Jerry Wang
发布2020-08-06 20:25:08
3570
发布2020-08-06 20:25:08
举报

(1) Trigger the IDOC sending using tcode R3AS

Choose the receiver destination site from f4 help:

Click f8 to execute the sending.

(2) Launch tcode SMQ2 to check inbound QRFC queue, you should find one entry for our R3AS run in step1.

Double click on it:

Then double click it again, choose the entry for FM BAPI_CRM_SAVE and click debug icon:

(3) Now debugger window automatically pops up:

Adapter module COM_MAP_BAPIMTCS_TO_PRODUCT will be called.

Middleware framework class will be called:

These above three function modules will be executed one by one. The first one is for message replication and the second for master data management and we are only interested in the last one for IDOC sending.

Function module CRMXIF_ADP_OUTBOUND will be called:

Variable ls_data_mapped contains the product data to be sent:

Get the ALE function module name:

The real sending occurs in function module MASTER_IDOC_DISTRIBUTE. After execution the IDOC document number will be stored in variable idoc_comm.

The variable IDOC_DATA contains the formatted data to be sent:

write down the document number 214003

And have a look at it in tcode WE05:

It is in error status 29

Error code 29 means the receiver of IDoc is its own logical system So we can check via tcode SMOEAC against the IDOC receiver site. And yes, the configuration there is wrong, since currently we are triggering IDOC send right in QDD, and we should not set it again as receiver site.

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

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

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

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

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

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档