Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: How to fetch data of an entity in get_p

$
0
0

Hi,

 

Actually at the moment I am not able to use iterator in get_p method since I cannot get an instance of iterator at this level.

So trying to fetch process id from BTADMINH  using gr_owner.

Please could you let me know if the below steps are correct?


     In the context class I have in attributes

     BTADMINH Instance Public Type Ref To ZL_ZBN1_ST_PROPINFO_CN00.

 

1) In context node class, creating an attribute of context class.

   GR_OWNER instance public TYPEREFTO ZL_ZBN1_ST_PROPERTYINFO_CTXT.

 

2): Now in context class ZL_ZBN1_ST__PROPERTYINFOR_CTXT method CREATE_BTADMINH

    BTADMINH ?= model.

       BTADMINH->gr_owner ?= me.

 

3) in get_p method

DATA lr_entity type ref to cl_crm_bol_entity.

CHECK gr_owner IS BOUND." get the current entity of other context node

lr_entity ?= gr_owner->BTADMINH->collection_wrapper ->get_current( ).

 

CHECK  lr_entity  IS BOUND.

Lr_entity->if_bol_bo_property_access~get_property( iv_atrribute = ‘PROCESS_TYPE’  EXPORTING value = lv_proc_type )

 

Thanks.


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>