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 give rang in moodulpool programing

Former Member
0 Likes
1,103

hi

we can give rang in reports useing "s_lifnr for lfa1-lifnr". inthe same way how can i give min and max values in module pool programing.iwant to provode range for lifnr .

how is it possible?

hi

we can give rang in reports useing "s_lifnr for lfa1-lifnr". inthe same way how can i give min and max values in module pool programing.iwant to provode range for lifnr .

how is it possible?

7 REPLIES 7
Read only

former_member156446
Active Contributor
0 Likes
1,070

declare like this:

data: ra_lifnr type selopt.

Read only

0 Likes
1,070

if i want to give rang for some other fields wht can i do?

Read only

0 Likes
1,070

write the code as I said in abap editor and double click on selopt....you will get a better picture...

selopt is a sap standard structure... you can use it for any data element..

J@Y

Read only

Former Member
0 Likes
1,070

Hi,

Declare two fields

Field1-low and field-high

and just fill the range s_field with

sign = I

Option = EQ

Low = field1-low

high = field-high

append s_field.

Read only

Former Member
0 Likes
1,070

either u can create subscreen as selection screen and call the input fields as in report

OR

create two fields in the screen with name S_LIFNR-LOW and S_LIFNR-HIGH.and whle fetching do

select * from lfa1 where lifnr BT S_LIFNR-LOW AND S_LIFNR-HIGH.

Read only

0 Likes
1,070

after writing this code can display that field in table control.

isit possible

Read only

0 Likes
1,070

can u elaborate?