cancel
Showing results for 
Search instead for 
Did you mean: 

How I can get the object wich is inside of other object, CL_CRM_BOL_ENTITY_

Former Member
0 Kudos

Hello Experts, I need your help

Inside of object ISUORDERITEM, there is an atributte CONFIG_LINE_COL from class CL_CRM_BOL_ENTITY_COL.

I have try with this to get CONFIG_LINE_COL but give me an exception because CONFIG_LINE_COL is from class CL_CRM_BOL_ENTITY_COL.



DATA:
lr_info   TYPE REF TO cl_crm_bol_entity,
      dValor TYPE REF TO DATA.


lr_info ?= ME->typed_context->ISUORDERITEM->collection_wrapper->get_current( ).
  dValor ?= lr_info->get_property( IV_ATTR_NAME = 'CONFIG_LINE_COL' ).

And I f I try this give me an error, that *the cast operation is currently only supported for object references. *



 DATA:
      lr_info   TYPE REF TO cl_crm_bol_entity,
      sitem_ref TYPE REF TO cl_crm_bol_entity.


  lr_info ?= ME->typed_context->ISUORDERITEM->collection_wrapper->get_current( ).
  sitem_ref ?= lr_info->get_property( IV_ATTR_NAME = 'CONFIG_LINE_COL'  ).


How I can get the object wich is inside of other object, where boths are from class CL_CRM_BOL_ENTITY_COL.

Accepted Solutions (1)

Accepted Solutions (1)

former_member813607
Contributor
0 Kudos

Dear Garcia,

Let me try to help you out..

First of all let me confirm your requirement.. ie you want to get the attribute 'CONFIG_LINE_COL' of type cl_crm_bol_entity_col from the object 'ISUORDERITEM" right ?..

try this code,

data: lr_col type ref to cl_crm_bol_entity_col.

lr_col = me->typed_context->isuorderitem->config_line_col.

now you got the collection in lr_col variable.. you can play with this data now. I dont know whats your actual requirement so that i can help you further :).

Hope it helps.

Regards, Sudeep..

Edited by: sudeep vd on Oct 2, 2008 7:31 PM

Answers (0)