Application Development 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: 

problem in makig a field obligatory

Former Member
0 Kudos

hi all

i am using a statement

s_cust for table1-field1 obligatory.

but in the selection screen the obligatory is being done for first range only

ie the low value ,the high value if user dont fill then also the program executes

i want to make both the ranges as obligatory so that user need to specify the range for the field1 and need to fill in both the ranges (low and high but presently only with this statement only first low is obligatory high value if we remain blank the program executes

pls suggest

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi!

You can't make the so-high field obligatory.

Personally I'm usually filling it dinamically, like this:

START-OF-SELECTION.

IF so-high IS INITIAL.

MOVE so-low TO so-high. "low = high

ENDIF.

OR

START-OF-SELECTION.

IF so-high IS INITIAL.

MOVE '99991231' TO so-high. "high = 9999.12.31

ENDIF.

Depends on the task...

Regards

Tamá

4 REPLIES 4

Former Member
0 Kudos

Hi!

You can't make the so-high field obligatory.

Personally I'm usually filling it dinamically, like this:

START-OF-SELECTION.

IF so-high IS INITIAL.

MOVE so-low TO so-high. "low = high

ENDIF.

OR

START-OF-SELECTION.

IF so-high IS INITIAL.

MOVE '99991231' TO so-high. "high = 9999.12.31

ENDIF.

Depends on the task...

Regards

Tamá

Former Member
0 Kudos

Hi Nishant,

You can do a validation,

select-options : s_cust for table1-field1.

 at selection-screen.
  
  if s_cust-low is initial.
   SET CURSOR FIELD 'S_CUST-LOW'.
    message e001(ZZ) with 'Low field is mandatory'.
  endif.

  if s_cust-high is initial.
   SET CURSOR FIELD 'S_CUST-HIGH'.
    message e001(ZZ) with 'High field is mandatory'.
  endif.

0 Kudos

hi Chandrasekhar

i did the validation as suggested by you but facing oe problem in it

if user clicks for the multiple options arrow on right most side of the select option for the field it gives error to fill in low value and high value then only that arro works and able to enter multiple options

pls co mment on this as it shoul dnot happen if user clicks onmuliple options arrow it should not gvie the low and hig value error

regards

Arora

Former Member
0 Kudos

there is one more alternative:

use the NO Interval options where in you won't get the high value at all; hence the user will be allowed to enter only the low value which is mandatory.

Regards,

Raman.