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

HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.

Former Member
0 Likes
510

HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.

how can we add range selection in screen painter.

regards.

HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.

how can we add range selection in screen painter.

regards.

2 REPLIES 2
Read only

Former Member
0 Likes
473

You have to put two text fields. no other way.

and afterwards use IN statement in select statement.

data: lr_range type range of field1,

lr_range1 type range of field1.

data: ls_range type range of field1,

ls_range1 type range of field1,

ls_range-sign = 'I'

ls_range-option = 'GE'

ls_range-low = 'field1'

append ls_range to lr_range.

ls_range1-sign = 'I'

ls_range1-option = 'LE'

ls_range1-low = 'field2'

append ls_range1 to lr_range1.

select * from table name

into table itab

where

field1 IN lr_range and

field2 IN lr_range1.

this code workd.

regards

Satish

Read only

Former Member
0 Likes
473

Hi,

create two input fields and a push button like select option in the screeen.

Try checking this logic

<b>Program:</b>

<b>ranges</b> ra_matnr for mara-matnr.

<b>Layout field name declaration:</b>

Give the low field name as ra_range-low

and high field name as ra_range-high.

extension for pushbutton.--exten(function code)

next -- function code for the enter key.

PBO

module status_3000.

PAI

module user_command_3000.

<b>module user_command_3000.</b>

if sy-ucomm = exten.

call screen 400. (screen which shows extension values can be kept).

elseif sy-ucomm = Next.

if ra_matnr-low is not initial.

ra_matnr-SIGN = 'I'.

ra_matnr-OPTION = 'EQ'.

APPEND ra_matnr.

clear ra_matnr.

endif.

if ra_matnr-high is not initial.

ra_matnr-SIGN = 'I'.

ra_matnr-OPTION = 'EQ'.

APPEND ra_matnr.

clear ra_matnr.

endif.

endif.

endmodule.

module status_3000.

read table ra_matnr index 1 into ra_matnr .

set pf-status '3000'.

set title '3000'.

endmodule

Br,

Laxmi.