cancel
Showing results for 
Search instead for 
Did you mean: 

How I can get the values that user write, with typed context

Former Member
0 Kudos

Thanks for your time

I want to verificate, the values (product configuration) that an user have introduced,

I have written this code to get the values and verificate this.


  DATA:
      lr_info   TYPE REF TO cl_crm_bol_entity.

  lr_info ?= ME->typed_context->ISUORDERITEM->collection_wrapper->get_current( ).

lr_info has an atritbute T_EXTENSION_FIELDS, this is a table with the values of the product configuration, but I don't know how I can access to this values.

Could you help me, please??

Or other option to get the values to verificate this ??

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

xavier_dehairs2
Active Participant
0 Kudos

Hi, to get the value of an attribute of your entity is quite easy:

lr_data ?= lr_info->get_property( 'T_EXTENSION_FIELDS' ).

The returned value of this method is of type DATA, so it can be anything, it is up to you to convert it to the correct type by using FIELD-SYMBOL.

Hope this is what you was looking for.

Regards,

Xavier

Answers (0)