Application Development 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: 

Create a custom multiple selection on screen - not selection-screen block

Former Member
0 Kudos

Dear expert,

I created a text field on screen for input selection, e.g field bname for USR02-BNAME. How can i create a CUSTOMIZE multiple selection plus a paste (from clipboard) feature on this screen (e.g. SCREEN 0002) like standard selection-screen from SAP when we create a report.

For a better view on what i want:

This text field already use F4 customize search help. I need a multiple selection lines (like standard selection-screen a button on the right side of select-options field).

Remember, i don't create textfield from select-options parameter (e.q. SELECT-OPTIONS : XBNAME FOR USR02-BNAME),

but on a screen.

Anyone can help my case?.

Thanks and Warm regards,

Dondi.

2 REPLIES 2

Former Member
0 Kudos

Are you trying to do something like this?

tables usr02.

SELECTION-SCREEN BEGIN OF SCREEN 1.
SELECT-OPTIONS: my_field FOR usr02-bname.
SELECTION-SCREEN END OF SCREEN 1.
* . . .
call selection-screen 1.

This will give you the more-selections button and you can upload your clipboard or a file there....

erik_mertens3
Explorer
0 Kudos

Had the same question from my users. This was the first hit i found but unfortunately without an answer. So for those with the same question, this is how i solved it (goede voornemen voor 2014). In my case the request is a complex selection on the LFA1 table.

The screen contains two fields to enter the low/high value for lifnr (zdy_droogteschade-lifnr and zdy_droogteschade-lifnr_tot)

Created a button on the screen, mark this as output only, when pressed the routine multi_select_crediteuren is performed wich uses the fm 'COMPLEX_SELECTIONS_DIALOG'.

To top it all of, the icon on the button changes depending on the contains of the range table (in a routine called from the PBO).

This only works when the button is marked as 'output only',

Include the icon type pool: 'type-pools: icon.'