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: 
Read only

selection screen validations

Former Member
0 Likes
560

Hi All,

Am validating the Select-options low values.how to do validations on high values.

Please suggest.

Thanks&Regards.

Ramu.

6 REPLIES 6
Read only

Former Member
0 Likes
538

hi,

try this one,

select-options: s_a for csks-kostl .

at selection-screen on s_a .

if s_[]is initial .

  • error message

else .

if s_a-low is initial and s_a-high is initial .

*error message

endif .

endif .

Pls reward useful points...

Thanks,

Siva

Read only

Former Member
0 Likes
538

For multiple seelction use

AT SELECTION-SCREEN ON END OF s_gsart .

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
538

Hi,

You can use AT SELECTION-SCREEN ON sel_opt-high.

Regards,

Sesh

Read only

Former Member
0 Likes
538

use the below events....

AT SELECTION-SCREEN ON sel_opt-low.

whrite ur validations here...

AT SELECTION-SCREEN ON sel_opt-high.

whrite ur validations here...

Regards,

Ramesh.

Read only

Former Member
0 Likes
538

Hai,

Use the following validation

AT SELECTION-SCREEN ON so_werks-low.

perform validation using so_werks-low.

AT SELECTION-SCREEN ON so_werks-high.

perform validation using so_werks-high.

Reward if useful.

Regards,

Umasankar

Read only

Former Member
0 Likes
538

Hi,

paste this code and try it.


AT SELECTION-SCREEN ON s_matnr.
IF NOT s_matnr[] IS INITIAL.
LOOP AT s_matnr.
IF NOT s_matnr-low  IS INITIAL.

  SELECT SINGLE matnr INTO v_matnr
         FROM mara
         WHERE matnr = s_matnr-low.

  IF sy-subrc NE 0.
    MESSAGE i128.
    LEAVE LIST-PROCESSING.
  ENDIF.
  ENDIF.
IF NOT s_matnr-high IS INITIAL.
  SELECT SINGLE matnr INTO v_matnr
         FROM mara
         WHERE matnr = s_matnr-high.

  IF sy-subrc NE 0.
    MESSAGE i128.
    LEAVE LIST-PROCESSING.
  ENDIF.
  ENDIF.
ENDLOOP.

ENDIF.

Please reward and close the previous thraed opened by you,