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 option

Former Member
0 Likes
589

how to use range option instead of high and low in a select option.

5 REPLIES 5
Read only

Former Member
0 Likes
572

hi,

u can populate this way:

R_VORNR-SIGN = 'E'.

R_VORNR-OPTION = 'EQ'.

R_VORNR-LOW = '0020'.

APPEND R_VORNR.

R_VORNR-LOW = '0030'.

APPEND R_VORNR.

R_VORNR-LOW = '0040'.

APPEND R_VORNR.

R_VORNR-LOW = '0090'.

APPEND R_VORNR.

R_VORNR-LOW = '0100'.

APPEND R_VORNR.

R_VORNR-LOW = '0130'.

APPEND R_VORNR.

CLEAR R_VORNR.

regard,

madhu

Read only

Former Member
0 Likes
572

hi,

Ranges can not be shown on selection screen.For e.g.

from a table if you have to select a field with 2 values val1 and val2 then you can declare ranges as below:

data:r_var for <table name>-< field name>.

r_var-low = 'val1'.

r_var-high = 'val2'.

r_var-sign = 'I'.

append r_var.

select f1 f2 from table <tab name>

where f1 in r_var.

Read only

Former Member
0 Likes
572

Hi,

Please find bellow exp.:

RANGES S_CARRID FOR SPFLI-CARRID.

S_CARRID-SIGN = 'I'.

S_CARRID-OPTION = 'EQ'.

S_CARRID-LOW = 'LH'.

APPEND S_CARRID.

SUBMIT DEMO2 WITH CARRID IN S_CARRID.

reward if helpful.

Amit.

Read only

Former Member
0 Likes
572

RANGES: r_date FOR zppt02_loss-datlp.

r_date-sign = 'I'.

r_date-option = 'BT'.

r_date-low = low_date.

r_date-high = high_date.

APPEND r_date.

Read only

Former Member
0 Likes
572

Hi Reddy!

try this way:

types: begin of ranget,

sign type tvarv_sign,

option type tvarv_opti,

low type tvarv_val,

high type tvarv_val,

end of ranget.

Data: rp_profl type standard table of ranget.

kindly reward points if helpful.