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 options

abdulazeez12
Active Contributor
0 Likes
665

Hi friends,

i want to use select options for a field, and then pass it on to a functional module,...is it possible, can anyone explain to me how to do it/// for eg, werks will be a select option and matnr will be parameter. using a fm, i want to populate data from other fields of diff tables...maktx, vmver, etc from mard marc tables....

6 REPLIES 6
Read only

Former Member
0 Likes
638

Hi,

For the select options you can use table types for passing it in the FM parameters..

For werks there is a table type SD_WERKS_RANGES..

THanks,

Naren

Read only

Former Member
0 Likes
638

hi Shakir,

Make use of table types to achieve the same...

Regards,

Santosh

Read only

Former Member
0 Likes
638

Hi Shakir,

You can use the structure RSPARAMS for passing select options and parameters.

Hope this helps!

Regards,

Saurabh

Read only

0 Likes
638

hi,

use RSPARAMS.

Data : itseltab type standard table of rsparams,

waseltab type rsparams.

waseltab-SELNAME = 'V_BELNR'.

waseltab-sign = 'I'.

waseltab-option = 'EQ'.

waseltab-low = wabelnr-belnr.

append waseltab to itseltab.

so like that u can pass the table itseltab,

to the function module.

in the function module u gave a table type RSPARAMs

to receive the above table.

rgds

anver

pls mark hlpful answers

Read only

Former Member
0 Likes
638

Hi shakir,

1. U will have a WERKS select-options

on the selection screen.

(This same thing, u want to pass in FM)

2. So in FM, the

parameter has to be

TABLES parameter (Not import, nor export)

3. And the type will be

WERKS_RANG

(This WERKS_RANG has 4 fields,

just like a select option

SIGN

OPTION

LOW

HIGH

)

4. Then inside your fm,

u can use SELECT Query,

and use IN WERKS.

regards,

amit m

Read only

0 Likes
638

hi amit, thanku very much for ur answer, i am now trying the way u told...i am still a novice ABAPer, can anyone tell me, how to get such knowledge of what is existing in DDIC, i mean i never knew there was a structure for werks, etc etc...pls guide