Skip to Content

Providing space for select option button and arrow button

How to provide space in select option in below screen shot

One more question here

I have first 2 fields are obligatory when I press an arrow for material it give the error message

Fill in all required entry fields

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 05, 2014 at 12:33 PM

    In selection-screen, generated dynpro, the function code associated to the icon is not defined as an Exit function key. (Even if you change the generated screen, it will be regenerated soon or later...) so the obligatory/required flag will be checked before execution of user-command.

    So you could remove the obligatory option in parameters/select-options fields.Then execute the check in a AT SELECTION-SCREEN [ON field], - hint: you could also check that SSCRFIELDS-UCOMM is 'ONLI' or 'PRIN' or doesn't start with '%' (%001, %002, etc.)



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2014 at 12:53 PM

    For the issue that you marked as red is an standard one .

    You must have used NO INTERVALS after select options like --

    select-options : s_matnr type mara-matnr no intervals.

    For the second issue , This is again an standard one as the obligatory condition will be checked everytime you do something on screen. (clicking arrow , executing etc).

    Workaround for this is --

    Let's say you want to display a message error "fill in all required fields."

    In at-selection-screen event , write this -

    IFsy-ucomm EQ 'ONLI'.

    IF s_matnr-low IS INITIAL OR p_class IS INITIAL.

    MESSAGE 'fill all required fields' TYPE 'E'.



    so your empty mandatory fields will only get checked when you try to execute your report.



    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.