Hello Community,
currently I am customizing WDA ESS Scenarios on EhP5. I added some new fields in the method IF_FPM_GUIBB_FORM~GET_DEFINITION of the feeder class for the scenario.
The method has also an EXPORTING Parameter for the field descriptions (ET_FIELD_DESCRIPTION).
The table line is structure of FPMGB_T_FORMFIELD_DESCR and I did the following to mark some fields as 'mandatory':
READ TABLE et_field_description WITH KEY name = 'STRAS' ASSIGNING <fs_wa_mand_field>. <fs_wa_mand_field>-MANDATORY = abap_true. READ TABLE et_field_description WITH KEY name = 'PSTLZ' ASSIGNING <fs_wa_mand_field>. <fs_wa_mand_field>-MANDATORY = abap_true. READ TABLE et_field_description WITH KEY name = 'ORT01' ASSIGNING <fs_wa_mand_field>. <fs_wa_mand_field>-MANDATORY = abap_true. READ TABLE et_field_description WITH KEY name = 'ZZ_CITY_CODE' ASSIGNING <fs_wa_mand_field>. <fs_wa_mand_field>-MANDATORY = abap_true. READ TABLE et_field_description WITH KEY name = 'MELDEZETTEL' ASSIGNING <fs_wa_mand_field>. <fs_wa_mand_field>-MANDATORY = abap_true.
Now I expect, that the fields on the ESS scenario would have a red asterisk. But I am also able to save the data with not entering all neccessary data.
What I have to do, to mark the fields as mandatory?
Thank you and best regards, Christian