Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

doubt

Former Member
0 Likes
840

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
818

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

8 REPLIES 8
Read only

Former Member
0 Likes
818

hi,

you can make it mandatory while declaring a parameter itself.

parameter : p_matnr like mara-matnr mandatory.

Regards,

SRINIVAS

Read only

Former Member
0 Likes
819

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

Read only

Former Member
0 Likes
818

Hi

you should use Obligatory option

for ex:

parameters : p_vbeln like vbak-vbeln obligatory.

Regards

sandhya

Read only

Former Member
0 Likes
818

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

Read only

Former Member
0 Likes
818

Parameters: p_kunnr type kna1-kunnr OBLIGATORY.

selection-options: s_kunnr for kna1-kunnr OBLIGATORY.

regards,

srinivas

<b>*reward for useful answers*</b>

Read only

Former Member
0 Likes
818

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,

Read only

Former Member
0 Likes
818

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>

Read only

Former Member
0 Likes
818

plz rewards point if u feel that our answer is satisfyinh