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

LISTBOX WITH MULTIPLE SELECTION

Former Member
0 Likes
3,950

Hi Experts.

If possible to make in a selection dynpro a listbox with multiple selection??

Can you help me to do it??

Thks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,408

POPUP_GET_SELECTION_FROM_LIST

REUSE_ALV_POPUP_TO_SELECT

Sorry,...

Where are this FMs???... I don't find it.

I need find how show to a user a list of values, and the user can select more of one and depend his selection I show him a ALV GRID with a query.

thks

11 REPLIES 11
Read only

Former Member
0 Likes
2,408

Hello,

It is not possible.

List box is used to Choose one value from the listed values.

Cheers,

Vasanth

Read only

Former Member
0 Likes
2,408

Then, how I can propose a list of values to a user, and the user can do a multiple selection?? Do you have another idea to give me, please.

Thanks.

Read only

0 Likes
2,408

hi Pedro,

you can try any of the following FMs.:

POPUP_GET_SELECTION_FROM_LIST

REUSE_ALV_POPUP_TO_SELECT

hope this helps

ec

Read only

Former Member
0 Likes
2,408

Hello,

Could you please tell what is ur exact requiremnt.

Cheers,

Vasanth

Read only

Former Member
0 Likes
2,408

parameters: P_DEC(1) TYPE C AS LISTBOX VISIBLE LENGTH 4.

AT SELECTION-SCREEN OUTPUT.
 PERFORM FILL_DECIMAL_COMBO.

*&---------------------------------------------------------------------*
*&      Form  fill_decimal_combo
*&---------------------------------------------------------------------*
* This subroutin fills in the appropiate details for the decimal place's
* combo-box. ***********************************************************
*----------------------------------------------------------------------*
FORM FILL_DECIMAL_COMBO.
*--> Local Data - Start
* data: index type i value 0.
  DATA: INDEX(1) TYPE C VALUE '0'.
*--> Local Data - End
* p_dec = 0.

  IF GT_DEC IS INITIAL.
    WHILE INDEX < 4.
      GWA_DEC-KEY  = INDEX.
      GWA_DEC-TEXT = INDEX.
      APPEND GWA_DEC TO GT_DEC.
      INDEX = INDEX + 1.
    ENDWHILE.
  ENDIF.
  CHECK NOT GT_DEC[] IS INITIAL.
  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            ID     = 'p_dec'
            VALUES = GT_DEC.
ENDFORM.                    " fill_decimal_combo

<REMOVED BY MODERATOR>

Reb

Edited by: Alvaro Tejada Galindo on Feb 6, 2008 4:34 PM

Read only

Former Member
0 Likes
2,409

POPUP_GET_SELECTION_FROM_LIST

REUSE_ALV_POPUP_TO_SELECT

Sorry,...

Where are this FMs???... I don't find it.

I need find how show to a user a list of values, and the user can select more of one and depend his selection I show him a ALV GRID with a query.

thks

Read only

0 Likes
2,408

FM means Function Module, so you'll find in SE37

these FMs exactly do what you want, give a popup with entries and the user can select one or more of them.

Read only

Former Member
0 Likes
2,408

For a standard program actually you can (if the object is a standard object) simply code something like select-optioms: s_order for vbak.

The user can then by clicking get values.

Ranges, individual values, not conditions etc can be used. Just look up the abap syntax for select-options. Match codes can also help as well.

There's plenty of abap code example on using select-options to obtain values for your selection screen.

For a true combo pop up box is slightly more difficult. I'd investigate the select-options idea first.

If this doesn't work re-post again and I'll investigate another method.

Once you have your selection it's simplicityitself to display the data in an OO ALV Grid.

Cheers

jimbo

Read only

Former Member
0 Likes
2,408

I know the options of ranges, and select-options in a selection dynpro... You have reason,... with that I can select a lot of things, but it's very cost in time if you must introduce a lot of things not between a range. It's better give to the user all posibilitys and he select quickly a lot of things not between in a range.

I thing about show a new screen with alv with the data.

Read only

Former Member
0 Likes
2,408

Yes, you have reason... this is exactly what I want.

Thank you very much.

Read only

Former Member
0 Likes
2,408

Do you have any example to use POPUP_GET_SELECTION_FROM_LIST??

Thks.