Document Builder: rule processing start point - get the document instance

85 阅读1分钟

Created by Jerry Wang on Jul 05, 2014

the local class instance mo_document represents all attributes of a document instance in the memory. It is implemented with the local class LCL_DOCB in function group /IPRO/BUSINESS_OBJECT. 

 

clipboard1

 

 

mo_current_varroot

 

clipboard2

 

 

 

This attribute points to the representation of content root variable in the memory.

 

 

Double click ont it and you can get the name of variable in MV_NAME, and all the content of variables could be found in MR_VALUE:

clipboard3

 

This below is the result after double click on MR_VALUE. From here we know the root variable contains a simple variable ZJERRY_TEST with content "i042416" and another structural variable ZCR_PERSON with five simple variable ( ZCR_NAME, ZCR_OPTION, ZCR_TEST, ZFIRST and ZSECOND ) and their corresponding value.

clipboard4

 

 

The hierarchy relationship between structural variable and its children variable is maintained in customizing:

 

clipboard5

 

 

by double clicking on mt_children, you could get the direct children of root variable.

 

clipboard6

 

 

and MT_NAMED_VARIABLES gives you an overview of all variables currently used by the document:

 

clipboard7

 

 

MO_CURRENT_ELEROOT contains the reference pointing to document's section information ( A document consists of several sections and each sections then could include one or more elements - each element is a word or text or html document fragment which defines the layout of the output document ).

 

clipboard8

 

 

 

double click on MO_CURRENT_ELEROOT, then we know this document has two sections. Doube click on MT_CHILDREN then you could get element list of each sections, and finally you could get the binary source of element( word, html, text or other file format ).

clipboard9