zoukankan      html  css  js  c++  java
  • SAP CRM IDOC的详尽调试步骤

    (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的原创文章,请关注公众号"汪子熙":

  • 相关阅读:
    基于erlang的mud游戏引擎开发
    生成数据库所有表的查询语句
    查找表字段语句
    基础算法总结 Java 版
    ArrayList源码学习
    云服务器安装 Mysql 5.7
    n个元素进栈,共有多少种出栈顺序?
    MyBatis 学习
    Spring学习笔记之AOP
    原来你是这样的 IntegerCache
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13447070.html
Copyright © 2011-2022 走看看