most of the time when we develop a report program or a selection screen. We have to remove the standard validation which comes when we define a selection option as mandatory and add a custom validation. In such cases we are unable to display the selection option as a mandatory sign. To do this we can make the input field recommended which will give the sign. bellow is the code how to do it.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name EQ 'S_WERKS-LOW'.
screen-required = 2. "2 is recommended
ENDIF.
MODIFY SCREEN.
ENDLOOP.
No comments:
Post a Comment