Skip to Content

How can I read the parameters of current Account in WebUI

Dear All,
Hope you are fine,
I am new in webUI and I have a basic question.
Actually I am going to read the value of current AccountID (BP_Number) in debug of webui.

I know how can I access to data via debugging:
this is the pass
me->typed_context->header->collection_wrapper -> COLLECTION_REF -> IF_BSP_WD_COLLECTION_REF~COLLECTION -> ENTITY_LIST -> CONTAINER_PROXY -> Data_Ref -> ATTRIBUTE_REF

But with coding I dont know how can I read it!

I can read until get_Current() but I do not kno how can I access to it

lr_entity ?= me->typed_context->header->collection_wrapper->get_current( ).

Any help would be appreciate!

Regards
Sin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 04, 2017 at 10:17 AM

    Hi Sin,

    Then, with your LR_ENTITY; you can read the desired properties like this:

    lv_value = lr_entity->if_bol_bo_property_access~get_property_as_string( iv_attr_name = 'SOME_PROPERTY' ).

    Or, if you know the structure data type, you can read all parameters at once like this:

    DATA ls_properties TYPE CRMST_HEADER_OBJECT_BUIL.<br>lr_entity->get_properties( IMPORTING es_attributes = ls_properties ).

    Try to search for keywords like BOL or GENIL_MODEL_BROWSER to learn more about this, but meanwhile check if this helps you a little more.

    This page might also help a little.

    Kind regards,
    Garcia

    Add comment
    10|10000 characters needed characters exceeded