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

Range fields within screens...

Former Member
0 Likes
491

Can anyone identify a transaction/program that has a range (low/high and all the associated options) within a screen, but NOT a selection-screen. I'm trying to implement the same functionality as supplied when using the SELECT-OPTIONS command, but within a standard screen.

If I can identify an existing SAP program that does this I'll take a look at the code. I thought I knew a few transactions but when looking I suddenly realised that it's not that easy to find such a transaction/program.

1 ACCEPTED SOLUTION
Read only

0 Likes
463

Hi,

use FM: 'COMPLEX_SELECTIONS_DIALOG'

here an example

*--

DATA: h_range(16.

RANGES r_range FOR h_range.

*--

CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'

EXPORTING

title = 'Auswahl'

text = 'Bitte wählen Sie'

TABLES

range = r_range

EXCEPTIONS

no_range_tab = 1

cancelled = 2

internal_error = 3

invalid_fieldname = 4

OTHERS = 5.

you need to create a button with icon "ICON_DISPLAY_MORE".

Reward if helpfull...

Cheers,

Ameen.

2 REPLIES 2
Read only

Former Member
0 Likes
463

Why not use a selection screen and then use CALL SCREEN #### to enter into your other screen processing?

Read only

0 Likes
464

Hi,

use FM: 'COMPLEX_SELECTIONS_DIALOG'

here an example

*--

DATA: h_range(16.

RANGES r_range FOR h_range.

*--

CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'

EXPORTING

title = 'Auswahl'

text = 'Bitte wählen Sie'

TABLES

range = r_range

EXCEPTIONS

no_range_tab = 1

cancelled = 2

internal_error = 3

invalid_fieldname = 4

OTHERS = 5.

you need to create a button with icon "ICON_DISPLAY_MORE".

Reward if helpfull...

Cheers,

Ameen.