Skip to Content

Select-option mandatory field

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 08:11 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 08:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 08:06 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2008 at 08:06 AM

    Hi,

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

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2008 at 05:19 AM

    Answered

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.