问题
I would like to write a function module that returns a range table. Is that possible and if so, how?
回答1:
The structure of a typed range is like this :
**Name** **Type**
SIGNT VARV_SIGN
OPTION TVARV_OPTI
LOW your-type
HIGH your-type
You can create this structure in the dictionary, as well as a table of those, and then use it in the FM signature.
Also, a generic structure already exists : RSDSSELOPT
(along with a table type RSELOPTION
).
来源:https://stackoverflow.com/questions/3702429/returning-a-range-table-in-abap