Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select multiple ranges for a parameter WITHOUT first filling all other required parameters?

The picture

I'd want to be able to have multiple range selections for "Sales order no."

Problem is: when i press the button marked with green, i get the error "Fill in all required entry fields".

I put my main processing block at the START-OF-SELECTION event.

What to do to not have this happen? It seems to me that i should be able to add multiple selections without all the hassle of first filling every other mandatory field.

like image 863
vlad-ardelean Avatar asked Jul 27 '12 08:07

vlad-ardelean


People also ask

How do you exclude values in SAP?

You can use the function module SELECT_OPTIONS_RESTRICT.

Which keyword is used to remove the multiple selection button from the Select option?

Ctrl to add to the selection. Alt to remove from the selection.

How do you create a selection table in SAP ABAP?

SELECT- option S seltab FOR f . to declare a selection table in the program that is linked to the f column of a database table, or to an internal f field in the program. A selection table is an internal table object of the standard table type that has a standard key and a header line.


1 Answers

With parameters/select-options set to OBLIGATORY, this won't work. I had the very same problem some time ago, and had no chance to fill the OBLIGATORY input parameters with useful values by default, so I did the following:

  • Remove the OBLIGATORY option from all select-options and parameters
  • Handle the check for obligatory input yourself in cases no F4,help, F1 help or the button next to any select option is pressed:

Code:

AT SELECTION-SCREEN ON s_reswk.

IF sy-ucomm(1) <> '%' AND      " sel screen action request
   sy-ucomm(1) <> '_' AND      " scope option
   s_reswk IS INITIAL.         " Obligatory input missing
   MESSAGE text-e01 TYPE 'E'.  " Error message
ENDIF.
like image 133
Hans Hohenfeld Avatar answered Sep 29 '22 22:09

Hans Hohenfeld