Skip to Content

Capturing data View BT120H_CPL/Details

Hello Gurus,

Please I need help,

I created a Z field in the entity BTAdminH in the View BT120H_CPL/Details to add to the view, however I can not access the data stored, I entered the corresponding entity and attribute is not found,

They can guide me on how these data entering your ??

From already very grateful to your help,



Img1.png (95.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 15, 2016 at 09:13 PM

    Thanks for your attention!

    The problem was that I could not capture the data of the attribute Z that I create, or did not know how.

    I've solved the problem

    Below I have done the following:

    1) I have searched the relationship between the root entity and relationships to find the Z attribute that I created.

    2) I have made the connection by doing the following code:

    DATA: lr_ibase2 TYPE REF TO cl_crm_bol_entity,

    lv_coll1 TYPE REF TO if_bol_bo_col,

    lr_recl1 TYPE REF TO cl_crm_bol_entity.

    lr_ibase2 ?= me->typed_context->BTADMINH->collection_wrapper->get_current( ).


    lv_coll1 = lr_ibase2->get_related_entities( iv_relation_name = 'BTHeaderServiceExt' ).

    CATCH cx_root.


    IF lv_coll1 IS NOT INITIAL.

    lr_recl1 ?= lv_coll1->get_current( ).

    IF lr_recl1 IS NOT INITIAL.

    "Capturo el Aviso.

    CALL METHOD lr_recl1->get_property_as_value


    iv_attr_name = 'ZZFLD00000O'


    ev_result = zaviso.



    Captura1.PNG (180.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2016 at 08:26 AM

    Hi Jose,

    Please explain what exactly code you have written to access the attribute and what error are getting?



    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.