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: 

Select-option mandatory field

former_member632991
Active Contributor
0 Kudos
1,046

Hi,

I have a select option on the selection screen which i have made mandatory.

I want to enter the values directly through multiple selection and not on the single field, but when i click on the multiple selection option, it is giving me error to fil the mandatory field first before going to the multiple selction.

Regards,

Sonika

1 ACCEPTED SOLUTION

Former Member
0 Kudos
596

Dont make it mandatory..

U can do like this.

Start-of-selection.

if (Name of selection option) is initial.

message s(102) (Here give msg like: it is mandatory to fill this field).

leave list-processing.

endif.

Regards,

Nishant

6 REPLIES 6

Former Member
0 Kudos
596

This is a standrad functionality of SAP.

In order to achiev the requirement you have to code within AT SELECTION-Screen on s_field.

At selection-screen of s_field.

if s_field[] is initial.

message e000 with ' S_field is mandatory'.

endif.

former_member404244
Active Contributor
0 Kudos
596

Hi,

First u have to give some value to field before going for multiple selection,then only it will work....

Regards,

Nagaraj

0 Kudos
596

Hi Nagraj,

i don't want to put any value in the field as user will just copy the value from the excel and want to paste it in the multiple selection directly.

Is there any way?

Regards,

Sonika

Former Member
0 Kudos
597

Dont make it mandatory..

U can do like this.

Start-of-selection.

if (Name of selection option) is initial.

message s(102) (Here give msg like: it is mandatory to fill this field).

leave list-processing.

endif.

Regards,

Nishant

Former Member
0 Kudos
596

Hi,

Yes that is a functionality provided by SAP and i dont think we can change it .

An alternative i would suggest is to make the field non mandatory in the selection screen and then check it in the AT SELECTION SCREEN event if values have been entered in the fields.

Regards

Arun

former_member632991
Active Contributor
0 Kudos
596

Answered