‎2007 Jul 06 8:11 AM
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
‎2007 Jul 06 8:15 AM
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
‎2007 Jul 06 8:14 AM
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
‎2007 Jul 06 8:15 AM
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
‎2007 Jul 06 8:15 AM
‎2007 Jul 06 8:16 AM
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
‎2007 Jul 06 8:17 AM
Hi Suresh,
Declare the parameter for Select option under <b>TABLES.</b>
<b>Reward points if this helps.</b>
Kiran
‎2007 Jul 06 8:21 AM
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.
‎2007 Jul 06 8:23 AM
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
‎2007 Jul 09 6:42 AM