Skip to Content
author's profile photo Former Member
Former Member

Value attribute not visible in runtime collection


I have created some 2-3 value attributes (display only) in a standard model node for BTDOCFLOW (which also contains some display only fields). Put in the logic in their Getter methods and fields are getting displayed in UI with the values.

Now, my requirement is to display this table view (Assignment block) in default sorting based upon one value attribute and one model node attribute. But the problem here is, I am unable to find value node attribute at runtime in BTDOCFLOW collection at DO_PREPARE_OUTPUT. (Even display only standard context node attributes, which are not part of model node structure are not visible)

I have re-defined method GET_TABLE_LINE_SAMPLE with the value attributes, resulting in enhanced rv_sample line, but still the value attribute is not visible at runtime in the collection.

Can someone pl. tell me, how can I display my value attributes in collection along with model node attributes, so that I can do default sorting based upon one custom and one model node attribute.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Mar 14, 2014 at 03:26 AM


    Whne you define value attributes within the model attribute then the node becomes mixed instead of either value node or model node.

    So you need to access the mixed node and then should access model attributes and value attributes separately.

    Get your collection into a normal entity then assign the entity to mixed node

    DATA: lr_mixed TYPE REF TO cl_bsp_wd_mixed_node ,

    current TYPE REF TO if_bol_bo_property_access,

    lr_current TYPE REF TO cl_crm_bol_entity.

    current ?= me->typed_context->entity name->collection_wrapper->get_current( ).
    lr_mixed ?= current..
    lr_current ?= lr_mixed->if_bsp_wd_ext_property_access~get_model_node( ).

    Best Regards,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.