‎2007 Jul 31 10:12 AM
Hi
How can I make a screen field mandatory?
I am doing it in the event at selection-screen output using loop at screen.
but do not know whether it is the right metod or not.
can any one help.
thanks in advance
‎2007 Jul 31 10:15 AM
Hi
You will use that method for the reports
to make come field on selection screen not to appear.
but for screen fields
double click on it.
you will see the attributes
in the attributes
click on PROGRAM
check the field INPUT FIELD
Against INPUT select REQUIRED and Save
then it will be made mandatory
<b>Reward points for useful Answers</b>
Regards
Anji
Message was edited by:
Anji Reddy Vangala
‎2007 Jul 31 10:14 AM
hi,
you can make it mandatory while declaring a parameter itself.
parameter : p_matnr like mara-matnr mandatory.
Regards,
SRINIVAS
‎2007 Jul 31 10:15 AM
Hi
You will use that method for the reports
to make come field on selection screen not to appear.
but for screen fields
double click on it.
you will see the attributes
in the attributes
click on PROGRAM
check the field INPUT FIELD
Against INPUT select REQUIRED and Save
then it will be made mandatory
<b>Reward points for useful Answers</b>
Regards
Anji
Message was edited by:
Anji Reddy Vangala
‎2007 Jul 31 10:18 AM
Hi
you should use Obligatory option
for ex:
parameters : p_vbeln like vbak-vbeln obligatory.
Regards
sandhya
‎2007 Jul 31 10:20 AM
Hi,
use OBLIGATORY keyword for this:
e.g.
Parameters: p_matnr type mara-matnr OBLIGATORY.
selection-options: s_matnr for mara-matnr OBLIGATORY.
Jogdand M B
‎2007 Jul 31 10:57 AM
Parameters: p_kunnr type kna1-kunnr OBLIGATORY.
selection-options: s_kunnr for kna1-kunnr OBLIGATORY.
regards,
srinivas
<b>*reward for useful answers*</b>
‎2007 Aug 01 6:51 AM
hi ,
at selection-screen output.
if is p_bukrs initial and p_vkorg is initial.
message 'provide p_vkorg input' type 'S'.
exit.
endif.
<b>reward points if helpful,</b>
regards,
‎2007 Aug 01 6:53 AM
you have to do like this and for achieving the requirement you have to press enter in the selection screen or any user interaction to trigger at selection-screen event.
data : flag.
at selection-screen output.
if flag = 'X'.
LOOP AT SCREEN.
IF s_bukrs IS INITIAL.
IF s_vkorg IS INITIAL.
screen-group1 = 'MO1'.
screen-required = '1'.
MODIFY SCREEN.
EXIT.
ENDIF.
ENDIF.
IF s_bukrs IS NOT INITIAL.
IF s_vkorg IS INITIAL.
screen-group1 = 'MO1'.
screen-required = '0'.
MODIFY SCREEN.
EXIT.
ENDIF.
ENDIF.
ENDLOOP.
clear flag.
endif.
at selection-screen.
flag = 'X'.
start-of-selection.
regards
<b>Rewrad spoint for helpful answer</b>
‎2007 Aug 01 7:37 AM