zoukankan      html  css  js  c++  java
  • SAP CRM中间件Material Sales Organization和distribution channel的映射逻辑

    For example, I have created a material with the following sales organization and distribution channel id in ERP:

    In tcode SMW01, I observed the following sales organization and distribution channel mapped in settype CRMM_PR_SALESA in CRM.

    In ERP, these two fields are maintained in table MVKE:

    The fields observed in tcode SMW01 are filled by these two lines.
    In line 45, the variable iv_crmvkorg already contains the converted sales organization in CRM format.

    The conversion is based on ERP sales organization id passed from middleware. The logic is implemented by subroutine below:



    Why 0001 is mapped to O 50040102? The table hrv1222a is queried against the following search criteria:

    O 50040102 is found because it is marked as SAP ECC Sales Org. 0001.

    For distribution channel, it is directly filled with the value exactly from ERP table field MVKE-VTWEG.

    After fill, there is a check performed by CRM_PR_SALES_CHECK_DISTR_CHAIN. In my example, the check passes since the distribution channel 01 is already maintained in this CRM sales organization.

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

  • 相关阅读:
    JS中原型链的理解
    CSS3的笔记总结
    那些牛掰的 HTML5的API(二)
    初识 HTML5(一)
    jQuery基础知识点(下)
    jQuery基础知识点(DOM操作)
    jQuery基础知识点(上)
    [译]GC专家系列2:Java 垃圾回收的监控
    [译]GC专家系列1: 理解Java垃圾回收
    [译]深入理解JVM
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13555231.html
Copyright © 2011-2022 走看看