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

Subscreen in Dialog program

Former Member
0 Likes
363

Hi,

I am creating a dialog / module pool transaction.

I have to define some select option on the screen. As this cant be done on the main screen directly.

I define a subscreen in my Top include:

******

SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS: SO_BUKRS FOR ZTRT_BSM_BSDA-BUKRS modif ID 001,

SO_BNAME FOR ZTRT_BSM_BSDA-Bname modif ID 001.

SELECTION-SCREEN END OF BLOCK B1.

SELECTION-SCREEN END OF SCREEN 100.

******

And then i call this PBo of my main screen.

CALL SUBSCREEN BSDA_HEADER INCLUDING <prgname> '100'.

And can see the select-options is shown on the screen also.

I face 3 issues here.

1> when i want to enter multiple values for the select opitions, the standard functionality of po-up for select options does not work.

2> How can i make sure that these select-options are input enabled in case there is a error message. Since it is not possible to add the subscreen fields in the chain end chain of the main screen.

3> i may have to restrict the user to not include say ranges for these select -options (thats after point 1 works), now in a report this can be done by using the FM "select_optionsrestrict", can i do the same in Dialog??

Thanks,

Anuj.

1 REPLY 1
Read only

Former Member
0 Likes
291

Hi,

1. It doesn't work bec. u are using ztable field as select options, check the field help is available or not. If not please create the same.

2. You can create the screen thru screen painter and it allows u to go in PBO/PAI so that you can code for the same and check for the input. Ypu can create subscreen area thru subscreen wizard and it will automatically add standard code in your program.

3. You can check the user entries in the PAI and restrict user to go ahead.

Please use screen in your module pool. as

CALL SCREEN 100.

Hope this will work.