Quantcast
Viewing all articles
Browse latest Browse all 9052

Re: Display values in fields customers in view IUICMD / DetailAccount

Hi,

 

From what I understand from your explanation, you want to fill the data through some code in the Z fields created by AET.

 

The simplest way of doing this is to code in DO_PREPARE_OUTPUT method of the class ZL_IUICMD_DETAILACCOUNT_IMPL.

 

Redefine the DO_PREPARE_METHOD.

 

Write below code in that to set the data.

 

METHOD DO_PREPARE_OUTPUT.

 

CALL METHOD super->do_prepare_output

     EXPORTING

       iv_first_time = iv_first_time.


data: lr_entity type ref to cl_crm_bol_entity.


lr_entity ?= me->Typed_Context->contactperson->collection_wrapper->get_current( ).

if lr_entity is bound and

   lr_entity->is_locked( ) eq abap_True.


   call method lr_entity->IF_BOL_BO_PROPERTY_ACCESS~set_property

     exporting

          IV_ATTR_NAME = 'ZZFLD000011'    

          IV_VALUE  = 'TEST'. " You can set your value here



endif.

 

ENDMETHOD.

 

Hope this is useful.

 

Regards,

Naresh


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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