Selecting multiple values from a search help
Hi Experts
Anyone knows if it is possible to select multiple values from a search help?
Thanks
Gaurav
Hi,
You cannot select mutiple values from search help as it is linked to inputfield and hence it will accept single value only. But at the same time, you may able to pass row of values to different inputfields.
Refer http://help.sap.com/saphelp_dm40/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
Thanks,
Chandra
Similar Messages
-
Return multiple values from a search help
Dear All,
I have a table control on screen with fields:
doc.no
doc.type
doc.ver
doc.part
I've coded a search help for doc. no. which returns a single value i.e. doc. no from the search help.
But my reqmt. is that when the user selects a particular doc.no from search help, it should also return doc. type/ver/part
and the corresponding table control field should be populated.
I mean i require multiple values to be returned and populated in my screen.
Thanks in anticipationHi ,
Please check this thread where i had done some coding and the OP himself has found the solution
automatic population of search help value to another field in module pool ... if its a table control you have get the selected line by using fm DYNP_GET_STEPL. Then update the values to the respective fields using DYNP_VALUES_UPDATE. -
How Can I get multi column values from dynamic search help?
Hi Gurus;
I'm using dynamic search help in my program.
I want to get multi column values from search help. But I dont know solution for this issue.
I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
How Can I get multi column values from dynamic search help?
Thanks.Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
There are like 3 steps.
You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined (just to keep it straight, i will be putting here) data: It_return type standard table of ddshretval.
Next step is to call the function module. Make sure you have values in IT_VALTAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'FLD2'
value_org = 'S'
tables
value_tab = It_VALTAB
return_tab = It_return
dynpfld_mapping = It_dynpfld
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
perform get_selected_fields tables It_return.
endif.
The code within the perform GET_SELECTED_FIELDS - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
I need a internal table as well as a work area here. like,
data: lt_fields type table of dynpread,
la_fields type dynpread.
field-symbols: <fs_return> type ddshretval.
so fill out LT_FIELDS from the IT_RETURN table
loop at lt_return assigning <fs_return>.
la_fields-fieldname = <fs_return>-retfield.
la_fields-fieldvalue = <fs_return>-fieldval.
append la_fields to lt_fields.
clear: la_fields.
endloop.
Call the FM to update the dynpro
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-repid
dynumb = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
tables
dynpfields = lt_fields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
good luck -
How to select multiple values from a listbox
Hi,
I have a list box on my UI which is not allowing me to select multiple values
I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving error
When i drag & drop the component i am unable to drop it as a multi select list box that option is not coming.
I am working on Jdev 11.1.1.3 and I am using ADF/BC components
How to select multiple values from a listbox ?
Thanks,Hi,
I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving errorank
And what is the error ?
Frank -
How to select multiple values from the parameters in BI Publisher report
How to select multiple values from the parameter drop down in BI Publisher, and how to handle this mulitple values from the report sql...
Hi kishore,
I have used all the steps as you mentioned in your previous reply....including checking Mulitple Selection Check Box..
Iam able to get the results when I am selecting one value..
and also I am able to handle multiple values the in the query by using IN :Parameter, but seems when we select more than one value from the parameter drop down i think the Bi Publisher is sending the values in concatenated form something ilke
ex: "'ACCOUNT','HR','SALES'" ,and when trying to display the parameters values in the output, its throwing the error as 'missing right paranthesis' ....on the whole do you have any solution which would handle
1.Single selection.
2.Multiple selection.
3.'ALL' Values.
4.Separating the concatenated string into individual strings and dispaly them on the output of the report..etc..in case of Mulitple selection.
Ex:
Concatenated String from BI Publisher:"'ACCOUNT','HR','SALES'"
Expected Output on the report:ACCOUNT,HR,SALES
reply to this would be much appreciated....
thanks,
manoj -
How to select multiple values from the Parameters in the concurrent program
How to select multiple values from the Parameters defined in the concurrent program...and i believe multiple selection is not a direct feature of EBS, but is there any workaround solution to acheive mulitple selection?
I think there's no way to do that using standard feature.
Some workaround I use :
1. If the number of selections are fixed, you could use multiple parameters for the same valueset. For example :
Selection1 : <choose first selection>
Selection2: <choose 2nd selection>
..etc.
If you don't use it then leave it empty.
2. Use text varchar valueset and enter it manually and separate by comma (or other value) , eg : selection1,selection2,selection3....etc. -
Select-options - select multiple values from personal value list
Hi experts,
In my application, I am using select-options. I select the values required from the search help into the personal value list . I want to copy these values from the personal value list into my ranges table. Do I have to copy them one row at a time. Is there any way to select the values directly into the ranges table of the select-options field?
Regards,
Abdullah.Boy, this is something we're struggling with too. So we'd like to hear others' ideas on this also.
thank you,
iggy -
Selecting Multiples Values from Multiselect Box
Hi
Here is my requirement ,
Multiselect List Box should display Simulator_Type Values
Simulator_Type Values Values to search for in the column simulator type
AC - small signal AC
HB - Carrier HB
SP - Linear Noise SP - L
SP - s parameters SP - s
TR - Transient TR
DC - operational point DC
ET - Envelope Transient ET
SSNA SSNA
[nothing] nilDepending on the values selected in the multiselect values the data has to be dipayed where the value is in the simulator type column
For Eg : AC - small signal is selected in the :p1_simulator_type multiselect box, The data where the word AC is in simulator_type column should display
Examples of data in the simulator_Type column:
SIMULATOR_TYPE
ac, dcOp, Periodic Steady-pss
AC - small signal
AC Small Signal, Operating Point, Periodic Steady
AC - small signal, SSNA
DC - operational point
ET - Envelope Transient
So , here if i select AC - small signal from the multiselect list box , then the data where "AC" is there in simulator_type has to be displayed , in this case the data associated with
ac, dcOp, Periodic Steady-pss
AC - small signal
AC Small Signal, Operating Point, Periodic Steady
AC - small signal, SSNA
has to be displayed...
currently i have the report query below which is working but only when one simulator type is selected ....
select
* from DW_RFA_JOBDATA
where RFA_SUBMIT_TIME >= :P1_START_DATE
and RFA_SUBMIT_TIME < :P1_END_DATE
AND RFA_SIMULATOR_TYPE like '%'||:P1_SIMULATOR_TYPE||'%'Could any body please let me know how do i get data when multiple values are selected...
Please let me know any further explanation is needed for the question
Thank you
Edited by: priyapinky on May 5, 2010 9:26 PM
Edited by: priyapinky on May 5, 2010 9:54 PM
Edited by: priyapinky on May 6, 2010 8:48 AMHello,
It seems to me like you don’t really understand how multi select items work in APEX. This type of items (we are talking about multi-select list, checkbox and the shuttle item) don’t really returned multiple values. They returned a single value that contains multiple segments, each include one valid option. By default, each segment is delimited with a colon (:). In your case it means that if you chose two values from your static LOV, the returned value will look similar to “HB:DC” (or any other combination of options). Now you need to work with this value.
The way your RFA_SIMULATOR_TYPE column build, you can’t really work with the multi-select value, as you’ll never find a match to it, as this is actually an artificial value that only exist as a result of your multi-select.
Regarding the new query you are trying, you wrote yourself that “i am getting the data with all the simulator_type select”, and that is correct. Where in this query you are using your filter (:P1_SIMULATOR_TYPE)? This is not the way to go.
You need to break the compound value returned by your multi-select items, and work individually with each segment. You can do that in two ways. The simple one, as I already suggested, is to add another column that will contain only the code describing the simulator (similar to the returned value of the static LOV). In this case, using the instr() function you are checking if the column value is included in your filter (it’s a revered angle – you are actually checking if the single column value is included in your filter and not if the filter included in your column).
The second option is a bit more complicated and it involves slicing the filter itself and dynamically build your query, using the “SQL Query (PL/SQL function body returning SQL query)” report option. In this case we are going to use the APEX built-in function APEX_UTIL.STRING_TO_TABLE(). The following is a very simple code example that you’ll need to adapt to your scenario:
declare
q varchar2(4000);
filter APEX_APPLICATION_GLOBAL.VC_ARR2;
begin
q := 'select * from emp where ';
filter := apex_util.string_to_table('10:20');
for i in 1..filter.count loop
if i = 1 then
q := q || 'deptno = ' || filter(i);
else
q := q || 'or deptno = ' || filter(i);
end if;
end loop;
return q;
end;In your case the parameter for the string_to_table is your filter item, and you can use LIKE as your comparison operator.
Regards,
Arie.
♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
♦ Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More -
Select multiple values from the parameters in BI Publisher report Error
In the database, I wrote a function to retrieve data to report:
FUNCTION FN_TL002(cBDSID nvarchar2)
RETURN SYS_REFCURSOR as
TYPE t_cursor is REF CURSOR;
v_cursor t_cursor;
begin
OPEN v_cursor FOR
select Brach, txmonth, txdate, total from tl001
where brach in (cBDSID)
order by brach;
RETURN v_cursor;
end fn_tl002;
In Bi Publisher:
- I have a type parameter Option select multiple ( pBranch), LOV get data from database.
* In Data model : TL001 name
+ SQL query : select FN_TL002(:pBranch) from dual
if select a value not error, and then select two values of an error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'FN_TL002'
please help me!
Thanks all!See my response in the thread Re: Multi selecting drop down in BI publisher 11g report
The LOV is a Java array and your function needs to accept that array. To do this the data data type has to be a VARRAY Type. -
Transfer values from one search help to another
Is it possible to transfer values from screen of one search help to another. For example if I have the vendor master search help (XK02) and I go to the elementary search help "Vendors by Material" . On this screen I enter some data in the Material number field. Now when I do an F4 on the material field on this search help I will get the collective search help for Material number. My requirement is to have the material number from the first search help to be carried over to the second search help. Is there any way possible. I am manipulating my custom search helps through the search help exits(fetching data etc).
Hi Deepak,
Not very sure, but I think if you write code in search help exit, this may be possible. Use GET PARAMETER... SET .. in the exit to pass the values between search help.
Regards,
Atish -
How to get the short text values from F4 SEARCH HELP
Hi Friends,
My requirement is in Module -pool Screen Programming, i have Designed one field in a custom screen and provided a F4 search help to that field..
For eg the F4 help is displayed as below.
Value short text
1 A
2 B
3 C
4 D
5 E
6 F
7 G
When i select the first option (1) then value 1 appears in the field.
now i want the text relevant to the value 1 to appear by the side of the field.
Eg : 1 A (A should appear by the side of the value 1)
How do i achieve it?
Kindly help me.
Regards,
K.S.Kannan.
Edited by: kannan ks on Dec 8, 2008 4:05 PMhi
1) place a field adjacent to your value field on which F4 is operated
so now you will have 2 fields.
iam considering it as for ex: field1 & field2
2)
BOLD one is import in FM call
CLEAR: t_dynpfld_mapping,
e_dynpfld_mapping.
e_dynpfld_mapping-fldname = 'F0001'.
e_dynpfld_mapping-dyfldname = -
> name of field1 (for ex: your 1 value field name)
APPEND e_dynpfld_mapping TO t_dynpfld_mapping.
e_dynpfld_mapping-fldname = 'F0002'.
e_dynpfld_mapping-dyfldname = -
> name of field2 (for ex: your short text field name)
APPEND e_dynpfld_mapping TO t_dynpfld_mapping.
3))))))))
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield =
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = -
> name of field1 (for ex: your 1 value field name)
value_org = 'S'
TABLES
value_tab = itab
dynpfld_mapping = t_dynpfld_mapping
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3 -
Is it possible to select multiple values from an enumerated list?
I have a Category with an Attribute defined as an enumerated list. Is it possible to select more than one value from the enumerated list? If not, does anyone have a recommended approach for configuring Categories or Attributes that often have more than one of the Attribute values selected? Do I just use multiple Categories and/or Attributes with the same enumerated list? If so, is there an efficient way (API, maybe) to copy the enumerated list values from one Attribute to a new one (or one Category to another)?
Thanks for any ideas!
~MarkBoy, this is something we're struggling with too. So we'd like to hear others' ideas on this also.
thank you,
iggy -
Default multiple values in custom search help
Hi All,
I created a custom search help for the vendor. The fields in the search help are LIFNR (Vendor) and KTOKK (Account Group).
I would like to be able to set three default values for the account group. That is, when the user clicks on the dropdown to display the search help, I would like to have three values populated in the KTOKK field. Is this possible?
Any help would be appreciated.
Thanks!Hi,
I am not sure abt default values, but if you are using this search help in any report than you can set hot keys in your search help and using hot keys, you can set some default filter values in you report's parameter.
you can set variant in your report where parameter is having values like :: =,<hotkey>,<sel1>,<sel2>
here <hotkey> : wht you have assingned in search help.
<sel1> : one of those default values you want to display.
<sel2> : one of those default values you want to display for the second field.
hope it helps,
Regards,
Sagar -
Process On Value Request with Search Help Problem
I have a screen with a field that has a custom search help attached to it. I am using Process On Value-Request which ultimately uses function module F4IF_FIELD_VALUE_REQUEST to return the selected value from the search help. The value is then moved to the screen field.
THE PROBLEM: If I enter a value in a field on the screen, then use the search help from a different field the first value I entered gets cleared. Here is a code sample. Any suggestions as to why this is happening?
NOTE: The values that get cleared are fields on the screen that I do not reference at all in user_command_2501.
*****SCREEN 2500 FLOW LOGIC*********
PROCESS BEFORE OUTPUT.
MODULE status_2500.
PROCESS AFTER INPUT.
MODULE user_command_2500.
PROCESS ON VALUE-REQUEST.
FIELD makt-matnr MODULE user_command_2501.
MODULE user_command_2501 INPUT.
ok_code = sy-ucomm.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
searchhelp = 'ZWS_ASSETMATR'
fieldname = ' '
tabname = ' '
TABLES
return_tab = search_itab
EXCEPTIONS
no_values_found = 1.
MOVE search_itab-fieldval TO: makt-matnr.
REFRESH search_itab.
SELECT SINGLE maktg FROM makt INTO crea_description
WHERE matnr = search_itab-fieldval.
MOVE 'I' TO scrn_attr_sw.
sy-ucomm = 'ENTER'.
LEAVE SCREEN.
CALL SCREEN 2500.
ENDMODULE. " user_command_2501 INPUT
Message was edited by: Jason DeLuca
Message was edited by: Jason DeLucaHi Jason
It seems you should first revise your code since your POV is not implemented so good.
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
Select Multiple Values in Form 6i
I'm developing an application for internal audit division
there is a field called "root cause" i created a button ,,once open it shows all fields inside a seperate table called roots
I want the user to be able to choose multiple values and once he commit ,,all values he chooses inserted in the main table..
Is LOV feature can do it???hello,
Please read this trend.
Select multiple values from an LOV
charles.
Maybe you are looking for
-
FBL5N Customer Namewise Sorting Needed
Dear Friends, In FBL5n , now Customer Codewise Sorting is coming. My Requirment is Customer Namewise Sorting. both Customer Number and Name are in Header Level.
-
Dear Expert, Is there report asset that shown Depretiation value, book value, and Purchase Order Value ? Example, our depretiation use IDR but n PO Asset we use USD. Rgds, Iwan Siahaan
-
I have a CommandButton with rendered attribute to display it depend of the step in a bussines process. The JSF Page have a request scope then all flags need to be recalculate each request (The page is reloaded severla times to complete the process, t
-
In the online Docs, I found info regarding creating ant tasks to start and configure the WebLogic server. But I would like to also have an ant task that will start Pointbase. I have created ant tasks that will connect to pointbase and create/fill a d
-
Need 1z0-144 Practice Questions (Dumps)
Hi All I need practice questions for 1z0-144 exam. Study material, as everybody knows, is available but in scattered form. Please tell me any resource for getting the questions. Thanks and Regards.