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

Former Member
0 Likes
999

HI,

how to pass select-options value to a function module. how to declare that in import section of the function module.

i decalred a select options in my program and passed to function module but when i execute my program its going to short dump and in error analysis its giving message as value of pernr [select-options] used in report and in function module are of different type.

in function module i declared pernr as

import section --> pernr like catsdb-pernr.

how to solve this problem.

with regards,

Suresh.A

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
966

Hi Suresh,

Pass select option as TABLES parameter to the FM. There are already lots of thread on the same topic. You just search and you will find the solution.

Regards,

Atish

8 REPLIES 8
Read only

Former Member
0 Likes
966

Hi,

This dump is mainly bcoz u may have ste the value of the field as default try to use it as reference.

Pls reward points.

Regards,

Ameet

Read only

Former Member
0 Likes
967

Hi Suresh,

Pass select option as TABLES parameter to the FM. There are already lots of thread on the same topic. You just search and you will find the solution.

Regards,

Atish

Read only

Former Member
0 Likes
966

use the TABLES parameters with the type <b>wselkunnr</b>

Read only

Former Member
0 Likes
966

Hi

declare a variable for PERNR (V_PERNR) similar to CTASDB-PERNR

and move the value of Select-options pernr(S_PERNR) to this varaible

v_pernr = s_pernr.

then pass this v_pernr to your fun module and see what happens

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
966

Hi Suresh,

Declare the parameter for Select option under <b>TABLES.</b>

<b>Reward points if this helps.</b>

Kiran

Read only

PS_1978
Active Participant
0 Likes
966

Hi Suresh,

Create a structure (Similar to that of select options (sign, option, low & high)) and use that in import or tables parameter of the function module.

Be sure while defining the low and high fields of the structure (refer to the same data element that the select option you have defined in the program is refering).

Regards,

Phani.

Read only

Former Member
0 Likes
966

Hi

Pass as a TABLES parameter

using the Structure wselkunnr

because select options create a selection table which is similar to this structure.

Refer below link

https://forums.sdn.sap.com/click.jspa?searchID=3685531&messageID=2454966

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
966

answered