Skip to Content
avatar image
Former Member

FPM - Mandatory field in a component configuration

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 14, 2014 at 07:06 AM

    HI Marie,

    If you are using component config, then click on START CONFIGURATOR and go to your corresponding UI element in the view. Click on the UI element and in the right panel, you will get the UI properties. Check the property - STATUS and make it to Required Entry.

    Hope it helps you😊

    BR,

    RAM.


    Status.jpg (124.7 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi all,

           I used the above technique to make some fields as mandatory in my component.

      But when I am navigating to another screen, i am unable to make any field mandatory in that component. Though it is showing the mandatory sign(*), while saving it is not showing any error when left without  entering any data.

      Thanks in advance.

      Bharathi.