ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

SAP CRM One Order里Complex Set的一个例子:Partner Set

2020-03-06 12:57:30  阅读:335  来源: 互联网

标签:Set logical records lt Complex key Partner guid order


Quote from Carsten's document:

The logical key of the PARTNER set includes the partner function and the partner itself, i.e., there is no external attribute which allows to differentiate all the records. For this case, we use the term internal key.
However in the system the fields Partner function and partner number are put to CRMT_PARTNER_EXT(Externally Influenced Partner Data), which makes me a little bit confused(囧).

Answer

CRMT_PARTNER_EXT has nothing to do with the distinction into internal and external key. In fact, it took me some time to decide for the words of these attributes. External means: There is some criterion outside the order which structures the records of the complex set. Internal means: You cannot tell from outside how many records of this entity will be present in the order, it can be an arbitrary number.

I am sorry I still have doubt for your clarification. I am sorry for that.

"External means: There is some criterion outside the order which structures the records of the complex set.
Internal means: You cannot tell from outside how many records of this entity will be present in the order, it can be an arbitrary number."

I still use DATES ( Appointment ) for example.
Below is a screenshot for variable lt_app.

DATA: lt_guid TYPE crmt_object_guid_tab,
          lt_app  TYPE crmt_appointment_wrkt.

    APPEND iv_guid TO lt_guid.

    CALL FUNCTION 'CRM_ORDER_READ'
      EXPORTING
        it_header_guid = lt_guid
      IMPORTING
        et_appointment = lt_app.

If I understand you correctly, since APPT_TYPE and DURATION type are external key, so outside the order we can exactly know that it would NEVER happen that there are two entries for an order which have the same APPT_TYPE and DURATION. Do I understand correctly?

Now for Partner,

you mentioned "The logical key of the PARTNER set includes the partner function and the partner itself",

From technical point of view, I don't see any difference compared with Appointment's logical key.

So I get the following assumption:

(1) There is NO technical difference between internal logical key and external logical key. The categorization is made from business point of view.

(2) Could I try to describe how to differentiate these two kinds of logical key below?
Say a component has logical key A and B.
The picture below shows the feature of external key:

The picture below shows the feature of internal key:

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

标签:Set,logical,records,lt,Complex,key,Partner,guid,order
来源: https://www.cnblogs.com/sap-jerry/p/12425923.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有