Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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

Tags:
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question