Multiple Select options
Hi,
I have a requirement where i have to use to separate select options but the value of the 2nd Select option is dependant of the value chosen in the first select option.
For eg:First Select option is for SWCV and 2nd option is for Data Object.
If you choose S1 as SWCV in first select option then the values in select options for Data object should be populated for Data objects belonging to SWCV "S1" only an not for any other SWCV.
PS:Points will be awarded
Hi Sacha,
Is there any other way in abap web dynpro where i can achieve the above mentioned requirement.The catch here is that the user can enter multiple values.
Earlier user was allowed to have only one entry in inputfield so OVS used to solve my problem.But with multiple entries i can't do the same thing.
Similar Messages
-
Multiple select options in 1 drop down box?
Hi,
I have created a form that works perfectly except for the fact that I need to provide multiple select options in the 1 drop down box; for example, I'm asking what product the customer is interested in and his answer could be multiple items such as Soap, Sanitizer, Hand Towels, Face Cloths etc...
At the moment, the customer can only select 1 item not multiple.
Is this possible?
Thanks in advance for the help!Hi,
It is not possible to allow the user to select multiple items in a dropdown list.
You could use a list box, which does allow multiple selections.
Good luck,
Niall
Assure Dynamics -
Multiple select options for an input field
Hi All,
We have a requirement where in we need to provide multiple select options for an input field in a BSP application and get output relevant to all the given inputs(do not require range).
Please do let me know how to solve this.
Thanks & Regards,
Lavanya .Hi,
The requirement is : Suppose there is a input field PLANT.
If we give input for plant it gives related output.
Now if it is required to give 5 or 6 inputs..like plant1,plant2...plant6 and get the output related to all 6 inputs.
(Like we implement in ABAP)
Please do let me know how can this be implemented in BSP.
Thanks & Regards,
Lavanya. -
One search help for multiple select-options in webdynpro abap
Hi,
I need a way to use one search help for multiple select-options fields. My scenario is :
I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
I think I won't be able to use this way. What do you say?
As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
MY TABLE (ZBYYT080) CONTENTS:
SID VARBL VALUE LANGU VTEXT
ADS $WERKS 1 T Werk 0001
ADS $WERKS 11 T OZYAS GIDA URETIM YERI
ADS $WERKS 5501 T BOYA GEBZE FABRİKASI
ADS $WERKS 5502 T BOYA CIGLI FABRİKASI
AGT $WERKS 2301 T KAMLI DAMIZLIK
AGT $WERKS 9601 T PANAR DENIZ URETIM YERI
ADS $VKORG 22 T AA KİMYASALLAR
ADS $VKORG 8001 T İINSAAT BOYALARI
AGT $VKORG 6500 T DAMk St.Org
AGT $VKORG 5400 T PANAR St.Org.
I wish I'm clear enough..
I will be gald if someone answers me as soon as possible...
Thanks İn advance..
MERALHi,
Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
Am I right ?
If Yes, then in the interface IF_WD_SELECT_OPTIONS
method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
have importing param like I_VALUE_HELP_TYPE and I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
etc which may help you to link your create DDIC Search help to selection screen params.
this is just a clue from my side. I haven't tried it myself.
You can go to the where used list of this method and find some sample implementations which use these params.
Hope this helps.
Regards
Manas Dua -
Multiple select option in the screen painter
Hi all,
I want to give multiple select option for a particular field in the screen painter.
how to provide it.
NitinHi,
Refer to this link..[Select-Option in Dialog programming |Re: Select-Option in Dialog programming]
[How to make select option in module pool |how to make select option in module pool] -
Problem with Multiple selection option
Hi all,
I am working on a report, when I execute the report and the selection screen comes up, there I need to enter 5 different employee name so I am trying to use "multiple selection" option but as soon as I hit that "Yellow arrow" in front of employee name field .. I saw the output first and when I go one screen back I get that screen where I can enter the names. So can you please help me with this.
Thanks,
RajeevHi,
I have written the following code, I guess the problem is in
GD_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = GD_REPID
DATA: FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
GD_TAB_GROUP TYPE SLIS_T_SP_GROUP_ALV,
GD_LAYOUT TYPE SLIS_LAYOUT_ALV,
GD_REPID LIKE SY-REPID.
FORM DISPLAY_ALV_REPORT .
GD_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = GD_REPID
I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
IS_LAYOUT = GD_LAYOUT
IT_FIELDCAT = FIELDCATALOG[]
I_SAVE = 'A'
TABLES
T_OUTTAB = IT_tab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_ALV_REPORTcode}
Thanks,
Rajeev -
Multiple Select option in Module pool
Hi,
I wanna add a field for 'Delivery number' in the screen of a mod pool prgm.I created a subscreen area in the main screen and did the coding needed.now the problem i am having is if i giv a single value in the from field or values in the 'From' and 'To' field its not taken to the program,i saw it while debugging. but if i enter the values in the multiple selection option its taken to the program.That means from screen its not going to the program where as from the multiple select option its taken to the program,What may be the propblem.
Regards in Advance,
NitinHi,
Have you used the select-options in the subscreen or you have placed the multiple option manually?
Either way, please check the two methods, it may solve your problem.
Create a SELECT-OPTIONS in module pool screen using two methods as shown.
Method 1
a) Create a subscreen area in your screen layout where you want to create the select options.
b) In the top include of your module pool program declare a selection screen as a subscreen e.g.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
select-options s_matnr for mara-matnr.
SELECTION-SCREEN END OF SCREEN.
c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
CALL SUBCREEN sub_area INCLUDING <program> <screen>
This CALL SUBSCREEN statement is necessary for transport of values between screen and program.
Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
Method 2
a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
struc_tab_and_field-fieldname = con_cust. " 'KUNNR'
struc_tab_and_field-tablename = con_kna1. " 'KNA1'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING*
TITLE = ' '
text = g_titl1 " 'Customers'
tab_and_field = struc_tab_and_field
TABLES
RANGE = rng_kunnr
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
INVALID_FIELDNAME = 4
OTHERS = 5.
IF NOT rng_kunnr[] IS INITIAL.
Read the very first entry of the range table and pass it to dynpro screen field
READ TABLE rng_kunnr INDEX 1.
IF sy-subrc = 0.
g_cust = rng_kunnr-low.
ENDIF.
ENDIF.
You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.
Regards -
Hi gurus,
I would just like to ask for your ideas on how can I output in ALV the multiple entries in your select-options. Here's the scenario, I have a select-option which is unit of measurement and it can have a multiple entries. The requirement is that I should output in ALV the conversion based on how many are the entries. If there are two entries, I should have 2 conversion and both of them should be in ALV.
I hope you can help me gurus.thanks in advance.
regards,
gizelleYes, you have to build your fieldcatalog dynamically, the select options are nothing else but a table of type ranges, so just loop over the table like this:
loop at s_measure.
if s_mesure-low = 'km'.
CLEAR wa_fcat.
wa_fcat-fieldname = 'KM'.
wa_fcat-seltext_l = 'Kilometers'.
wa_fcat-seltext_m = 'Kilometers'.
wa_fcat-seltext_s = 'Kilometers'.
APPEND wa_fcat TO it_fcat.
endif.
if s_mesure-low = 'miles'.
CLEAR wa_fcat.
wa_fcat-fieldname = 'MILES'.
wa_fcat-seltext_l = 'Miles'.
wa_fcat-seltext_m = 'Miles'.
wa_fcat-seltext_s = 'Miles'.
APPEND wa_fcat TO it_fcat.
endif.
if s_mesure-low = 'LY'.
CLEAR wa_fcat.
wa_fcat-fieldname = 'LY'.
wa_fcat-seltext_l = 'lightyeras'.
wa_fcat-seltext_m = lightyeras'.
wa_fcat-seltext_s = 'lightyeras'.
APPEND wa_fcat TO it_fcat.
endif.
endloop.
Of course theres a lot more to do but i hope you get the point. You have to foresee every possible measurment and react on this. -
Single Multiple select option in selection screen
Dear All,
I want to have single multiple selection functionality on the selection screen.I have used function module 'SELECT_OPTIONS_RESTRICT'. but my problem is it only allows to include single vals but does not give me an option to exclude single vals. how should I go about it. If you have some example or piece of code , i would be grateful.
Thanks
AmitHi Amit,
Where have you written this code?
It normally should be in AT SELECTION-SCREEN OUTPUT.
(Infact even in INITIALIZATION, try it out)
Also did you declare SELECT-OPTION with NO INTERVALS addition?
Here is a sample code that works,
REPORT zsritest.
TYPE-POOLS: sscr.
TABLES vbak.
SELECT-OPTIONS: so_vbeln FOR vbak-vbeln NO INTERVALS.
AT SELECTION-SCREEN OUTPUT.
DATA: s_restrict TYPE sscr_restrict,
s_opt_list TYPE sscr_opt_list,
s_*** TYPE sscr_***.
s_opt_list-name = 'EQ_ONLY'.
s_opt_list-options-eq = 'X'.
s_opt_list-options-ne = 'X'.
APPEND s_opt_list TO s_restrict-opt_list_tab.
CLEAR s_***.
s_***-kind = 'S'.
s_***-name = 'SO_VBELN'.
s_***-sg_main = '*'. "This will allow I/E signs
s_***-sg_addy = ' '.
s_***-op_main = 'EQ_ONLY'.
APPEND s_*** TO s_restrict-***_tab.
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
restriction = s_restrict
EXCEPTIONS
OTHERS = 0.
Sri
Message was edited by: Srikanth Pinnamaneni -
Multiple users and multiple select options
Hi,
First of all, let me congratulate Oracle HTML DB team for this great product! This is extremely powerful and useful.
I have multiple selection item on the form to generate report for the selected multiple schools. I have two critical questions.
1) Currently I am deleting all records from database tables for multiples selects and similarly selecting all records from these tables to populate dependent LOVs and so on. This is a major issue when multiple people use this application at the same time. I looked at couple of examples to create, delete and select records based on IDs (unique) and it is not clear to me if I need to create parameter/hidden params on the reports side or on the HTML DB side or .. how do they communicate etc. Could any one clarify this process of checking for unique IDs please.
2) Is there any way to give an option to the user to treat multiple selected item as just one single and to treat them separate? For example, if we let the user count number of students at two schools, how can we let the user count two schools separate as well as both schools together? This should also further ask for the possible options separate for both schools separate if they were to run separate.
This is very important for me and appreciate any help from you. Thanks in advance.Hi,
Could any one point me in the right direction, please!
Thanks, -
I need to pass multiple select options using submit and reutrn
dear all,
my requirement is i need to pass multiple values for work center like(biw01,biw02,biw03 etc) for this iam giving as biwl* and biot* for the tcode zpp_hmm ,using this i am going to get total working hours of perticular equiment.
for this iam using submit and return query but iam unable to pass multiple work centers as input.
my code is
DATA : z_budat TYPE RANGE OF budat,
wa_budat LIKE LINE OF z_budat.
wa_budat-low = '20111001'.
wa_budat-sign = 'I'.
wa_budat-option = 'BT'.
wa_budat-high = '20111031'.
APPEND wa_budat TO z_budat.
CLEAR wa_budat.
*wa_budat-High = '20111031'.
*wa_budat-sign = 'I'.
*wa_budat-option = 'BT'.
*append wa_budat to z_budat.
DATA : z_arbpl TYPE RANGE OF arbpl,
wa_arbpl LIKE LINE OF z_arbpl.
wa_arbpl-low = 'BIWL*'.
wa_arbpl-sign = 'I'.
wa_arbpl-option = 'EQ'.
APPEND wa_arbpl TO z_arbpl.
CLEAR wa_arbpl.
wa_arbpl-high = 'BIOT'.
*wa_arbpl-sign = 'I'.
*wa_arbpl-option = 'BT'.
*APPEND wa_arbpl TO z_arbpl.
SUBMIT zpp_rep_hemm_perf WITH s_bukrs = '1004' WITH s_budat IN z_budat WITH s_werks = 'SMJT'
with S_ARBPL IN Z_ARBPL USING SELECTION-SCREEN '1000' AND RETURN.
but my doubt is whether it is corect or wrong what ever i am passing inputs for arbpl.
thanks in advance.You can pass all parameter (rsparams-kind = 'P') and select-options (rsparams-kind = 'S') as a single internal table of type RSPARAMS. Go on appending the field names and values as rows and pass using SELECTION-TABLE parameter of SUBMIT command.
I gave appending one set of selection values for s_budat field but you can go on appending more values for s_budat and other fields.
DATA: lt_rsparams TYPE TABLE OF rsparams,
ls_rsparams TYPE rsparams.
CLEAR ls_rsparams.
ls_rsparams-selname = 'S_BUDAT'.
ls_rsparams-kind = 'S'.
ls_rsparams-sign = 'I'.
ls_rsparams-option = 'BT'.
ls_rsparams-low = '20111001'.
ls_rsparams-high = '20111031'.
APPEND ls_rsparams TO lt_rsparams.
SUBMIT zpp_rep_hemm_perf WITH SELECTION-TABLE lt_rsparams
USING SELECTION-SCREEN '1000'
AND RETURN. -
Multiple select options validation at selection screen
Hi,
I have the requirement to create a selection screen with 3 select options. Two of them are cross-dependent. It is mandatory to fill one of them and it is not allowed to fill both. The third one is optional. I tried the validation at selection-screen on block... and I have a problem that search help buttons for select options react like execution buttons, when I press any of them I am getting one of errors instead of search help.
Any help on this issue would be appreciated.
Here is my code:
DATA:
so_rbkp TYPE rbkp,
so_mseg TYPE mseg.
SELECTION-SCREEN BEGIN OF BLOCK blok WITH FRAME.
SELECT-OPTIONS:
s_fakt FOR so_rbkp-belnr,
s_matdok FOR so_mseg-mblnr,
s_god FOR so_mseg-gjahr.
SELECTION-SCREEN END OF BLOCK blok.
INITIALIZATION.
SET TITLEBAR '0100'.
START-OF-SELECTION.
AT SELECTION-SCREEN on block blok.
if s_fakt <> space and s_matdok <> space.
MESSAGE 'Message1' TYPE 'E'.
elseif s_fakt = space and s_matdok = space.
MESSAGE 'Message2' TYPE 'E'.
endif.
ENDIF.Only perform the check when user wants to execute or submit the program, not when pressing F4 or even Enter, but in a selection-screen event, before START-OF-SELECTION which were program would terminate in error :
TABLES: SSCRFIELDS.
AT SELECTION-SCREEN OB BLOCK b01.
IF sscrfields-ucomm EQ 'ONLI'
OR sscrfields-ucomm EQ 'PRIN'
OR sscrfields-ucomm EQ 'SJOB'.
IF s_fakt[] IS NOT INITIAL AND s_matdok IS NOT INITIAL.
MESSAGE 'Message1' TYPE 'E'.
ELSEIF s_fakt[] IS INITIAL and s_matdok[] IS INITIAL.
MESSAGE 'Message2' TYPE 'E'.
ENDIF.
ENDIF.
(You could also always send the message, but using type 'E' for those function code and 'S' status for any other value.)
Regards,
Raymond -
How to disable multiple select option in OO ALV.?
I want to display an ALV with the multiple select button disabled.I want the "select" button at the start of each row but the "select all/deselect all" button at the right hand top corner of the display be
disabled.
Please help me out.Hi
You can add a new column to your internal table for the selection field.
After registering the required events, for eg:
METHOD alv_set_events.
DATA: lr_events TYPE REF TO cl_salv_events_table.
lr_events = mcn_alv->get_event( ).
*- Register the event Double click
SET HANDLER me->mt_on_double_click FOR lr_events.
*- Register the event User command
SET HANDLER me->mt_on_user_command FOR lr_events.
ENDMETHOD.
you can process the selected records and mark them as "Processed" by setting a color to the record.
DATA: BEGIN OF lw_farb , " Farbstruktur für ALV
farb1(1) VALUE 'C',
farb2(1),
farb3(1) VALUE '0'.
DATA: END OF lw_farb.
DATA: lf_col_bearbeiten TYPE i VALUE 5.
lw_farb-farb2 = lf_col.
ef_col = lw_farb.
Regards
Raj -
Multiple select-options in a screen But no screen space
Dear Experts,
I have mutiple select options in a screen, i am finding it a problem to display them all in one screen.
it should be done with out any vertical scroll nor horizontol scroll.
Awaiting to hear from you all.
Regards,
KarthikHi,
You can include more than one selct options or parameters in a single line..that might be favourable as u do not want to have scrolls..
the syntax goes like this
SELECTION-SCREEN BEGIN OF LINE.
<declare your parameters and select options>
SELECTION-SCREEN end OF LINE.
whatever u have written between begin of line and end of line will appear in a line..in this way you can reduce the page size..Hope the information was useful.
Regards
Vasavi
Edited by: Vasavi Kotha on Jan 6, 2009 5:29 PM -
Reg : Multiple Select Option with validation.
Hi Abap Guru's,
In my report iam giving the Input using the select option : Movement type in which i need to take only few mov.types like 101,105,321,344 in my report .Pls help me how to do ASAP..?Hi ,
refer the below code.
First it defaults the required values to selection screen ( at initialization event ).
and then if user enters any other value then this value will be ignored.
*& Report ZRTESTTEST
REPORT ZRTESTTEST.
data: mtype(3) type c.
select-options: s_mtype for mtype.
Types: begin of ty_range,
sign type bapisign,
Option type bapioption,
low(3) type c,
high(3) type c,
End of ty_range.
Data: i_range type standard table of ty_range,
wa_range type ty_range.
initialization. " initialization.
s_mtype-sign ='I'.
s_mtype-option = 'EQ'.
s_mtype-low = '101'.
append s_mtype.
clear s_mtype.
s_mtype-sign ='I'.
s_mtype-option = 'EQ'.
s_mtype-low = '105'.
append s_mtype.
clear s_mtype.
s_mtype-sign ='I'.
s_mtype-option = 'EQ'.
s_mtype-low = '321'.
append s_mtype.
clear s_mtype.
s_mtype-sign ='I'.
s_mtype-option = 'EQ'.
s_mtype-low = '344'.
append s_mtype.
Clear wa_range.
Wa_range-sign = 'I'.
wa_range-option = 'EQ'.
wa_range-low = '101'.
Append wa_range to i_range.
start-of-selection.
Clear wa_range.
Wa_range-sign = 'I'.
Wa_range-option = 'EQ'.
Wa_range-low = '105'.
Append wa_range to i_range.
Clear wa_range.
Wa_range-sign = 'I'.
Wa_range-option = 'EQ'.
Wa_range-low = '321'.
Append wa_range to i_range.
Clear wa_range.
Wa_range-sign = 'I'.
Wa_range-option = 'EQ'.
Wa_range-low = '344'.
Append wa_range to i_range.
delete s_mtype[] where low not in i_range[].
If s_mtype[] is initial.
break-point.
* raise the error here.
Endif.
Hope this helps you.
Kind Regards,
Ravi Sankar.Z
Maybe you are looking for
-
I don't like the iOS 7 upgrade. Do I have to upgrade or can I go back to the way it was? How would I do that?
-
How to setup grub2 with arch linux and xen, lvm on luks
OK, so I tried downloading this package from AUR: https://aur.archlinux.org/packages/xen-git/ , but that has patching problems as noted in the comments. It looks like the packagebuild sets up all the xen stuff for you, but I can't seem to get the p
-
XMP panels not showing up in CC
We created custom XMP panels before. I now want them to show up in CC. I can get the tab open to show the file (this happens when I "Get Info" on the InDesign page), but it crashes InDesign and won't show the fields. Do I need to update the Flash fil
-
Calling a WebLogic web service from a WebLogic web application
We would like to call a WebLogic web service from WebLogic web application. The current architecture looks like: LoadBalancer--->iPlanet-1/iPlanet-2--->Firewall--->WebLogic-AppServer-1/WebLogic-AppServer-2 The web application and web service are in t
-
Hi All, I am getting below error on BCC home page: **** Error Mon Aug 22 20:11:48 GMT+05:30 2011 1314024108936 /atg/portal/framework/PortalObjectResolver No root community folder for portal 'default' **** Error Mon Aug 22 20:11:48