IBASE的hierarchy结构

100 阅读1分钟

Created by Jerry Wang, last modified on Mar 13, 2014

以下面这个IBASE的树形结构为例:

 

clipboard1

 

 

 

使用function module CRM_IBASE_GET_DETAIL得到该IBASE的完整结构,输入IBASE header ID 13835,输入参数i_level_down赋以00表示拿到全部hierarchy level的信息,下面是得到的输出结果:

DESCR: description field in the tree

clipboard2

 

EXTOBJTYP: CRM_OBJECT means the two structure contain the individual object,

clipboard3

 

it means you could find the given instance in table COMM_PRODUCT:

clipboard4

 

GUID_COMP & GUID_COMPC: 这两个field都是动态populate出来的。

clipboard5

 

在table IBIN里根据IBASE = 13835查询可以得到它下面的两个component的信息:

clipboard6

 

通过IN_RECNO 计算出GUID_COMP, 通过IN_OBJNR 计算出GUID_COMPC

clipboard7

 

clipboard8