Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

/bobf/cust_ui - How to execute a determination with condition

$
0
0


Hello,

 

I created a determination with the pattern "create property" in business object EHHSS_INCIDENT. I want to make a field mandatory for a the Incidents... not for the near miss or observation. Right now, the field is always mandatory. How can I do it? Here is the code to make it mandatory.

 

    LOOP AT it_key ASSIGNING <ls_key>.
    CALL METHOD io_property->set_attribute_mandatory
      EXPORTING
        iv_attribute_name = if_ehhss_inc_c=>sc_node_attribute-basic_info_all-desc_text
        iv_key            = <ls_key>-key
        iv_value          = abap_true.
  ENDLOOP.

 

Thank you!

 

Marie-Josée


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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