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

select-options

Former Member
0 Likes
617

Hi Frendz,

how to make obligatory for both low and high on selection-screen?

Thanks

5 REPLIES 5
Read only

athavanraja
Active Contributor
0 Likes
595

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 .

Raja

Read only

Former Member
0 Likes
595

Hi Viajaya,

In a select-option you can also enter a list ?

What do u do with this option ?

If you enter only intervals, then you can create two parameters :

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT  1(18) text-p1 FOR FIELD p_LOW.
PARAMETERS : p_LOW LIKE ....
SELECTION-SCREEN COMMENT 45(20) text-p2 FOR FIELD p_HIGH.
PARAMETERS : p_HIGH LIKE .....
SELECTION-SCREEN END OF LINE.

Hope this helps,

Erwan

Read only

Former Member
0 Likes
595

TRY THIS

select-options: s_matnr for mara-matnr obligatory.

at selection-screen output.

loop at screen.

case screen-name.

when 'S_MATNR-HIGH'.

SCREEN-REQUIRED = 1.

endcase.

modify screen.

endloop.

Read only

Former Member
0 Likes
595

Hi ,

try using this sample code...

tables: a006.

selection-screen begin of line.

selection-screen position 1.

selection-screen comment (31) text-006 for field p_datab.

parameters : p_datab like a005-datab obligatory.

selection-screen position 46.

selection-screen comment (10) text-001 for field p_datbi.

parameters : p_datbi like a005-datbi obligatory.

selection-screen end of line.

where text - 006 contains the field name and

text - 001 contains ' To'.

Madhavi

Read only

Former Member
0 Likes
595

Hi Laxmi,

At <b>At selection-screen</b> event check whether both select-LOW and select-HIGH are not initial.

Reward if usefull..