Skip to Content
0
Former Member
Apr 11, 2014 at 05:25 PM

FPM - Mandatory field in a component configuration

1743 Views

Hello,

I'm am working on the component configuration EHHSS_INC_REC_QAF_BINF_FRM and I need to make a field mandatory. I cannot use the mandatory checkbox attribute in the BOPF EHHSS_INCIDENT because the node BASIC_INFO_ALL is used in multiple screens and I only need it for a specific screen.

I tried with the feeder class in method IF_FPM_GUIBB_FORM~GET_DATA to change the property of the field but it does not work. Does someone knows how to do it?

READ TABLE ct_field_usage[] ASSIGNING <lfs_field_usage> WITH KEY name = 'DESC_TEXT'.
IF sy-subrc = 0.
<lfs_field_usage>-mandatory = abap_true.
ev_field_usage_changed = abap_true.
ENDIF.

Thank you!

Marie-Josée