2020 Jun 22 6:12 AM
Hi everyone. Good morning. Can select-options be used in function modules? if it is ,please let me know the syntax for using it . Thank you.
2020 Jun 22 6:31 AM
karoncdas_31,
Function modules does not have a direct parameter that deals with Select Options, below are few suggestions for using the select Options:
1) Convert the select option into a Internal table in your program and pass the internal table as a tables parameter in function module. You can internally use this table in your select queries.
2) Another work around would creating a parameter which is very similar to the structure of the select option and use the same. You can follow the below link to understand this option.
Regards!
2020 Jun 22 6:31 AM
karoncdas_31,
Function modules does not have a direct parameter that deals with Select Options, below are few suggestions for using the select Options:
1) Convert the select option into a Internal table in your program and pass the internal table as a tables parameter in function module. You can internally use this table in your select queries.
2) Another work around would creating a parameter which is very similar to the structure of the select option and use the same. You can follow the below link to understand this option.
Regards!
2020 Jun 22 7:09 AM
Hi
Just don't use TABLES type of parameter. It's obsolete. Instead use IMPORTING or EXPORTING, with full table type definition.
Select options is just an internal table, with a specific line structure.
2020 Jun 22 9:34 AM
One small clarification, which is likely not relevant in the original context of the question.
TABLES parameters are obsolete except for in RFC enabled function modules. For those they still have a legitimate role as the enconding and transfer of the data is done in a different way (in most cases with far better performance).
2020 Jun 22 9:36 AM
2020 Jun 22 12:00 PM
2020 Jun 22 7:09 AM
Please learn to search. As you can see, many people have asked the same question before you (since the forum used to exist).
Your preferred browser:
Can select-options be used in function modules? site:sap.com
2020 Jun 22 7:18 AM
All results of the web search: