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

regarding select option in a module pool prog .

Former Member
0 Likes
445

hello .. i need some help regarding select options in a module pool program .. i hav tried putting a select options in a module pool prog but i am not able 2 ... can any one tel me why select options r not aloowed in a module pool prog ?? and i read that we hav 2 use ranges 2 fulfil the needs of the select options . is there any way i cal get all the functionality of select options ( eg including , excludig , equal to , not equal to , .... .) using a range ??

hello .. i need some help regarding select options in a module pool program .. i hav tried putting a select options in a module pool prog but i am not able 2 ... can any one tel me why select options r not aloowed in a module pool prog ?? and i read that we hav 2 use ranges 2 fulfil the needs of the select options . is there any way i cal get all the functionality of select options ( eg including , excludig , equal to , not equal to , .... .) using a range ??

2 REPLIES 2
Read only

former_member188829
Active Contributor
0 Likes
411

U Can't use select-options in modulee pool pgm.

Declare 2 parameters instead of select-options and use like this.

Parameters:v1_matnr like mara-matnr.

parameters:v2_matnr like mara-matnr.

And in Select statement use like this

select matnr mtart ntgew from mara into corresponding fields of table itab where matnr between v1_matnr and v2_matnr.

Read only

Former Member
0 Likes
411

Hi

Select-options won't work if you declare the program as Module POOL.

if you wants to use select-options like utility in module pool programming

use ranges

declare and develop ranges and use that in select statement where condition.

ranges: r_vbeln for vbak-vbeln.

r_vbeln-low = '0018900678'.

r_vbeln-sign = 'I'.

r_vbeln-option = 'EQ'.

append r_vbeln.

r_vbeln-low = '0018900456'.

r_vbeln-sign = 'I'.

r_vbeln-option = 'EQ'.

append r_vbeln.

reward if useful

regards

Anji