You can edit the screen and set the field to mandatory. Be aware that you will loose the change if the screen is re-generated.
Can the user be forced to enter a non-initial value by the Table Maintenance screen in SM30?
-
02-06-2022 - |
質問
I'd like to force the user to chose between Yes
and No
, and not let him add an entry where the value is initial.
This is regardless of whether I check the Initial
checkbox in the table definition.
Can this be done?
[EDIT] Domain data type : CHAR, 1 character, no conversion routine. Value range: single values: '1' description = 'Yes' '2' description = 'No'
解決 2
他のヒント
By far the easiest way is to use a data element in the table that only allows non-initial values.
If you can't change the data element, you can try using table maintenance events in the table maintenance generator:
You may be able to use event 1 (Before save) or event 5 to build a manual check, but 5 does not kick off on change.
If that doesn't work, you can still manually add a check in the PAI of the screen, however you run the risk that if someone regenerates the maintenance scree, they will forget/not know to put the check back in.
You can set the compare flag:
But from what I've seen the flag doesn't actually force you to redo any of the changes, and is still pretty easy to miss.
You can do that with that steps:
- in SE11 choose the Utilities menu -> Table Maintenance Generator
- in the Table Maintenance Generator go to menu Environment -> Modification -> Maintenance Screens, then select the screen (usually is 0001), in the Element List Tab you find the Special attr, in the field Input, you choose Required for the field you want obligatory.
Thanks.
Regards. Gil Mota.