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 selection screen for function pool program

Former Member
0 Likes
549

Hi,

I have a requirement wherein i need to make the parameter field flexible( meaning can exclude, include values etc). Same function as select-options. The parameter was created in a dialog progmming.

The problem here is that i am using function pool. I have tried to use subscreen but it is only applicable on report program. Is anyone knows if this is possible. Or is there any way to make the field as select-option without using call subscreen?

Please help!

Thanks in advance!

2 REPLIES 2
Read only

Former Member
0 Likes
487

hi,

i guess u can try this.

in your screen layout create 2 seperate fields - one for the high value and one for the low value. insert an icon beside the high value which will call the multiple selections popup screen on user command. use funtion module COMPLEX_SELECTIONS_DIALOG to achieve this.

Read only

Former Member
0 Likes
487

Hi,

No need to create separate Fields ,only create as parameter.

for your Reference check below code.

DATA : lv_title TYPE sy-title,

ls_description TYPE rsfldesc,

lt_selopt TYPE STANDARD TABLE OF rsdsselopt.

PARAMETER : p_field TYPE ausp-atwrt .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.

lv_title = 'TEST'.

ls_description-type = 'C'.

ls_description-length = '30'.

ls_description-olength = '30'.

CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'

EXPORTING

title = lv_title

description = ls_description

help_field = 'AUSP-ATWRT'

TABLES

range = lt_selopt

EXCEPTIONS

no_range_tab = 1

cancelled = 2

internal_error = 3

invalid_fieldname = 4

OTHERS = 5.

IF sy-subrc NE 2.

MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.