Skip to Content
0
Former Member
Jun 18, 2006 at 05:22 AM

On-Value Request Event

18 Views

Hi All,

I have used 'ON VALUE-REQUEST' event for a variable S_CNTRY in the select-options.

SELECT-OPTIONS: S_CNTRY FOR ADRC-REGION OBLIGATORY.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CNTRY-LOW.

PERFORM SEARCH_HELP_REGION CHANGING S_CNTRY.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CNTRY-HIGH.

PERFORM SEARCH_HELP_REGION CHANGING S_CNTRY.

Is the above declaration Ok ? Can I declare in one statement rather than using two separate as 'LOW' and 'HIGH' reapectively.

Further to this , if I want to write a select statement which will take the values of S_CNTRY from 'S_CNTRY-LOW' to 'S_CNTRY-HIGH' , how shall I do that ??

SELECT X Y Z FROM Z-TAB INTO

ITAB WHERE VAR IN ('S_CNTRY-LOW' TO 'S_CNTRY-HIGH').

Is it fine ?

Kindly help....

Thx...

Paul