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

Selection-screen functionality in dialog screen

Former Member
0 Likes
260

SELECT-OPTIONS pr_matnr FOR lv_matnr-matnr.

What this does is display a 'From' and 'To' field, plus a little right-hand arrow to allow additional ranges to be added. I'm trying to achieve the same but within a dialog screen. Anyone?.

I just know that I'm going to kick myself when I find out how to do it, but I have all but given up searching for it. Perhaps it's just a bad day and I've chosen the wrong search params.

thanks.

1 REPLY 1
Read only

Former Member
0 Likes
241

Hi.

I tried this at my system and the following seems to work

1) Create a report that defines a subscreen:

REPORT ztst.

TABLES mara.

SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.

SELECT-OPTIONS: s_matnr FOR mara-matnr.

SELECTION-SCREEN END OF SCREEN 1010.

2) Call this subscreen from your dialog screen

in PBO:

CALL SUBSCREEN subscreen_1 INCLUDING 'ZTST' '1010'.

in PAI:

CALL SUBSCREEN subscreen_1.

Reward if helpfull...

Cheers,

Sundar.