5

I would like to write a function module that returns a range table. Is that possible and if so, how?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Peter
  • 47,963
  • 46
  • 132
  • 181
  • 1
    What version of SAP are you using? 6.0 should have plenty of range tables predefined that you can specify in the FM signature. – Bryan Cain Sep 13 '10 at 17:16

1 Answers1

7

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).

Jagger
  • 10,350
  • 9
  • 51
  • 93
PATRY Guillaume
  • 4,287
  • 1
  • 32
  • 41