Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Making a field dynamically mandatory-Issue in get_p

$
0
0

Hi Faisal,

 

Do one thing in get_p method get the entity and identify the selected value based on that put the condition according to your logic..

i don't know exactly will this work or not because i haven't tried.

 

ex how to get the collection in get_p method.

 

DATA : lr_collection TYPE REF TO cl_bsp_wd_collection_wrapper,

           lr_name TYPE string,

          lr_proprty TYPE REF TO if_bol_bo_property_access.

 

CASE  iv_property.

WHEN if_bsp_wd_model_setter_getter=>fp_input_mandatory.

r_proprty = me->get_collection_wrapper->get_current( ).

lr_proprty->get_property_as_string( EXPORTING iv_attr_name = 'name of attribue' RECEIVING rv_result lr_name ).


if lr_name = '1'.

rv_value = abap_true.

else.

rv_value = abap_false.

endif.

 

ENDCASE.

try this might helpful to you.

 

Thanks & Regards,

Srinivas


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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