*在上下文节点中,创建一个EDIT节点,然后在DO_PREPARE_OUT中写入如下代码就行
data: lr_collection type ref to cl_crm_bol_entity_col,
lr_entity type ref to if_bol_bo_property_access.
lr_entity = me->typed_context->edit->collection_wrapper->get_current( ).
CHECK LR_ENTITY IS INITIAL.
DATA: lr_ref_any TYPE REF TO data,
lr_value_node TYPE REF TO cl_bsp_wd_value_node.
data:ls_result type CRMST_HEADER_OBJECT_BUIL.
me->typed_context->edit->collection_wrapper->clear( ).
ls_result-bp_description = '01'.
ls_result-title_key = '好帮手'.
GET REFERENCE OF ls_result INTO lr_ref_any.
CREATE OBJECT lr_value_node
TYPE
cl_bsp_wd_value_node
EXPORTING
iv_data_ref = lr_ref_any.
me->typed_context->edit->collection_wrapper->clear( ).
me->typed_context->edit->collection_wrapper->add( lr_value_node ).
阅读(546) | 评论(0) | 转发(0) |