‎2008 Feb 06 12:39 PM
Hi Experts.
If possible to make in a selection dynpro a listbox with multiple selection??
Can you help me to do it??
Thks
‎2008 Feb 06 3:07 PM
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
‎2008 Feb 06 12:44 PM
Hello,
It is not possible.
List box is used to Choose one value from the listed values.
Cheers,
Vasanth
‎2008 Feb 06 12:49 PM
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.
‎2008 Feb 06 12:59 PM
hi Pedro,
you can try any of the following FMs.:
POPUP_GET_SELECTION_FROM_LIST
REUSE_ALV_POPUP_TO_SELECT
hope this helps
ec
‎2008 Feb 06 12:56 PM
Hello,
Could you please tell what is ur exact requiremnt.
Cheers,
Vasanth
‎2008 Feb 06 1:11 PM
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
‎2008 Feb 06 3:07 PM
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
‎2008 Feb 06 4:48 PM
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.
‎2008 Feb 06 3:18 PM
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
‎2008 Feb 06 4:44 PM
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.
‎2008 Feb 07 7:30 AM
Yes, you have reason... this is exactly what I want.
Thank you very much.
‎2008 Feb 08 10:59 AM
Do you have any example to use POPUP_GET_SELECTION_FROM_LIST??
Thks.