How to select several ranges for the parameter WITHOUT the first filling of all other necessary parameters?

The picture

I want to be able to select multiple ranges for the "sales order number".

The problem is this: when I click the button marked in green, I get the error message "Fill out all the required input fields."

I put my main processing unit in the START-OF-SELECTION event.

What to do to prevent this from happening? It seems to me that I should be able to add several options without any hassle during the first filling of each other required field.

+5
source share
2 answers

/select -options OBLIGATORY, . , OBLIGATORY , :

  • , F4, , F1 :

:

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.
+6

, , :

1: "".

2: PBO:

LOOP AT SCREEN.
  IF screen-name cs 'name-of-your-select-options-or-parameter'.
    screen-required = 2.
    MODIFY SCREEN.
  ENDIF.

3: PAI:

if sscrfields-ucomm = 'ONLI'.
    if 'name of your select-option-or-parameter' is initial.
      clear sscrfields.
      message 'Fill in all required fields.'(009) type 'E'.
    endif.
  endif.

, if 'cs'. , . % _P_MATNR_% SCREEN %% ( p_matnr).

, : TABLES sscrfields..

-2

All Articles