cancel
Showing results for 
Search instead for 
Did you mean: 

How to make mandatory field with asterisk mark* in material UI!!!

Former Member
0 Kudos
5,433

Hello All,

can anyone tell us how to make mandatory field with asterisk mark* in material UI, below are the activity what we did but still not working,

in data model marked required field and UI config also check mandatory,

Regards

Ajay 

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello!

there is another possile way to achieve this:

use custom field property badi and CHECK_ENTITY badi

in custom field you can set Mandatory (makes the *), Hidden and Readonly.

the check Badi then is used to really check the field.

create and use a central table (decision table in BRF+ perhaps) and read it in both places. For check you need only entries with M.

As an selection criteria you may use change request type, step, status, material type and so on. Table returns field and property.

then you have a dynamical way to control field properties for everything.

works fine, standard now in every project 🙂

M.

Former Member
0 Kudos

Hi Ajay,

Did you figure out the answer? Can you share here?

Thanks,

Giri

Former Member
0 Kudos

Hi Ajay,

Mandatory fields in MDG-MM are determined by the field selection group in ECC.

please maintain configuration in tcode OMS9 to make fields mandatory with (*).

Regards,

Bhuvaneswari.

Former Member
0 Kudos

Thanks Praveen and Bhuvaneswari,

we wanted to make material group as mandatory with(*),

we are able to get error message with MDGIMG config but not the *mark,

Regards

Ajay

Former Member
0 Kudos

Hi Ajay

If field is attribute and you want to make it required then do it in MDGIMG and select required checkbox

Former Member
0 Kudos

Hello Sanjay,

MDGIMG config works fine for BP but when we do same for MM not working,

anything else need to be done,

Regards

Ajay

Former Member
0 Kudos

HI Ajay,

Please find the below steps for make the field Mandatory.

1. In MDGIMG, Data model and select required field.

2. Respective UIBB, you have to select the attribute and make a mandatory field to get the asterisk mark*.

3. In Feeder class, you have maintain the code to highlight the fields with Colour.

4. In BADI, you have to write a coding and you will get the mandatory field in UI screen.

Regards,

A.Madhu Kumar

Former Member
0 Kudos

Thanks Madhu for response,

we have to follow all these steps to get * mark?

praveenkumar_kadi
Active Contributor
0 Kudos

Hi Ajay,

Based on your question, I assume you are already done below config

the field is made mandatory in data model config and you have checked mandatory checkbox on that UI OVP config page.

Those are the steps even I did and it works for me as we are just making a field as mandatory with asterisk and when I run the application and if I do not enter I get an "Please enter the field" error message..! However this is on flex UI field so are you referring to a flex UI field? or the is the field comes from an ECC MM tables ? If it's an ECC field I would check on ECC field properties.

Thanks

Praveen