cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory field functionality not working

Former Member
0 Kudos

Hi,

I have created a custom value list and made it as mandatory field. But when saving document, it does not give required field message if the value list is having None value.

Please help me resolve this issue.

Thanks,

Saloni

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Saloni,

For a check can you please remove the obligatory check on the field?

The list should contain a blank option , but there should not be any option as "None". If "None" appears then there is problem with population of list.

You can still manage to have a mandatory check as:

1) remove obligatory check for the field.

2) add a check in PAI module to check if there is some value, if not give error message.

module check_value.

  if lv_list_value is initial.

    message e001(00) with 'Enter a value'.

  endif.

endmodule.

Hope this helps!!!

Former Member
0 Kudos

Hi,

What is PAI module?

Thanks,

Saloni

0 Kudos

Hi Saloni,

I've never seen this behavior before, so not sure what to suggest. Try restarting the app, may be if it's some sort of caching issue. Have you checked the logs? From the screenshot it looks like it's 5.x release. Can you tell us the exact release you are on?

Regarding PAI module that Rahul is referring to, it is not relevant to Sourcing tool.

Regards,

Vikram

Answers (2)

Answers (2)

Former Member
0 Kudos

Sorry my bad!!! I thought of it to be a module pool screen

0 Kudos

Hi Saloni,

Do you see the asterisk next to the field indicating it is a required field? Can you may be add a screenshot of the page showing the value list?

Regards,

Vikram

Former Member
0 Kudos

Hi Vikram,

Yes, asterisk sign is there.

Please find below screenshot.

former_member208675
Active Contributor
0 Kudos

Hi,

Have you keep 'None' as an option?

If yes, can you remove it from the value list & check again.

Regards,

Former Member
0 Kudos

Hi,

No, I have not added NONE as option.

Regards,

Saloni